forforumita Posted September 25, 2016 Share Posted September 25, 2016 Hello Guys, i have added a module to the shop that when the product is out of stock, a form appear and the customer can type his email to be notified when available again. Now, the problem is that when you go to a product page, a default size is automatically selected and this form is shown. and i do not like this behavious. So I created a fake size "attribute" and set its quantity to 1000, but I would like to hide the buy block (add to cart, etc...) when the customer select this size. is it possible? thanks! Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2016 Share Posted September 26, 2016 im not sure what are your expectactions, but why not to just to display the block with simple if condition in product.tpl file {if $product->quantity>100} {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now