Possible to add Options Characteristics to the page URL on option selection

  • Posts: 132
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
8 years 2 months ago #266802

-- HikaShop version -- : 3.0.1 [1703311301]
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.17
-- Browser(s) name and version -- : all

Hi,
Is there any way to add VARIANT name to the product page URL at the time the client select the Variant, or at the time they click AD TO CART, so the url of the page BECAME
http...../productoriginalname?VariantName1A&VariantName2B&VariantName3C
or something like that?

THE GOAL: is to have finalized URL at the moment they complete selecting variants and proceed to checkout page. So I know the exact Referral that includes their Variants in URL and i can use the URL data for customized actions.
Looking forward. Thank you.

Last edit: 8 years 2 months ago by alexmartin.

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
8 years 2 months ago #266829

Hi,

You could add custom javascript on your product page view to do that.
You can add your custom javascript for example at the beginning of the file "show_block_characteristic" via the menu Display>Views.
Here is some reading on how to attach your code to a dropdown change and how to change the URL on the page:
stackoverflow.com/questions/21596173/cha...-is-in-common-header
stackoverflow.com/questions/24172963/jqu...n-vanilla-javascript
stackoverflow.com/questions/3338642/upda...r-reloading-the-page

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum