So set your Product Tags back to using COMMA, and maybe try this weirdness…
[=-1*(TN('{ITEM TAG:HH}'.replace(',','.')))]
or for VIP:
[=-1*(TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'.replace(',','.')))]
So set your Product Tags back to using COMMA, and maybe try this weirdness…
[=-1*(TN('{ITEM TAG:HH}'.replace(',','.')))]
or for VIP:
[=-1*(TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'.replace(',','.')))]
everything working fine … thank you guys for once more , you are life savers !!!
So, what was your solution?
what you suggest …
So set your Product Tags back to using COMMA, and maybe try this weirdness...
[=-1*(TN('{ITEM TAG:HH}'.replace(',','.')))]
or for VIP:
[=-1*(TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'.replace(',','.')))]
Something i figure out is that If i change my pc’s regional setting back to Greek diskount and hh are not working …
So system date/time format have effect on the HH setup …
In order to close th HH i must log out and log in again ?
No it works fine without having to log out. There is no open or close it simply checks the date and time and constrains it based on that.
Hi @Jesse thank you for the reply, in situation if I don’t logoff and logon the HH is not working automatically …
I remind you I didn’t wrote the rules and the actions I just import them so there are no mistakes.
Yes, that should work.
No, that is not required, unless you have changed the start/end day/time.
Kendash is correct. It does not “turn on” and “turn off”. It simply compares the Order Date/Time with the Program Settings for HHStart/End.
This would only apply if you changed start or end time. Then you need to Logoff/Logon so that your changes to the Program settings get stored.
After i change some setting to PC’s Regions and Date format everything seems to work fine …
As for the VIP discount percentage these settings don’t seems to work, any idea ???
You are missing some brackets in your expressions.
This works…
[=-1*(TN('{PRICE}')*TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'))/100]
So this should work for you:
[=-1*(TN('{PRICE}')*TN('{ITEM TAG:D{ENTITY DATA:Customer:VIP Level}}'.replace(',','.')))/100]
… and …
[=-1*(TN('{PRICE}')*TN('{ITEM TAG:HH}'.replace(',','.')))/100]
P.S. if you copy and paste your code surrounded by 3 backticks in the forum, it will do syntax highlighting, which can sometimes help to reveal errors, like this…
``` [=-1*(TN('{PRICE}')*TN('{ITEM TAG:HH}'.replace(',','.')))/100] ```
Your code:
[=-1*TN('{PRICE}')*(TN'{ITEM TAG:HH}'.replace(',','.')/100]
Corrected code:
[=-1*(TN('{PRICE}')*TN('{ITEM TAG:HH}'.replace(',','.')))/100]
It also help for others to read and copy/paste to try themselves - much better than trying to replicate a screenshot.
Thank you QMcKay everything is working like a charm …
P.S. Sorry for the copy paste i’ll rember it next time, you were right