[quote=“emre, post:1, topic:860, full:true”]
Hello. In this tutorial I’ll show you how to create points based promotions.
Upgrade to at least 4.1.27 version before starting this tutorial.
If you have [Database Tools Module] you can simply use this import file for easily importing this configuration to your database. Points_Promotion.zip (1.6 KB) Please test it first on a safe environment before merging it to your production database.
For the simplicity of this tutorial I’ve skipped Rule Mapping steps. After creating each rule, create a default mapping by adding a mapping line and leaving it unchanged.
So I have been testing this and have a few failures? Going to need some help from the Expert(s).
Before I upload every screen and may just do that at the end of this post I will sure you what is happening.
Points are being accrued nicely if:
Sell an item with rewards attached and go DIRECTLY to management -> batch editor and check. All good points stay nicely. This works as it should
Points disappear if:
Sell an item with rewards attached and the RESELECT the Customer to Check Points from the Ticker header?
Here are the screens.
Have just sold an item and gone to Select the Customer using a Button Caption -
After I click this button and return to the Ticket Screen I do not get the Points (2) from the last sale -
Umm the only difference is the tag used for Reward? But since it works if I do not bring Customer immediately up sounds an alarm bell? I hate doing it but can look take a peek at my database as it the only other interference can be VIP and Happy hour stuff?
You cannot see it because you probably implemented it without understanding what each rule or action you’ve added exactly does. Do you understand how points order state works in this setup? Without understanding that how many times I fix your database you’ll fall into same situation. Please keep in mind you’re trying to implement multiple advanced customizations and make them work together. It is really really hard without knowing exactly how automation works.
Using “Show Message” action is a great way to understand how values passes between rules and at what order they works. Ask us all single point you don’t understand.
I think I do understand the rules - well you will probably prove me wrong. I am doing this because:
I have shown you the rule debugger because I have followed each step. So I need help to see if I have made a typo or I have found an issue. I have also uploaded each rule & action in the next post.
The only thing I can be guilty of is not understanding how Qmackay VIP & HH system interferes with this? I will confess Q’s system which is tested intensely, manually entered by me, works great?
umm sorry about the end to the video will need to work that out
I will add some “elevator music” in the mean time…
Looking at the rule debugger after I settle ticket and then immediately “Select Customer” and CHOOSE THE SAME customer I see the actions - ZAVPUpdate Ticket State fires twice, I think this was desired from Q’s tutorial?
But the thing is the Custom Data retrieved by the Rule shows the old point value?! Does not show the increased value.
Ok not fair now I repeat the process BUT after settlement go to Batch Editor (I guess just get out of POS), move back into POS, bring the same customer up and Custom Data retrieved by the Rule shows the new point value?
Yep over to somebody you knows.
OH, oh I should mention if you bring the the funky ticket up using ticket explorer - the ticket that did not assign the point - the ticket header actually shows the Customer with the point gained? But if you exit and use POS to bring that customer up, no point was gained. Go figure that one…
Yep, that is what I was thinking as have read about this "caching thingamajig". I did not like the sound of that and was hopefully trying to avoid it. Where can I read more on when to issue a “reload Entity”? In fact how do you reload a Entity?
PS - lots here would back your SWAG in the betting toke!
Ah funny I have this big eye staring back at me from a 27" monitor! Do yo think you will loose your Panache if you change from the Eyeball? Anyway I digress -
Last question - what do you suggest I change Entity to? Blank, Same, First? Also is it best to do it at the end of this process as I am looking at the rule debugger and there is a few VIP States that are triggered on Entity Changed as well (i.e. Select a Customer).
I will also Search to see what others have done as well thanks Q.
Well, I gotta say @emre that is what I thought from the outset and should of not spent the hours looking through “haystacks”. As yes I am still coming to grips with Samba so made an error of judgement Unfortunately years of coding big convoluted systems and still doing so I can tell whats my screw up.
So now we are at the end of this maybe, can you suggest how to modify the Rules or Actions to solve this? As I have not used what Q suggested before it would be helpful if I was shown once please.
I would suggest this also would occur from the Standard Search Screen as well. I sort of recall the only way to solve it was to exit POS and go to management FYI.
OK I’ll remove caches. Button screens was primarily designed for table selection but I shouldn’t predict how entity screens will be used anymore. In fact I shouldn’t allow that use but I did. That is my fault. Hmm… Maybe I can find a different idea.
@emre would be happier if you just tell me how to fix the Points updating issue? - So shall I use Display Ticket ID = 0 as Q suggested? At which point shall I insert this (this is another pun!) - Ticket Closing? Update Ticket Status? I rather not use a default rule as it may get called too often.
I can confirm the “Use Points” Automation also suffers the same faith as all of the above
Just surprised this has not surfaced before…
Anyway 12.06am had enough for today