Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How Can I Add Value To Url ? Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 641 posts

Posted 03 January 2019 - 04:32 PM #1

hi i want to add some tags to product detail url with ajax. how can i do that ?

i did something working but doesnt work with ajax request ?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11392 posts

Posted 03 January 2019 - 08:34 PM #2

There are several ways to accomplish.  Be best if you gave a concrete example of what you want to do.  Are these 'tags' (assuming you mean parameters) unique for each product?  Or are they general like for determining referrer or other environmental situations?

 

It's probably easiest to use a pre controller for products.php and then set the $_REQUEST parameter to contain what you want.  This has the advantage of hiding the values from the user.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 641 posts

Posted 04 January 2019 - 05:56 AM #3

Ok mate i will try thank you

 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3366 posts

Posted 04 January 2019 - 06:18 AM #4

hi i want to add some tags to product detail url with ajax. how can i do that ?

i did something working but doesnt work with ajax request ?

 

Hello!

 

You can check how product filters add features_hash parameter to the URL and make the same. Filter scripts are in js/tygh/product_filters.js file.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics