interactive photo

  • Posts: 10
  • Thank you received: 0
  • Hikashop Business
3 weeks 2 days ago #313337

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.13
-- PHP version -- : 7.5.6

Hi

I would like an interactive photo that you can click on. The red items are characteristics in the photo. When you click on it, these must be added to the order. Which code should we use as url / code to have it added to the order when you click oin it? Or is there something standard for this within hikashop?

Greetz

Attachments:

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

  • Posts: 67676
  • Thank you received: 10046
  • MODERATOR
3 weeks 2 days ago #313344

Hi,

What you could do is add the image in the description of the product. You would also add area/map tags in the description to setup the zones where the image can be clicked on:
www.w3schools.com/tags/tag_area.asp
And for the link on each "area" tag, you can use the add to cart link of each variant:

https://mywebsite.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&cid=XXX&qty=1&add=1
where XXX is the id of the variant (you can see the id of the variant in the link to the product page in the cart after you added the variant to the cart).

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

Time to create page: 0.052 seconds
Powered by Kunena Forum