
Originally Posted by
mc12345678
So, not sure if it is directly related, but ZC 1.5.1 was not designed to be operational with PHP 5.6 (highest of PHP 5.3 is supported, though changes could be made for it to work in PHP 5.6 which appear to have been the case here), real suggestion would be to upgrade to ZC 1.5.5e (current production release) and then try to address any issues that might exist (which in the upgrade process would be hammered out in the development location).
As to possibly tracking down the issue, two pronged approach somewhat. One would be to use the developers tool kit (admin->tools->developers tool kit) to try to work through the code and possibly identify why no price is shown on your category that has the sale, but is displaying on the other category that has the sale. Would suggest searching on the text: prodlisting_price as that appears to be the html tag that is applied just before the price is supposed to be displayed.
Does this category/product also have a special applied to it or anything? Is there a quantity discount associated with it?
The other approach of the two pronged approach is to try temporarily switching to a different template to see how template related the issue is as compared to possibly one or more of the "constant" (core related) files.
Another question to help try to diagnose, when was this last seen as working as expected and what has changed since then?
So I've done a fair bit of investigation using the developers tool kit, and the most relevant file where 'prodlisting_price' appears is 'product_listing.php'. I noticed the file was changed in April so i reverted to a backup but that did not resolve me issue.
Looking into the 'product_listing.php' file, the price appears to be coming from this section of code:
PHP Code:
case 'PRODUCT_LIST_PRICE':
if (zen_not_null($listing->fields['products_packedin_units'])) {
$packedin = '<br />' . $listing->fields['products_packedin_units'] ; }
else {
$packedin = '';}
$lc_price = '<span class="prodlisting_price">' . zen_get_products_display_price($listing->fields['products_id']) . '</span><br /><span class="prodlisting_itemnum">Sold in ' . zen_get_products_quantity_order_min($listing->fields['products_id']) . "'s". '</span>';
$lc_align = 'right';
$lc_text = $lc_price;
I've been staring at this code.. and i don't see any issues. Perhaps someone else can make sense of this?
Bookmarks