Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Echo Special Price in product_info page


adz1976

Recommended Posts

Posted

Hi

 

Is there an easy way to echo the special price on the product_info page.

 

I have included a link to my website so you have an idea what i'm talking about.

http://www.macbuildingproducts.com/product_info.php?products_id=24866

 

At the minute I am using SPPC & if I echo the following in product_info.php, 4 prices are shown

 

<?php echo $products_price; ?>

 

The 4 prices are normal price ex & inc vat and also special price ex & inc vat.

 

PriceFormatter.php

In this file is where I think I have to add a function but not too sure how to do it,

or is there an easy way to add some PHP code straight in to the product_info.php file to display the special price ?

 

 

I have cut part of the code included in a function in the priceFormatter.php file, if I delete this from the function the specail price disappears.

 

Can I put this code in to the product_info page or is it not that simple ?

 

// now get the specials price for this customer_group and add it to product_info array

$special_price_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = " . (int)$product_id . " and status ='1' and customers_group_id = '" . $customer_group_id . "'");

if ($specials_price = tep_db_fetch_array($special_price_query)) {

$product_info['specials_new_products_price'] = $specials_price['specials_new_products_price'];

}

$this->parse($product_info);

return $product_info;

}

 

I would like the normal price & the special price kept seperate so I can move them in different positions on the product_info page.

 

Please help!!

 

Hope ive explained my problem ok.

 

Thanks

 

Adam :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...