View Single Post
  #10  
Old 09-13-2016, 01:09 PM
 
RexxBattery RexxBattery is offline
 

Member
  
Join Date: Aug 2016
Posts: 13
 

Default Re: Add to Cart Button for Out of Stock

Quote:
Originally Posted by qualiteam
It submites the form with "target" = "cart" and "action" = "add". So, you should look into the \XLite\Controller\Cart::doActionAdd() method.

Thank you, I ended up finding this not long after asking. What initializes doActionAdd()? I can't seem to get this popup code to work when the button is clicked.
Code:
echo '<script type="text/javascript">alert("hello!");</script>';
__________________
5.2.16
Cloud Search
Market Price
Volume Discounts
Reply With Quote