Jump to content
Sign in to follow this  
Eyals

Problem in getting total sum of 2 variables

Recommended Posts

Hello,

 

I would like to show product's price and right below it the products price including individual shipping price, here's the 2 relevant code blocks from my product_info.php:

 

   if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
  $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
} else {
  $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
}

and

 

	$products_ship_price = $currencies->display_price($product_info['products_ship_price']);

What code should I use in order to show the total product's price + shipping price?

 

Thanks for you time, any help would be appreciated.

Share this post


Link to post
Share on other sites

Well, it seems like a complicated request after all... :-" no one can help?

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  

×