Giter VIP home page Giter VIP logo

jsonpricefix's Introduction

JsonPriceFix

Overview

Magento CE 1.9.3 does not update prices on configurable or bundles products properly. The cloned price which is often used is themes is not updated.

<span class="regular-price" id="product-price-161_clone">

The cloned price is hidden on Magento's RWD theme but as it is hidden it, it has little impact.

The price is not updated due to a new file which was added in Magento 1.9.3: app/code/core/Mage/Catalog/Helper/Product/Type/Composite.php

This file removes the _clone value on the idSuffix key from the Product.OptionsPrice JSON object e.g."idSuffix":"_clone". This value is required on line 218 of js/varien/product_options.js to update the cloned price.

$(pair.value+this.duplicateIdSuffix).select('.price')[0].innerHTML = formattedPrice;

This Magento module fixes this issue by using the preferred method of class rewrites for updating this new Magento core file to add the _clone value back in.

Installation

  • Download latest version here.
  • Unzip to Magento root folder.
  • Clear cache.
  • The price should now update correctly.

jsonpricefix's People

Contributors

rossmc avatar d90mhz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.