Jump to content
Sign in to follow this  
boxtel

Category Discount

Recommended Posts

Sorry, continuing my lonely soliloque, can't seem to edit posts? Anyways, I managed to get the percentage discount working. However, not the percentage is taken from the subtotal without taxes. I want to it to be reducted from total with taxes. This is what my order total shows:

 

Subtotal of items with taxes

VAT tax (included in the above subtotal)

Discount X%, shown in Euro (but taken from subtotal without taxes which is not even shown here)

Postage

COD fee

Total

 

So the problem is how to make this contrib reduct the discount from the subtotal with taxes. Anyone know a quick fix or which line I should be attacking, please?

Share this post


Link to post
Share on other sites

Hello amanda

 

I am having a bit of trouble in making this to work on multiple discounts within same category. I want users to get 10% discount when they buy 3 or more products from a category and 15% if they buy 5 or more.

 

so I wrote the following formula for discount:-

 

21:PE:Q:3;10 , 21:PE:Q:5;15

 

But now if more than 5 items are purchased the discount is applied twice. Please see below how it looks on checkout page:-

 

Buy 3 from Medical Uniforms / Scrubs ... get 10 % off each [6]: -$10.17

Buy 5 from Medical Uniforms / Scrubs ... get 15% off each [6]: -$15.26

 

Can you please help me in modifying the code so that is second level quanity is achieved, only that discount is applied.

 

Thanks for help in advance.

 

Regards

 

Mike


c:/windows/reality.dll corrupted. World Rests in PEACE forever.

Share this post


Link to post
Share on other sites

I have a website bavender.com that uses external product pages to add a custom product to the shopping cart.

 

I tried the discount_plus contribution however it is not product category exclusive and the limit cannot be set

 

Installed this contribution to allow ordering 5 getting the 6th free.

 

The problem is, the custom product has a value of 0 until the attributes are assigned to it. Is there a way to get this to calculate all of the attributes totals then apply the discount

 

I use the formula

 

2:5:1:q

 

category 2, buy 5, 1 free, quantity..

 

Any Ideas anyone?


Jesse Rooney

Share this post


Link to post
Share on other sites

Please... which it is the code to insert in shopping cart file for display discount

"Category Tree Quantity and Value Breaks Discount" and "2gether discount"?

 

Help me!!!

 

I'm sorry for my bad english but i'm italian girl... ;)

Share this post


Link to post
Share on other sites

Please... which it is the code to insert in shopping cart BOX file for display discount

"Category Tree Quantity and Value Breaks Discount" and "2gether discount"?

 

Help me!!!

 

I'm sorry for my bad english but i'm italian girl...

Share this post


Link to post
Share on other sites

Does anyone know if there is a way to modify this contribution to give the cheapest item for free rather than averaging the total of the items and subtracting that?

 

This seems to be the most common use of this type of discount (in the UK at least) and it would be better for the shop owner too.

Share this post


Link to post
Share on other sites

Boxtel or anybody,

 

sorry if I missed this along the way, but does this mod allows having percentage discounts? I am not sure that I totally dig the "34:10:20:p".

 

which means buy 10 from category 34 or its possible subcategories and we give a discount of 20 per ordered item i.e. 20 off.

 

In this particular example situation, the total amount would be decreased by 200 (10 x 20). 20 is in the default currency right, and calculated in other currencies in parallel with item prices?

 

What I basically need is a discount on the sum amount total in percent.

 

For example: "Buy USD100 or more value of products from category 34 and we grant you 15% discount" which would come out as 100 - 15 = 85. Is it possible to use this contrib like this?

 

Cheers

Edited by milosmalic

Share this post


Link to post
Share on other sites

I didnt find a separate Category Tree Quantity and Value Breaks Discount thread so I thought I'd ask here. Is it possible to get this to work with Google checkout? The discount is working in the standard osc checkout although it is showing this:

 

Sub-Total: $35.00

[$0.00]: -$0.00

Buy $30.00 from Category1 ... get 30% off each [$35.00]: -$10.50

U.S. Territories (Standard Delivery): $5.00

Total: $29.50

 

Not sure why that 0.00 is in there.

 

I would like to have this pass through google checkout, but as of now it just passes this:

1 [$0.00]: $0.00

1 Buy $30.00 from category1 ... get 30% off each [$35.00]: $0.00

 

Any help would be greatly appreciated!

Share this post


Link to post
Share on other sites

Is there any possibility to each customer has own discount by category?

 

For example;

I have 3 categories and 3 customers:

Categories: cat, dog, rabbit

 

1 customer has 10% on category cat, 20% on category dog and 0% on category rabbit.

2 customer has 20% on category cat, 10% on category dog and 30% on category rabbit

 

 

I need this type of contribution urgently.

 

BR

Johnatan

Share this post


Link to post
Share on other sites

Hey all, i've installed the Category Discount contribution successfully and all works great if using the osCommerce Credit Card payment method but when i use the Google Checkout Payment module the Quantity Discount line description shows up correctly but with a discount of $0.00.

 

Anyone have any ideas here?

Thanks in advance,

Brad

Share this post


Link to post
Share on other sites

How do you show the total price before the discount on the checkout confirmation page guys ?

Edited by hilife

Share this post


Link to post
Share on other sites

boxtel wrote

well, in the cases that a product can be linked to multiple categories then you need to create a loop in

the order total module.

 

currently it uses this query:

 

$cat_query = tep_db_query("select categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . $t_prid . "'");

 

which determines the category the product belongs to and then determined the entire category path upwarts to see later if any of them is defined for discounts.

 

the code now takes 1 result from that query, so if there are more, run the query and subsequent logic in a loop.

 

and

 

Skylla wrote:

1) Q discount type: the W free items are the LAST ITEMS of category A added to the cart, it should be: W cheapest item(s) of cat A come free. See 2 posts up on how to solve this!

 

Has anyone coded this for the Category Tree Discount contribution? Care to share?

Share this post


Link to post
Share on other sites
Lori, you are absolutely correct, good catch thanks.

 

Hi Amanda. Thanks for this great contribution, and for all your help in the past!

I have a question. I currently have 2 different categories, each containing different kinds of juice.

In category 1, I want the discount to be:

buy 2 cases, get $2 off each case;

buy 3 or more cases, get $4 off each case.

 

In category 2, I want the discount to be:

buy 2 cases, get $1 off each case;

buy 3 or more cases, get $2 off each case.

 

But the tricky part is, I'd like to combine the quantities between the 2 categories, so that if you order 1 from category 1, and 1 from category 2, you get the discounts associated with buying 2, for each item, from its respective category.

So, for the item from category 1, you'd get $2 off the case, and for the item from category 2, you'd get $1 off the case, since you had a total of 2 items between the 2 categories.

 

I don't think there's any way of doing this using the category QVB discount.

 

If I put both categories under the same top category, and I wanted them all to be

buy 2, get $2 off each, and

buy 3 or more, get $4 off each,

then it would work. But I don't see a way of having a different price break between the 2 categories, but having the quantities of the 2 categories be added together to determine which price break you should get in each category.

 

Any suggestions?

 

I think it would need to be a pretty complicated change to the contribution, so that you could specify 2 different category discounts, but have a way of them interacting. I don't see how to do it. Any ideas?

I could try my hand at it, if you have any ideas on how to design the change.

 

Thanks very much!

-Lori-

Share this post


Link to post
Share on other sites

Hi. Not sure if I can do this with this contrib:

 

Spend £XX get X product free.

 

Possible?


SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Share this post


Link to post
Share on other sites

Hi,

 

I installed this great contrib and it is doing exactly what I want (buy 4 and het 1 free within a product category).

 

But I was unable to solve the tax problem. Does anyone know how I can solve this problem? How do other shops manage this

problem?

 

Thanks

Share this post


Link to post
Share on other sites

I would like to how to get Lev_Discount into the little shopping cart box also!

 

 

I dont know if anyone is still following this topic but i have a little problem:

The category discount is great, and also is the shopping cart add on!

 

But i also want level discount to show in the shopping cart!

This is what I build from showing the discount in the shopping cart.

// lev discount
if (MODULE_LEV_DISCOUNT_STATUS) {
include (DIR_WS_MODULES.'order_total/ot_lev_discount.php');
include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_lev_discount.php');
$lev = new ot_lev_discount;
$lev_discount = $lev->$order_total;
if ($lev_discount > 0) {
echo '<tr><td align="right"><img src="images/2gether_sm.jpg" border="0" style="vertical-align:middle" alt="2gether discount" title="2gether discount"> Discount:</td><td align="right"><font color="red">-'.$currencies->format($together_discount).'</font></td></tr>';
$new_total = $new_total - $lev_discount;
}
}

 

In the place of $order_total I also tried get_order_total()

but that didn't worked either.

 

Well nothing shows up, I just modified the 2gether add on, but it doesnt work.

Anyone that could point me in the right direction?

 

Below is the code for the lev_discount.

 

I would really thank anyone that will give any kind of help. Sorry for the bad English, i am from holland.

 

<?php
/*
<<<<<<< ot_lev_discount.php
 $Id: ot_lev_discount.php,v 1.0 2002/04/08 01:13:43 hpdl Exp $
=======
 $Id: ot_lev_discount.php,v 1.3 2002/09/04 22:49:11 wilt Exp $
 $Id: ot_lev_discount.php,v 2.4 2006/02/28 12:10:01 maniac101 Exp $
modified to calc discount correctly when tax is included in discount
>>>>>>> 2.4

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

 class ot_lev_discount {
var $title, $output;

function ot_lev_discount() {
  $this->code = 'ot_lev_discount';
  $this->title = MODULE_LEV_DISCOUNT_TITLE;
  $this->description = MODULE_LEV_DISCOUNT_DESCRIPTION;
  $this->enabled = MODULE_LEV_DISCOUNT_STATUS;
  $this->sort_order = MODULE_LEV_DISCOUNT_SORT_ORDER;
  $this->include_shipping = MODULE_LEV_DISCOUNT_INC_SHIPPING;
  $this->include_tax = MODULE_LEV_DISCOUNT_INC_TAX;
  $this->calculate_tax = MODULE_LEV_DISCOUNT_CALC_TAX;
  $this->table = MODULE_LEV_DISCOUNT_TABLE;
//	  $this->credit_class = true;
  $this->output = array();
}

function process() {
  global $order, $ot_subtotal, $currencies;
  $od_amount = $this->calculate_credit($this->get_order_total());
  if ($od_amount>0) {
  $this->deduction = $od_amount;
  $this->output[] = array('title' => $this->title . ':',
						  'text' => '<b>' . $currencies->format($od_amount) . '</b>',
						  'value' => $od_amount);
$order->info['total'] = $order->info['total'] - $od_amount;
if ($this->sort_order < $ot_subtotal->sort_order) {
  $order->info['subtotal'] = $order->info['subtotal'] - $od_amount;
}
}
}


 function calculate_credit($amount) {
global $order;
$od_amount=0;
$table_cost = split("[:,]" , MODULE_LEV_DISCOUNT_TABLE);
for ($i = 0; $i < count($table_cost); $i+=2) {
	  if ($amount >= $table_cost[$i]) {
		$od_pc = $table_cost[$i+1];
	  }
	}
// Calculate tax reduction if necessary
if($this->calculate_tax == 'true') {
// Calculate main tax reduction
  $tod_amount = round($order->info['tax']*10)/10*$od_pc/100;
  $order->info['tax'] = $order->info['tax'] - $tod_amount;
// Calculate tax group deductions
  reset($order->info['tax_groups']);
  while (list($key, $value) = each($order->info['tax_groups'])) {
	$god_amount = round($value*10)/10*$od_pc/100;
	$order->info['tax_groups'][$key] = $order->info['tax_groups'][$key] - $god_amount;
  }  
}
$od_amount = round($amount*10)/10*$od_pc/100;
//	$od_amount = $od_amount + $tod_amount;
// maniac101 above line was adding tax back into discount incorrectly for me
return $od_amount;
 }


 function get_order_total() {
global  $order, $cart;
$order_total = $order->info['total'];
// Check if gift voucher is in cart and adjust total
$products = $cart->get_products();
for ($i=0; $i<sizeof($products); $i++) {
  $t_prid = tep_get_prid($products[$i]['id']);
  $gv_query = tep_db_query("select products_price, products_tax_class_id, products_model from " . TABLE_PRODUCTS . " where products_id = '" . $t_prid . "'");
  $gv_result = tep_db_fetch_array($gv_query);
  if (ereg('^GIFT', addslashes($gv_result['products_model']))) { 
	$qty = $cart->get_quantity($t_prid);
	$products_tax = tep_get_tax_rate($gv_result['products_tax_class_id']);
	if ($this->include_tax =='false') {
	   $gv_amount = $gv_result['products_price'] * $qty;
	} else {
	  $gv_amount = ($gv_result['products_price'] + tep_calculate_tax($gv_result['products_price'],$products_tax)) * $qty;
	}
	$order_total=$order_total - $gv_amount;
  }
}
if ($this->include_tax == 'false') $order_total=$order_total-$order->info['tax'];
if ($this->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost'];
return $order_total;
 }   



function check() {
  if (!isset($this->check)) {
	$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_LEV_DISCOUNT_STATUS'");
	$this->check = tep_db_num_rows($check_query);
  }

  return $this->check;
}

function keys() {
  return array('MODULE_LEV_DISCOUNT_STATUS', 'MODULE_LEV_DISCOUNT_SORT_ORDER','MODULE_LEV_DISCOUNT_TABLE', 'MODULE_LEV_DISCOUNT_INC_SHIPPING', 'MODULE_LEV_DISCOUNT_INC_TAX','MODULE_LEV_DISCOUNT_CALC_TAX');
}

function install() {
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Display Total', 'MODULE_LEV_DISCOUNT_STATUS', 'true', 'Do you want to enable the Order Discount?', '6', '1','tep_cfg_select_option(array(\'true\', \'false\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_LEV_DISCOUNT_SORT_ORDER', '999', 'Sort order of display.', '6', '2', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Include Shipping', 'MODULE_LEV_DISCOUNT_INC_SHIPPING', 'true', 'Include Shipping in calculation', '6', '3', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Include Tax', 'MODULE_LEV_DISCOUNT_INC_TAX', 'true', 'Include Tax in calculation.', '6', '4','tep_cfg_select_option(array(\'true\', \'false\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function ,date_added) values ('Calculate Tax', 'MODULE_LEV_DISCOUNT_CALC_TAX', 'false', 'Re-calculate Tax on discounted amount.', '6', '5','tep_cfg_select_option(array(\'true\', \'false\'), ', now())");
  tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Discount Percentage', 'MODULE_LEV_DISCOUNT_TABLE', '100:7.5,250:10,500:12.5,1000:15', 'Set the price breaks and discount percentages', '6', '6', now())");
}

function remove() {
  $keys = '';
  $keys_array = $this->keys();
  for ($i=0; $i<sizeof($keys_array); $i++) {
	$keys .= "'" . $keys_array[$i] . "',";
  }
  $keys = substr($keys, 0, -1);

  tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in (" . $keys . ")");
}
 }
?>

Share this post


Link to post
Share on other sites

i love this contribution, but i got problems with

 

one:

 

I added category discount , so 5 products is 5 % discount

 

ordered products(edit)

5 x product x) € 1,000.00

 

Subtotaal: € 1,000.00

 

Buy 5 product X ... en receive 5% per item [5]: -€ 48.67

Totaal: € 951.33

 

two:

 

how do i add the code in my shoppingcart?

 

 

This is my shopping_cart.php code:

 

 

  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 if ($cart->count_contents() > 0) {
?>
     <tr>
       <td>
<?php
   $info_box_contents = array();
   $info_box_contents[0][] = array('align' => 'center',
                                   'params' => 'class="productListing-heading"',
                                   'text' => TABLE_HEADING_REMOVE);

   $info_box_contents[0][] = array('params' => 'class="productListing-heading"',
                                   'text' => TABLE_HEADING_PRODUCTS);

	$info_box_contents[0][] = array('align' => 'center',
                                   'params' => 'class="productListing-heading"',
                                   'text' => TABLE_HEADING_QUANTITY);

   $info_box_contents[0][] = array('align' => 'right',
                                   'params' => 'class="productListing-heading"',
                                   'text' => TABLE_HEADING_TOTAL);

   $any_out_of_stock = 0;
   $products = $cart->get_products();
   for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Push all attributes information in an array
     if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
       while (list($option, $value) = each($products[$i]['attributes'])) {
         echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
         $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
                                     from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
                                     where pa.products_id = '" . (int)$products[$i]['id'] . "'
                                      and pa.options_id = '" . (int)$option . "'
                                      and pa.options_id = popt.products_options_id
                                      and pa.options_values_id = '" . (int)$value . "'
                                      and pa.options_values_id = poval.products_options_values_id
                                      and popt.language_id = '" . (int)$languages_id . "'
                                      and poval.language_id = '" . (int)$languages_id . "'");
         $attributes_values = tep_db_fetch_array($attributes);

         $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
         $products[$i][$option]['options_values_id'] = $value;
         $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];
         $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];
         $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];
       }
     }
   }

   for ($i=0, $n=sizeof($products); $i<$n; $i++) {
     if (($i/2) == floor($i/2)) {
       $info_box_contents[] = array('params' => 'class="shopping_cart_content_display"');
     } else {
       $info_box_contents[] = array('params' => 'class="shopping_cart_content_display"');
     }

     $cur_row = sizeof($info_box_contents) - 1;

     $info_box_contents[$cur_row][] = array('align' => 'center',
                                            'params' => 'class="shopping_cart_content_display" valign="top"',
                                            'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));

     $products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
                      '  <tr>' .
                      '    <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
                      '    <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';

     if (STOCK_CHECK == 'true') {
       $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
       if (tep_not_null($stock_check)) {
         $any_out_of_stock = 1;

         $products_name .= $stock_check;
       }
     }

     if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
       reset($products[$i]['attributes']);
       while (list($option, $value) = each($products[$i]['attributes'])) {
         $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
       }
     }

     $products_name .= '    </td>' .
                       '  </tr>' .
                       '</table>';

     $info_box_contents[$cur_row][] = array('params' => 'class="shopping_cart_content_display"',
                                            'text' => $products_name);

 $info_box_contents[$cur_row][] = array('align' => 'center',
                                            'params' => 'class="shopping_cart_content_display" valign="top"',
                                            'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));

     $info_box_contents[$cur_row][] = array('align' => 'right',
                                            'params' => 'class="shopping_cart_content_display" valign="top"',
                                            'text' => '' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '');
   }

   new productListingBox($info_box_contents);
?>
</td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td>
     </tr>
<?php
   if ($any_out_of_stock == 1) {
     if (STOCK_ALLOW_CHECKOUT == 'true') {
?>
     <tr>
       <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td>
     </tr>
<?php
     } else {
?>
     <tr>
       <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td>
     </tr>
<?php
     }
   }
?>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td>
<?php
   $back = sizeof($navigation->path)-2;
   if (isset($navigation->path[$back])) {
?>
               <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>
               <?php
   }
?>
               <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               </tr>
           </table></td>
         </tr> <a href="Javascript:history.back()">terug naar de vorige pagina</a>

       </table></td>
     </tr>
<?php
 } else {
?>
     <tr>
       <td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<?php
 }
?>
   </table></form></td>
<!-- body_text_eof //-->
   <td width="225px" valign="top"><table border="0" width="225px" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right_shopping_cart.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

Share this post


Link to post
Share on other sites

Hi

I am new to oscommerce so iam very much confused on the changes in this addon that you said in this forum. Can you please include the latest version of this this module in to oscommerce addon list. Thanks in advance.

Share this post


Link to post
Share on other sites

Hi

I am new to oscommerce so iam very much confused on the changes in this addon that you said in this forum. Can you please include the latest version of this this module in to oscommerce addon list. Thanks in advance. I want to add the category discount for a single category in such a way that when customer buy 3 product from a single category the last product product sjould provide with a discount of 50%. I know i can set this by using the category discount addon. Now I am using the code like 1:3:50:a but no message is displayed on the site. Any help will be thankful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×