[TYPO3-commerce] Coupon extension - every visit increase the money amount reduction in the basket
Søren Thing Andersen
sta at netimage.dk
Tue Sep 23 11:40:21 CEST 2008
Hi.
Christian skrev:
> I have a strange behaviour with the extension "commerce coupons 0.2".
> When I put a coupon in the basket, the coupon plugin show me that the
> coupon is valid and invit me to check the basket again so the
> ###COUPON_VIEW### marker is filled in the commerce basket template.
> The problem is that each time I visit my basket, the coupon value is
> multiplicated by the number of time I reload/visit my basket o_O
> Anyone else encountered this problem ? I put the coupon plugin before or
> after the pi2 commerce plugin and it's the same behaviour. I also
> deactivated the hooks I created for commerce but nothing can solve this
> problem.
I had the same problem at first.
Based on ext/commerce_coupons/doc/quick_howto.txt and the thread
"[TYPO3-commerce] commerce_couponss" from last year I chose to use the
article "syscoupons_use".
Today I found the following text in the top of
ext/commerce_coupons/static/setup.txt:
######## Note:
# couponNormalType is the Id of the normal coupons, which are money or
percent
# couponRelatedType is the Id of coupons that have an related article
# couponBuyType is meant as Id if you have coupons that can be bought by
customer, not in use here at the moment
A little below:
couponNormalType = 4
couponRelatedType = 5
couponBuyType = 6
From typo3 backend => Commerce = Category I clicked in the tree at
Category => SYSTEM => COUPONS => syscoupons_use.
At the bottom (second last field) article_type_uid has the value
[ INVALID VALUE ("6") ]
So it seems that the relations are like this:
(TypoScript-variable = Article_type_uid = Article title)
couponNormalType = 4 = syscoupons
couponRelatedType = 5 = syscoupons_special
couponBuyType = 6 = syscoupons_use
Baed on this I changed the article to "syscoupons" in my test coupon,
and now it seems to work - no ever increasing discount any more ;-)
As a side note: Should commerce_coupons create the 3 article types (4, 5
and 6) that it expects, or should this step just be added to the
documentation?
/Thing
More information about the TYPO3-project-commerce
mailing list