X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   XCart 5 Use an Image Map for add to Cart (https://forum.x-cart.com/showthread.php?t=76079)

jmiranda 03-08-2018 02:58 PM

XCart 5 Use an Image Map for add to Cart
 
We sell RC Car and parts for the cars. We have exploded views of the Cars. I have made image maps with links to all the parts.
Two Question.

1) If I put the Images and Maps in a static pages is there anyway to have a click on the hotspots do an add to cart? preferably without a page reload.

2) In Xcart 4 the Image Maps would work in static pages and I could click hotspots and get product pages to load and do add from the product pages. It was clumsy but worked. In Xcart 5 only the first hotspot works and Xcart 5 is resizing my Image which Xcart 4 left alone.

Any help would be appreciated.

qualiteam 03-26-2018 12:52 AM

Re: XCart 5 Use an Image Map for add to Cart
 
Quote:

Originally Posted by jmiranda
1) If I put the Images and Maps in a static pages is there anyway to have a click on the hotspots do an add to cart?


Yes, it is possible to form an URL that would add a product to cart:
https://kb.x-cart.com/integrating_your_store_with_other_web-sites/adding_products_to_cart_via_url.html

Quote:

Originally Posted by jmiranda
preferably without a page reload.


Technically, this is possible, but is likely to be implemented as a custom module - you need a JavaScript code that would look through the image map and assign custom click handlers.


Quote:

Originally Posted by jmiranda
In Xcart 5 only the first hotspot works


I need to check the page URL to see why it works this way.

Quote:

Originally Posted by jmiranda
and Xcart 5 is resizing my Image which Xcart 4 left alone.


Yes, X-Cart 5 resizes many images in order to reduce the bandwidth usage. However, it depends on where the image is displayed and how it was uploaded.

xim 03-26-2018 02:44 AM

Re: XCart 5 Use an Image Map for add to Cart
 
review this addon: https://market.x-cart.com/addons/showroom.html


All times are GMT -8. The time now is 06:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.