Jump to content
Sign in to follow this  
Gyakutsuki

Flat Attribute

Recommended Posts

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 by Gyakutsuki


Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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);
		}



Regards
-----------------------------------------
Loïc

Contact me by skype for business
Contact me @gyakutsuki for an answer on the forum

 

Share this post


Link to post
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
Sign in to follow this  

×