Thanks to someone else who had this problem, I found his solution and it worked for me.
marty
Thanks to someone else who had this problem, I found his solution and it worked for me.
marty
find tpl_product_info_display.php and delete
then put it back in your CUSTOM template folderCode:<!--bof Product date added/available--> <?php if ($products_date_available > date('Y-m-d H:i:s')) { if ($flag_show_product_info_date_available == 1) { ?> <p id="productDateAvailable" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_AVAILABLE, zen_date_long($products_date_available)); ?></p> <?php } } else { if ($flag_show_product_info_date_added == 1) { ?> <p id="productDateAdded" class="productGeneral centeredContent"><?php echo sprintf(TEXT_DATE_ADDED, zen_date_long($products_date_added)); ?></p> <?php } // $flag_show_product_info_date_added } ?> <!--eof Product date added/available -->
Hmmmm
Hacking in this manner may achieve the desired result, but is just masking the real issue.
When a CORE FUNCTION does not work as it was designed to work, it is quite important to find out WHY it is not working. When a FUNCTION is faulty, it can mean that something is broken that shouldn't be broken... and maybe OTHER FUNCTIONS are also not operating properly.
By simply deleting some lines of code, you are preventing the DISPLAY of the data, but you are not addressing the MAIN REASON why is was not behaving as it should have done.
20 years a Zencart User
I am having the same problem with the new version 1.5.5A
Do I need to delete code or is there a fix for this? Thank you.
No need to mess with code (unless the person who designed your template has changed built-in Zen Cart behavior).
I'm "assuming" that you're talking about "normal" products, i.e. those displayed using the main_page=product_info page:
- Log into your admin
- Click Catalog->Product Types
- Click the "Edit Layout" button that's associated with the Product - General type.
- Change the configuration value for Show Date Added from 1 to 0
Bookmarks