Jump to content

1.5.2 Vouchers not appearing in customers account


Recommended Posts

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

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}

  • Like 1
Link to comment
Share on other sites

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

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

  • 3 months later...

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

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

  • Like 1
Link to comment
Share on other sites

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

×
×
  • Create New...