Question

I just upgraded to Magento 1.9.2.3, and all my configurable products are displaying $0 for pricing. The pricing displays correctly on the catalog page and even when you add-to-cart, just not working on the product page. Not sure how to get this back up and working as I am a rookie to Magento. Please advise. Thanks!

So after some troubleshooting, I've found out that our pricing is working on configurable products only if it doesn't have "in-stock" items. As soon as you add inventory on the simple product, everything goes to Zero on product page.

When I delete this custom file in our theme, pricing works. Anyone able to tell me what is invalid in this file for 1.9.2.3? Would be amazing to get input.

<?php
$_product = $this->getProduct();
$_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
$_jsonConfig = $this->getJsonConfig();
$_renderers = $this->getChild('attr_renderers')->getSortedChildren();
?>
<?php if ($_product->isSaleable() && count($_attributes)): ?>
    <dl>
        <?php foreach ($_attributes as $_attribute): ?>
            <?php
            $_rendered = false;
            foreach ($_renderers as $_rendererName):
                $_renderer = $this->getChild('attr_renderers')->getChild($_rendererName);
                if (method_exists($_renderer, 'shouldRender') && $_renderer->shouldRender($_product, $_attribute, $_jsonConfig)):
                    $_renderer->setProduct($_product);
                    $_renderer->setAttributeObj($_attribute);
                    echo $_renderer->toHtml();
                    $_rendered = true;
                    break;
                endif;
            endforeach;

            if (!$_rendered):
                ?>
                <dt>
                <label class="required"><em>*</em><?php echo $_attribute->getLabel() ?></label>
                </dt>
                <dd<?php if ($_attribute->decoratedIsLast)
            { ?> class="last"<?php } ?>>
                    <div class="input-box">
                        <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?><?php echo $_product->getId() ?>" class="required-entry super-attribute-select_<?php echo $_product->getId() ?> no-display">
                            <option><?php echo $this->__('Choose an Option...') ?></option>
                        </select>
                    </div>
                </dd>
            <?php endif; ?>
    <?php endforeach; ?>
    </dl>
    <script type="text/javascript">
        var spConfig_<?php echo $_product->getId(); ?> = new Jennyyoo_Product.Config(<?php echo $_jsonConfig ?>);
    </script>
    <?php echo $this->getChildHtml('after') ?>
<?php endif; ?>
Was it helpful?

Solution

Just try reindexing your catalog and flushing cache.

If it does not work and you have custom modules try selectivery to disable them by editing XML config files in app/etc/modules. Flush cache at every step to see results.

It could also be a template issue, see if it works by setting back the deafult theme.

OTHER TIPS

I had faced this type of issue recently.I have updated my Magento version to 1.9.2.2, After updated to new version, if i select the price of product, that cost is showing normally fine till here. The main problem is, if i select the any Custom option like color, size That product's price is showing ZERO.

Solution:

First of all, we need to go to this path

app/design/your package/yourtheme/template/catalog/product/view/options.phtml

Search for this script

price += parseFloat(config[optionId][element.getValue()]);

Replace with

price += parseFloat(config[optionId][element.getValue()].price);
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top