Jump to content
Sign in to follow this  
jon_l

How to give a shipping discount? (Credit Class????)

Recommended Posts

I need some advice on how to do something, I think the Credit Class mod might do the trick but wanted to check before starting to install....

 

What I want to do is to give a discount on the shipping charges, up to a fixed percentage of the total order value. So for example:

 

- Order comes to ?100

- Shipping comes to ?20

- Final shipping total after discount should be ?10

 

If the discount comes to more than the shipping charge then the shipping charge should be ?0.

 

I'd like this all to show on the checkout, so the customer can see the calculations.

 

I'm ok with coding the changes but am trying to work out the best starting point. I'm sure I could write the changes from scratch, but a starting point, such as the Credit Class mod, would be a big advantage.

 

Thanks,

 

Jon.

Share this post


Link to post
Share on other sites

No,

 

You don't even need the Credit Class, you can do this as a standard order total module.

 

Look in the contributions area in the functions/classes sections.

 

Choose something like members discount or shipping type charge to give you an idea of how to structure the code.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Thanks for the quick reply and info.

 

I'll check the mods out as suggested.

 

Jon.

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  

×