Issues with Magento 1.4.1+ not displaying a price block

This theme and possibly other Joomlart Magento themes has issues with Magento 1.4.1 and later.

The specific issue I found is that it no longer displays the price block in catalog pages, and interestingly even the Joomlart demo pages do not display a price block.

I found that the simple.phtml template has been deprecated in Magento 1.4.1 and replaced by default.phtml. So edit the Joomlart theme specific catalog.xml (for example app/design/frontend/default/jm_oganis/layout/catalog.xml) and replace the single occurrence of simple.phtml with default.phtml, then it will display the price block.

8 answers

Profile photo of thangnn1510 0.00 $tone January 31, 2011
Public

Dear purrfect!

Thanks for your report. We have updated all of our templates to Magento 1.4.2.0 and see no issue. The price blocks still displays normal in demo.

Can you give us the link to our demo where we can confirm the issue? We shall check it then and fix it.

Thanks again for your help

#1
Profile photo of thangnn1510 0.00 $tone February 3, 2011
Public

Dear purrfect!

Thanks for your report. I have created bug tracker We will check all our themes, fix this bug and give the update soon!

Thanks for your help and sorry for this inconvenience.

#3
Profile photo of CHANTAL COSTE PEY 0.00 $tone February 7, 2011
Public

Hi,
Im facing the same problem with jm_Ores.
In catalog.xml, I replaced the link (from simple.phtml to default.phtml). It still doesn’t work. When I use the "Template Path Hints" the block always links to "simple.phtml" (which is deprecated) ie the change into "catalog.xml" has not been taken into account.
Then I tried to copy the content of "default.phtml" into "simple.phtml" and save it. It still doesn’t work.

Any fix / howto welcome
Thanks

#4
Profile photo of Neil Beattie 0.00 $tone February 7, 2011
Public

Hi,
You could try refreshing your Magento caches, even if caching is disabled. Some elements do still get cached. Also double check that the catalog.xml that you edited is the one that is getting used.
I’ve now done this change on a couple of skins (Oganis & Easyshop) and has worked for both.

#5
Profile photo of CHANTAL COSTE PEY 0.00 $tone February 7, 2011
Public

Right,

Flushing the cache solved the problem. Now the catalog links to "default.phtml" which is correct and price and stock availability are displayed.

I also noticed a difference in view.phtml :

Under Base
<?php
$_helper = $this->helper(‘catalog/output’);
$_product = $this->getProduct();
?>

Thanks
Under jm_ores
<?php
$_helper = $this->helper(‘catalog/output’);
$_product = $this->getProduct()
?>

I added the ";" after getProduct().

#6
Profile photo of Neil Beattie 0.00 $tone February 7, 2011
Public

Hi diva34,
I’m pleased to hear it is working.
The missing ; command terminator doesn’t cause a problem because that command is the last one before the closing ?> bracket. However, I’d consider it bad practice to not have the terminator and and I would have also added one

#7
Profile photo of thangnn1510 0.00 $tone February 8, 2011
Public

Dear All!

I have checked again! To fix this bugs, please do as Purrfect said or you could do by this way:

-- Open app\design\frontend\default\your_theme\layout\cata log.xml and find these code:

Code:

 <PRODUCT_TYPE_simple translate="label" module="catalog">
        <label>Catalog Product View (Simple)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/simple.phtml"/>
        </reference>
    </PRODUCT_TYPE_simple>
    <PRODUCT_TYPE_configurable translate="label" module="catalog">
        <label>Catalog Product View (Configurable)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/configurable.phtml"/>
        </reference>
        <reference name="product.info.options.wrapper">
            <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
        </reference>
    </PRODUCT_TYPE_configurable>
    <PRODUCT_TYPE_grouped translate="label" module="catalog">
        <label>Catalog Product View (Grouped)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml"/>
        </reference>
    </PRODUCT_TYPE_grouped>
    <PRODUCT_TYPE_virtual translate="label" module="catalog">
        <label>Catalog Product View (Virtual)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/virtual.phtml"/>
        </reference>
    </PRODUCT_TYPE_virtual>

Then change with:
Code:

    <PRODUCT_TYPE_simple translate="label" module="catalog">
        <label>Catalog Product View (Simple)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="catalog/product/view/type/default.phtml">
                <block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
                    <label>Product Extra Info</label>
                </block>
            </block>
        </reference>
    </PRODUCT_TYPE_simple>
    <PRODUCT_TYPE_configurable translate="label" module="catalog">
        <label>Catalog Product View (Configurable)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="catalog/product/view/type/default.phtml">
                <block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
                    <label>Product Extra Info</label>
                </block>
            </block>
        </reference>
        <reference name="product.info.options.wrapper">
            <block type="catalog/product_view_type_configurable" name="product.info.options.configurable" as="options_configurable" before="-" template="catalog/product/view/type/options/configurable.phtml"/>
        </reference>
    </PRODUCT_TYPE_configurable>
    <PRODUCT_TYPE_grouped translate="label" module="catalog">
        <label>Catalog Product View (Grouped)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_grouped" name="product.info.grouped" as="product_type_data" template="catalog/product/view/type/grouped.phtml">
                <block type="core/text_list" name="product.info.grouped.extra" as="product_type_data_extra" translate="label">
                    <label>Product Extra Info</label>
                </block>
            </block>
        </reference>
    </PRODUCT_TYPE_grouped>
    <PRODUCT_TYPE_virtual translate="label" module="catalog">
        <label>Catalog Product View (Virtual)</label>
        <reference name="product.info">
            <block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="catalog/product/view/type/default.phtml">
                <block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
                    <label>Product Extra Info</label>
                </block>
            </block>
        </reference>
    </PRODUCT_TYPE_virtual>

Refresh your cache, the price will be displayed.

I’ll update for all our Magento themes.

Thanks again for all your helps.

#8

Please login or Register to Submit Answer

Written By

Comments