Czerni Posted February 9, 2015 Share Posted February 9, 2015 Hallo, thx to eu lega i have a script to show the unit price per Kg. Know i want to subtract it with the field "unit_price_impact" from the database table ps_product_attribute Is there a Variable for this? I have tried product.Unit_Price_Impact and productUnitPriceImpact as variable with no success Here is the Code i want to modify. // Unit price are the price per piece, per Kg, per m² // It doesn't modify the price, it's only for display if (productUnitPriceRatio > 0) { unit_price = priceWithDiscountsDisplay / productUnitPriceRatio - product.Unit_Price_Impact; $('.unit-price-display').text(formatCurrency(unit_price * currencyRate, currencyFormat, currencySign, currencyBlank)); $('.unit-price.eu-legal').show(); } Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now