Originally Posted by
JollyJim
I finally figured out how to get all the products listing pages to use a buy now or add to cart button, regardless of whether the item has attributes or not. (Thanks to Kobra for pointing me in the right direction and to Linda for her cryptic puzzles wich kept the Grey Matter from seizing completely)
If a product has no attributes, you can display a Buy Now Button instead of a More Info Link. In Zencart Admin go to Configuration and Choose Featured Listing. Locate "Display Multiple Products Qty Box Status and Set Button Location" and set it to '0'. Next locate "Display Product Buy Now Button" and set this to '1302' or whichever seequence you prefer. The Add To Cart Button will now show instead of the Quantity box.
If a product has attributes you need to use the method "Replacing "more info" with a button modification.
You need to edit the language file so copy english.php from template default to includes/languages/YOUR_TEMPLATE/english.php
Next look for the More_Info_text define statement (about line #365)
You can replace the text in the define statement with the call to an image:
// more info in place of buy now
define('MORE_INFO_TEXT','... more info');
Replace With:
// buy now in place of more info
define('MORE_INFO_TEXT','<img src="includes/languages/YOUR_TEMPLATE/buttons/yourimage.gif" alt="Click To Buy Now" />');
Next go into your admin section and choose configuration/Product Listing. Find "Display Product Add to Cart Button (0=off; 1=on)" and set this to 1. Next find "Display Multiple Products Qty Box Status and Set Button Location" and set this to 0. You will now have a Buy Now or Add to Cart button in place of the More Info Text.
Bookmarks