Jump to content


Member Since 03 Jan 2003
ONLINE Last Active Today, 00:35

Posts I've Made

In Topic: Paypal IPN warning with Paypal App / Express

Yesterday, 23:18

we migrated from OSC 2.2


Do you still have the old Paypal payment modules in catalog/includes/modules/payment. or did you replace them with the new ones that come with the Paypal app?

In Topic: Change color of text in orders.php

Yesterday, 23:07

in admin/orders.php change

<td class="main"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>


<td class="main" style="color:#dadada;"><?php echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>'); ?></td>

to get the style you want.

In Topic: Adding Pricing to BS Gold Also Purchased Products Module

20 April 2017 - 04:05

@NuDreamer @beerbee



why do you use $random_product? As far as I understand data gets fetched from orders_query so my guess would be to try $orders:

$currencies->display_price($orders['products_price'], tep_get_tax_rate($orders['products_tax_class_id']))

something like that maybe.


Best regards



No, this will show the price that previous customers have paid for the item. If the item has increased or decreased in price then the incorrect amount will be shown (leading to some angry customers! :) )


The correct way to do it:



while ($orders = tep_db_fetch_array($orders_query)) {


        $related_product_price_query = tep_db_query("select products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_id = '" . $orders['products_id'] . "'");
        $related_product_price = tep_db_fetch_array($related_product_price_query);
        $related_product_price['related_products_price'] = tep_get_products_special_price($orders['products_id']);

        if (tep_not_null($related_product_price['related_products_price'])) {
                  $related_products_price = '<del>' . $currencies->display_price($related_product_price['products_price'], tep_get_tax_rate($related_product_price['products_tax_class_id'])) . '</del><br />';
                  $related_products_price .= '<span class="productSpecialPrice">' . $currencies->display_price($related_product_price['related_products_price'], tep_get_tax_rate($related_product_price['products_tax_class_id'])) . '</span>';
                } else {
                  $related_products_price = $currencies->display_price($related_product_price['products_price'], tep_get_tax_rate($related_product_price['products_tax_class_id']));

then change

$also_pur_prods_content .= ' <h5 class="text-center">' . $currencies->display_price($orders['products_price'], tep_get_tax_rate($orders['products_tax_class_id'])) . '</h5>';


$also_pur_prods_content .= ' <h5 class="text-center">' . $related_products_price . '</h5>';

In Topic: Orders not getting confirmed

20 April 2017 - 00:55


define('HTTP_SERVER', 'http://www.mydomain.com'); 


define('HTTP_SERVER', 'https://www.mydomain.com');

and see how that goes.

In Topic: Paypal IPN warning with Paypal App / Express

18 April 2017 - 03:52

That file, or any mention of it, is not part of osCommerce 2.3.4, 2.3.4BS Edge, 2.3.4BS Gold, or the Paypal app.


It was part of this contribution http://addons.oscommerce.com/info/2679


Ensure there are no traces of that module in your installation, especially catalog\includes\modules\payment