Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem in getting total sum of 2 variables


Eyals

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.

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