You can hide the size attributes on the Product/Catalog Detail page if the attribute is out of stock, you can modify it for color as well. You could take this code and modify it for other similar functions.
**note** Most likely this code will only work with Advanced Tier or higher ProStores sites.
**note** This snippet of code ONLY works on the Product/Catalog Detail template. You will need to do some editing with the Add to Cart template as well as the Detail template to get this code to work properly.
Does this only really apply to Advanced Tier Prostores?
Thats a good observation, I hadn’t thought of that so I’ve looked it up and I cannot tell you for sure because I don’t have access to a business level account.
But! Most likely you are correct, if the business level accounts don’t have attributes with quantities then this code wouldn’t apply/work.
I note the post to reflect this. 🙂
Thanks!
Aloha…
any idea how the functionality ofyour code to the following chunck?
Size:
Mahalo from Hawaii
Hi Bill,
I only see the word “Size:” Could you provide a little more detail?
Thanks!
Matt
sorry Matt
i pasted a chunk of code but all tags (html and ssml) were stripped out
is there a trick?
I’ll try it again
Size:
This is the one thing thats been really annoying with WordPress, I’m constantly having issues with posting code in it. It may be spam protection built into wordpress.
Try sending to it to my e-mail matt@onetakemedia.net and I’ll repost it back.
here it goes…
Size:
I still can’t get this code to work. Where exactly in the Product Detail page or Add to Cart page do you paste it in?
Hi Mr. Jenkins, What exactly is happening when you say its not working, is there an error message?
is there any way to hide the “add to cart” button, even when quatity says “0”? want to display the product info but need to disable the “add to cart” feature. help! any ideas?
Hmm, that would require creating a if statement that determined if the total of all attributes = 0 then hide the add to cart button or display an alternate graphic.
That would take some time and probably some custom coding, right now my schedule doesn’t really have spot in it to create something like that.
But if you spend some time in the SSML reference guide I get you could create it. 🙂
Thanks for reading!!
Matt
sounds like a good idea. i will try reading the guide…thanks!