Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Price Updates not change DB


dstebo

Recommended Posts

  • 2 months later...

digit percentage price appears to change but do not write new value changes price in the database

 

this line of code is the error

//// check for global add value or rates, calcul and round values rates
if ($HTTP_POST_VARS['spec_price']){
  $flag_spec = 'true' ;
//page select fix v2.8.3 August 11, 2009
$spec_price = $HTTP_POST_VARS['spec_price'];
  if (substr($HTTP_POST_VARS['spec_price'],-1) == '%') {
			  if($HTTP_POST_VARS['marge'] && substr($HTTP_POST_VARS['spec_price'],0,1) != '-'){
					$valeur = (1 - (ereg_replace("%", "", $HTTP_POST_VARS['spec_price']) / 100));
					$price = sprintf("%01.2f", round($products['products_price'] / $valeur,2));
			}else{
			$price = sprintf("%01.2f", round($products['products_price'] + (($spec_price / 100) * $products['products_price']),2));
		  }
	  } else $price = sprintf("%01.2f", round($products['products_price'] + $spec_price,2));
//page select fix v2.8.3 August 11, 2009
} else $price = sprintf("%01.2f", round($products['products_price'], 2));

 

this line

//page select fix v2.8.3 August 11, 2009
$spec_price = $HTTP_POST_VARS['spec_price']


//page select fix v2.8.3 August 11, 2009
   } else $price = sprintf("%01.2f", round($products['products_price'], 2));

Edited by dstebo
Link to comment
Share on other sites

I took this contribution

 

Quick Price Updates 2.8.3

Correction de la prévisualisation

quick_updates.php

l484 ajout de

$spec_price = $HTTP_POST_VARS['spec_price'];

et l493

} else $price = $products['products_price'] + $spec_price ;

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.

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...