Got the basic site working, I need to be able to implement different types of incentives/discounts/extra charges.
Concept 1:
Charge standard price while checkout total is less than $150 (example).
If checkout total is more than $150 (say $250) then a discount is calculated as a percent of the difference (say 30%).
In this instance, Product value is $250, discount is $30, Discounted price is $220.
A registered user only to be able to see discount at the checkout screen.
Where would I need to modify the code to implement above?
Concept 2:
At the moment, I do not charge postage or handling for any purchase.
I may provide credit coupons as loyalty and referral incentives, if the total value of an order that includes coupons is less tha $150, then I want to add $12 for handling.
Thank you in advance for the assistance.
Comments
Best way to implement Special Discounts at checkout
hi
I have done some similar sort of work.
For this purpose you first need to install "flexicharge" module. After installing this module the best way to put you custom changes is to use "custome.inc" file for this purpose in the "flexicharge>>providers" folder.
But I did it not using "custom.inc". I modify "flexicharge>>providers>>shipping.inc". At the end of this file you will see some handling of "$rate" variable. Now you can change the value of this variable according to your conditions.
Hopefully it will provide you some way to solve your problem if I understood what you exactly mean.
Thanks
If you want to create
If you want to create specials with your own calcs then use the hook_product_specials() http://drupalecommerce.org/api/function/hook_product_specials/53 and this will allow you to inject the special into your invoices.
Gordon Heydon
Lead Drupal Developer - Lonely Planet
--
Gordon Heydon