View Single Post
  #12  
Old 09-23-2016, 05:42 AM
 
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
How did you add this code?

Also, I believe the default controller class reloads the page after processing the method, so this may be the reason why you don't see the message.

Thank you, that definitely confirms my suspicions. I was just randomly throwing it in different functions that are called when the button is pressed. As of right now, I have it so that it just pops up when the page is loaded (which also makes it pop up when clicked the button is clicked due to the reload). Can you think of any way to get it to pop up before the page is reloaded when the button is clicked?
__________________
5.2.16
Cloud Search
Market Price
Volume Discounts
Reply With Quote