♥Gyakutsuki Posted March 25, 2009 Share Posted March 25, 2009 (edited) there the question concerning the Flat price add on Summary : add on : http://addons.oscommerce.com/info/6627 This module add a new prefix '=' on attribute product actually we have '+' and '-' (price+/-option)*qty now a flat price with this calcul (price *qty) + option beta version Edited March 25, 2009 by Gyakutsuki Quote Regards ----------------------------------------- Loïc Contact me by skype for business Contact me @gyakutsuki for an answer on the forum Link to comment Share on other sites More sharing options...
littlecasper Posted April 9, 2009 Share Posted April 9, 2009 Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/content/i/l/l/illl/html/catalog/includes/classes/shopping_cart.php on line 440 Quote Link to comment Share on other sites More sharing options...
♥Gyakutsuki Posted April 9, 2009 Author Share Posted April 9, 2009 There the code if ($attribute_price['price_prefix'] == '+') { $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } if ($attribute_price['price_prefix'] == '-') { $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax); } // Flat price if ($attribute_price['price_prefix'] == '=') { $this->total += tep_add_tax($attribute_price['options_values_price'], $products_tax); } salemspice 1 Quote Regards ----------------------------------------- Loïc Contact me by skype for business Contact me @gyakutsuki for an answer on the forum Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.