pollywatt Posted October 14, 2013 Share Posted October 14, 2013 Please please could someone help me. I am a novice, but am on a steep learning curve. At the opening of my site I ran a prize draw, with money off vouchers as some of the prizes. Three of us have tried to create vouchers, we have all followed the written tutorial but nothing. No voucher appears in the customers account, and no place to add a voucher code at check out. Could someone please point me in the direction of more tutorials specific to 1.5.2 or just tell me what to do. A video tutorial would be dreamy, but at this point I really need to get this sorted. The prizes were drawn a couple of weeks ago, but I can't tell clients as they can't use the blooming prizes! Many many thanks Polly Link to comment Share on other sites More sharing options...
vekia Posted October 14, 2013 Share Posted October 14, 2013 you can check this: open database, open table: ps_configuration make sure that variable: PS_CART_RULE_FEATURE_ACTIVE has got value 1 Link to comment Share on other sites More sharing options...
pollywatt Posted October 16, 2013 Author Share Posted October 16, 2013 Thanks Vekia, but sadly that was already the case. Learnt how to find the information though so that was neat. Any other thoughts? Link to comment Share on other sites More sharing options...
pollywatt Posted October 20, 2013 Author Share Posted October 20, 2013 In cart rules I do not have the highlight option - do you think this might be the problem? Any thoughts welcome. Thanks Link to comment Share on other sites More sharing options...
vekia Posted October 20, 2013 Share Posted October 20, 2013 nope, highlight option allows to show voucher code in cart, not in customers account Link to comment Share on other sites More sharing options...
pollywatt Posted October 20, 2013 Author Share Posted October 20, 2013 That would be an improvement on where I am now - nothing shows in the cart either, so even if I could manually send the code, the customer couldn't use them. Link to comment Share on other sites More sharing options...
vekia Posted October 20, 2013 Share Posted October 20, 2013 you use default theme? Link to comment Share on other sites More sharing options...
pollywatt Posted October 20, 2013 Author Share Posted October 20, 2013 Yes. The site is www.gourmandenormande.com - hope I'm not breaking forum rules by posting that. Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 Yes. The site is www.gourmandenormande.com - hope I'm not breaking forum rules by posting that. no worries, everything is fine. url is helpful in this case i inspected your website and you've got right, there is no voucher field in shopping cart. can you check please shopping-cart.tpl file located in your theme directory. can you add somewhere manually: <form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher"> <fieldset> <p class="title_block"><label for="discount_name">{l s='Vouchers'}</label></p> <p class="discount_name_block"> <input type="text" class="discount_name" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> </p> <p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="{l s='OK'}" class="button" /></p> </fieldset> </form> the best place: right before this code: {if $voucherAllowed} 1 Link to comment Share on other sites More sharing options...
pollywatt Posted October 21, 2013 Author Share Posted October 21, 2013 Thank you - that is a fab step in the right direct but ... still not working completely yet - we now do have a voucher box, which is very exciting though - but none of the vouchers that I have previously generated work. Also when I have created a return and given a customer a credit, the credit has no code on it that the customer can use. At the moment I think we are just going to have give refunds, but I'd love to get the vouchers working - we ran a competition over a month ago and I cannot give the results out as I still cant but the credits on the account. Link to comment Share on other sites More sharing options...
vekia Posted October 21, 2013 Share Posted October 21, 2013 as far as i remember prestashop 1.5.2 has got serious bug related to vouchers / cart rules. If i were you I will try to upgrate it to latest working version. if you don;t want to upgrade, i will try to overwrite CartRules class with latest one. (remember about backup of this file!) Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 27, 2014 Share Posted January 27, 2014 I am having the same issue in 1.5.6.2. How did you solve it? Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 open my-account.tpl file (located in your theme directory) there is a code: {if $voucherAllowed} <li><a href="{$link->getPageLink('discount', true)|escape:'html'}" title="{l s='Vouchers'}"><img src="{$img_dir}icon/voucher.gif" alt="{l s='Vouchers'}" class="icon" /> {l s='My vouchers'}</a></li> {/if} try to use this: <li><a href="{$link->getPageLink('discount', true)|escape:'html'}" title="{l s='Vouchers'}"><img src="{$img_dir}icon/voucher.gif" alt="{l s='Vouchers'}" class="icon" /> {l s='My vouchers'}</a></li> Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 27, 2014 Share Posted January 27, 2014 That wasn't the problem, the link on my-account was showing fine but when you clicked on it it said "you have no vouchers" but I did have some active and working on the shopping cart. I noticed the coupons only show up there when you specify the user groups for the cart rule (you can just select all) under "Customer group selection". If you don't specify customer groups the voucher works for all customers on the shopping cart, but it does not show under My account > My vouchers section 1 Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2014 Share Posted January 28, 2014 ok, now it's clear, you used correct user email as voucher owner email? Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 28, 2014 Share Posted January 28, 2014 I created a cart rule without specifying customer groups for it and it worked fine on the shopping cart (voucher box) for customers in any group (I did not specify email for voucher), but it did not show up under My Account > My vouchers. Then I modified the cart rule selecting all user groups (guest, visitor, customers) under "customer group selection" and now the voucher shows up under My Account and it works for all customers (like before). I don't really understand why I need to specify the user groups so it would show under the customer's accounts... maybe its a bug. Link to comment Share on other sites More sharing options...
Recommended Posts