Kobra I actually have something working after finding this thread http://www.zen-cart.com/showthread.p...92#post1159692
Which states to change this
Code:
$added_charge = zen_get_attributes_price_factor($chk_price, $chk_special, $attribute_price->fields['attributes_price_factor'], $attribute_price->fields['attributes_price_factor_offset']);
to this
Code:
$added_charge = zen_get_attributes_price_factor($attributes_price, $chk_special, $attribute_price->fields['attributes_price_factor'], $attribute_price->fields['attributes_price_factor_offset']);
And it works to a degree. The calculations are done correctly all the way through the cart process exactly how I want them, apart from I cannot find how to update the sub total in the shopping cart, that still displays the sub total as Base Price + Attribute Price (not percentage of attribute price).
Which file controls what is displayed in the sub total inside tpl_shopping_cart_default.php? If I can get the sub total to add together prices that are calculated with the changed line of code above then it will work exact to how I want it.
Bookmarks