Jump to content

Archived

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

Nico01

SCALED SHIPPING DISCOUNT

Recommended Posts

Hallo Community,

 

Is there a possibility to run a general scaled shipping discount by cart quantity on ot_shipping.php / oscommerce 2.3?

 

I tried to impement codes of the contribution "easy Discount", but failed and I am not a programmer.

 

Maybe somebody can push me in the right corner.

 

Discount Codes would be possible, but I don't want a customer input.

If I make there a hidden field, I can do it for one discount.

 

It would nice to get infos about this Topic, thank you.

 

Nico

Share this post


Link to post
Share on other sites

I think, I found a solution.

 

In the contribution Discount Codes I changed in checkout_payment.php:

<?php echo tep_draw_input_field('coupon', '', 'size="32"', $coupon); ?>

 

in

 

 

<?php

if ($cart->count_contents() == '2') {

echo tep_draw_hidden_field('coupon', '2', 'size="32"', $coupon);

} else {

if ($cart->count_contents() == '3') {

echo tep_draw_hidden_field('coupon', '3', 'size="32"', $coupon);

} else {

if ($cart->count_contents() > 3) {

echo tep_draw_hidden_field('coupon', '4', 'size="32"', $coupon);

} } }

?>

 

In admin I made the options for the coupons.

 

Now I have my individual zone rates discount without any input of the customer.

 

Maybe nothing new, but I was not able to find something for me.

 

Ok.

 

Nico

Share this post


Link to post
Share on other sites

×