| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
I want to implement an unusual system of discounts | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
I want to implement an unusual system of discounts
I need to implement the code, which, depending on the amount of goods of a certain category of repeat purchases and calculates the new price for this product. Dependence is very nonlinear, an example - in the picture in attachment.
I was looking for documentation http://kb.x-cart.com/display/XDD/Definitive+guide and read the forum but could not find any documentation or sample code Please show me examples or documentation, how to work with a basket of goods and prices in X-CART 5. I really want to understand programming X-CART 5. Thanks in advance! |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Thanks for the question.
Simply put, we need a mod that will work as follows: first purchase of the customer - buy 3 products -- one will be free - buy 6 products -- two will be free next purchase of the same customer will trigger 10% discount and the bonus products will remain the same: - buy 3 products -- one will be free - buy 6 products -- two will be free Do I understand you properly? Should this special offer work for all products in the store or for ones from specific category only? I am planning to create a video tutorial about creating such special-offer-like mods and this mod is a great example, so I probably take this idea and will make a video guide based on it.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#3
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Thank you, Tony!
I perfectly understand you, especially because the programmer. This special offer work for ones from specific category only. Quote:
Thank you so much, God is with you! |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Thank you so much for your understanding!
This video will be ready in 1~2 weeks. I will update a thread, once I am done. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Hi!
I realized that this module is too complex to be a tutorial example, but I have just written a simple implementation of what you need and the pack is here: https://dl.dropboxusercontent.com/u/23858825/Tony-SpecialOfferForDag-v5_1_0.tar
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Thanks, Tony!
I will download and learn... --- upd: I wrote a module based on your example, it works !!! Thanks!!! Such a way to provide much better information than video lessons... idea: collect all your advice in one wiki (or msdn style) library... |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Only one update:
To avoid fraud buyer discount - need to calculate the real status of previous orders: PHP Code:
|
|||||||||
|
#8
|
|||||||||
|
|||||||||
Re: I want to implement an unusual system of discounts
Quote:
Thanks for the advice! This is exactly what I am doing right now. I hope to finish all basic examples by the end of this month and they will be available here: http://kb.x-cart.com/display/XDD/Developer+docs
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|