View Single Post
  #2  
Old 03-26-2018, 12:52 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote