Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Speicals not showing on Product_info page


ecclesr

Recommended Posts

I am trying to debug why special or SPPC prices are not showing on the product_info.php page

 

I have even tried using the initial copy of product_info.php but still special and sppc prices do not show

 

Where should I be looking - which programs code should be checking

 

Thanking you all in advance

Link to comment
Share on other sites

Trying to track the issue down

 

Look like it could be the passing of the variable $new_price

 

can someone explain how $new_price is passed to product_info.php from product_new.php and

specials.php

 

Any help would appreciated, as I want to move on to adding a few more contributions

 

Thanking you all in advance

Link to comment
Share on other sites

Trying to track the issue down
Perhaps you should check whether logging-in went OK and the SPPC session variables were set.

 

For example add something like this to product_info.php or whatever page you like:

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<?php echo ' <!-- ';
print_r($_SESSION);
echo ' --> '; 
?>

Link to comment
Share on other sites

Thank you your reply I will do the check

 

What I have found with the product_info code is

 

If I remove following if test

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

 

and remove the else code and just run the following

 

// BOF Separate Price per Customer

$scustomer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id']. "' and customers_group_id = '" . $customer_group_id . "'");

if ($scustomer_group_price = tep_db_fetch_array($scustomer_group_price_query)) {

$product_info['products_price']= $scustomer_group_price['customers_group_price'];

}

// EOF Separate Price per Customer

 

$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>';

 

 

I get displayed the original price with a line though it and in red $0.00

 

to debug

 

How can i just display $new_price

 

How can i just display tep_get_products_special_price($product_info['products_id'])

 

why is $new_price 0.00

 

Thanking you all in advance

Link to comment
Share on other sites

  • 2 weeks later...

I have still been unable to resolve this issue

 

Can someone please explain to me how the following two variables are populate

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

 

in product_info.php

 

Ie how are the values being passed from products_new.php and specials.php

are the value being passed by class, is my problem simple a session thing

 

How do I go about debugging this

 

Can someone take me step by step from products_new.php and specials.php and selecting a product on special to product_info.php to shopping_cart.php - What do I need to test at each stage and where and what debugging code could I write

 

I am at a lost in solving this, my progress on my site has ground to a halt

 

Thanking you all in advance

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...