Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flat Attribute


Gyakutsuki

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

 

Link to comment
Share on other sites

  • 3 weeks later...

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

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...