Zen Follower
- Join Date:
- Oct 2010
- Location:
- Idaho
- Posts:
- 293
- Plugin Contributions:
- 0
Buy Now button consistency
--- This post might also be considered for the ZC improvements/bugs forum, though not so much a bug as an inconsistency in button/link text display ---
- This is core ZC code -- issue is not due to custom template code -- screen shot attached *
On a product listing, such as the All Products listing, a sold out item displays the little sold out button instead of buy now button (items w/o attributes), so that is perfect, but the sold out listing has an extraneous '... more info' link right above the sold out button. There is also a '... more info' link over to the right, as expected.
Okay, so the difference between that overall display and the display for a product that can be sold, is the extraneous (duplicate) '... more info' link -- it is not suppressed the way it is suppressed when the product can be sold and only a single '... more link' appears.
I'm simply not an experienced enough coder to (completely) understand how the sold button gets called instead of the 'buy now' button, but it looks a little complicated. There are functions in functions_general that switch the button to be displayed from the 'buy now' button to the 'sold out' button (about lines 1074 and 1140) and then there are the regular module and template files that put everything together. I'm not good enough w/ code to see how $return_button (or maybe it's $display_button) gets passed the substitution, but the operation is in there somewhere. :blink:
My question is this: would it be simple to suppress the extraneous '... more info' link when the little 'sold out' button gets triggered? And if so, could the suppression be done in a central location to command all types of listing pages? Thank you.
Some or all of the files that control this display:
tpl_modules_products_all_listing.php
product_listing.php
functions_general.php
tpl_products_all_default.php