Jump to content

Attribute price impact display


Dan1

Recommended Posts

  • 4 weeks later...

I'm looking for the same feature. I thought I would resolve it with an easy equation in product.js but it's not that simple (for me). Any hints how to calculate (or show?) the price impact next to every attribute ?

 

productPrice - [what?] = impact

Link to comment
Share on other sites

  • 8 months later...

find for this code

 

var taxExclPrice = priceTaxExclWithoutGroupReduction + (selectedCombination['price'] * currencyRate);

 

in product.js then copy below code and paste after it in product.js in theme/js directory

 

if(selectedCombination['price']!=0){
       var effectedprice = currencySign + selectedCombination['price'];
       $("#showImpactprice").text("The Effected price for this is "+effectedprice);
       } else {
       $("#showImpactprice").text('');
       }

 

and then add below line in product.tpl where you want to display price.

 

<span id="showImpactprice"></span>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...