30knees Posted December 4, 2017 Posted December 4, 2017 I found out today that when a customer visits "Home> My account>My vouchers", the customer can see ALL cart rules ever created that match the customer group. This does not seem right to me because it prevents any selective distribution of vouchers. For example, if I want a voucher to be valid for all customer groups, but I want to distribute it only to people on Facebook, this feature/bug prevents that. Not only will the intended recipients on Facebook see the voucher when I post it there on my Facebook page, any customer who visits their account and clicks on "My vouchers" will see it, regardless of whether they use Facebook or not. Is this a bug or a feature? If it is a feature, is there any way to prevent all vouchers from being shown in this way?
SLiCK_303 Posted December 23, 2017 Posted December 23, 2017 I would set Highlight in the voucher to NO, and then distribute on Facebook the Voucher code, they will then have to copy and paste, or write it down to use it later on your site. It won't show on your site for anyone, but will be active when they type it in....
30knees Posted December 23, 2017 Author Posted December 23, 2017 Aha! That's what highlight means. Thank you :)
30knees Posted December 23, 2017 Author Posted December 23, 2017 Actually, I do have Highlight to NO. The voucher is not shown in the cart, but it is in “Home> My account>My vouchers”. The customer can see ALL cart rules ever created that match the customer group there.
SLiCK_303 Posted December 23, 2017 Posted December 23, 2017 my site isnt doing that behavior, hmmm....
SLiCK_303 Posted December 23, 2017 Posted December 23, 2017 Ok I got it to do that. If I don't have Customer group selection then it doesn't show it . You're trying to set it up so only certain groups can use it eh?
SLiCK_303 Posted December 23, 2017 Posted December 23, 2017 @30knees said in Cart rules - vouchers seen by all customers - is this a feature or a bug?: Actually, I do have Highlight to NO. The voucher is not shown in the cart, but it is in “Home> My account>My vouchers”. The customer can see ALL cart rules ever created that match the customer group there. That seems like a bug to me, not a feature. If Highlight is not selected, it shouldn't show it.
30knees Posted December 23, 2017 Author Posted December 23, 2017 @slick_303 said in Cart rules - vouchers seen by all customers - is this a feature or a bug?: That seems like a bug to me, not a feature. If Highlight is not selected, it shouldn't show it. Thanks for confirming! I'll post in the bug reports.
SLiCK_303 Posted December 24, 2017 Posted December 24, 2017 I figured out a solution, it's ok not great, but it works. Open your themes discount.tpl file. find.. <tbody> {foreach from=$cart_rules item=discountDetail name=myLoop} Directly AFTER, on a new line add.. {if $discountDetail.highlight == 1} Now find.. {/foreach} </tbody> BEFORE on a new line add.. {/if} Now on your voucher turn off highlight. Now it will not show the voucher in the cart, or in the My Vouchers page.
SLiCK_303 Posted December 24, 2017 Posted December 24, 2017 Now if you did my changes, undo them, and run with @mdekker s fix, https://forum.thirtybees.com/topic/1251/cart-rules-vouchers-seen-by-all-customers/5
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now