View Single Post
  #1  
Old 06-25-2015, 01:51 PM
 
Kackavaljer Kackavaljer is offline
 

Newbie
  
Join Date: Apr 2015
Posts: 4
 

Default Add2CartPopoup module help

Hi,

I want to open Add2CartPopoup module directly width out adding the product to the cart (the popup that opens when you click "add to cart" button). So far, i managed to create a button that opens it open it, but it always opens the last product that was added to the cart.
Below is the JS that handles this, and it is in an event listener. I passed productID and that is the id of the product, but I have not succeeded in getting it to open correctly.

Any ideas?

Code:
this.popupResult = !popup.load( URLHandler.buildURL({ target: 'add2_cart_popup', productID: pid }), { dialogClass: 'add2cartpopup', } );
__________________
X-Cart 5
Reply With Quote