View Single Post
  #9  
Old 09-13-2016, 07:03 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Add to Cart Button for Out of Stock

You're right. I copied it from a wrong file. The right method is \XLite\View\ProductPageCollection::getWidgetsColle ction().

Quote:
Where is the location of what the add to cart button actually does?

It submites the form with "target" = "cart" and "action" = "add". So, you should look into the \XLite\Controller\Cart::doActionAdd() method.
__________________
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