Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity Controller 5.1 Problem with Quantity Discount


Farrukh

Recommended Posts

Hiya a

 

I have installed QT5.1 and i am having problems with the Price im gettin after Quantity Discount.

 

This is the first step

 

http://www.ajnabiz.com/Snap1.gif

 

http://www.ajnabiz.com/Snap2.gif

 

http://www.ajnabiz.com/Snap3.gif

 

At the order_confirmation page, i get back the original price which was before discount.

 

Also, the original price is displaced IN Admin under Customers => Orders

 

http://www.ajnabiz.com/Snap4.gif

 

I have searched in order_confirmation.php

 

 for ($i=0; $i<sizeof($order); $i++) {

   echo '          <tr>' . "n" .

        '           <td class="main" align="right" valign="top" width="3">' . $order->products[$i]['qty'] . ' x</td>' . "n" .

        '            <td class="main" valign="top">' . $order->products[$i]['name'];



   if (STOCK_CHECK == 'true') {

     echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);

   }



   if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {

     for ($j=0; $j<sizeof($order->products[$i]['attributes']); $j++) {

      echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';

     }

   }



   echo '</td>' . "n";



   if (sizeof($order->info['tax_groups']) > 1) echo '            <td class="main" valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "n";



   echo '            <td class="main" align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "n" .

 

$order->products by $currencies->format($cart->show_total(), but it didnt change any thing.

 

I saw that the Discount was calculated in Shipping_Cart.php

 

// cart savings

if ($final_before_savings > $cart->show_total()) {

?>

     <tr>

       <td align="right" class="ShoppingCartSavings"><?php echo SHOPPING_CART_TOTAL_SAVINGS; ?> <?php echo $currencies->format(($final_before_savings - $cart->show_total())); ?></td>

     </tr>

<?php

}

?>



     <tr>

       <td align="right" class="ShoppingCartPrices"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></td>

     </tr>

 

 

$currencies->format($cart->show_total()

is displaying the discounted price but $order->products.

 

So the Discounted Price is only displayed in shopping_cart but actually its not working in checkout_confirmation and Admin => Customers => Order/

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...