Jump to content

Move Coupon Code


Recommended Posts

You will need to test this first. I moved it awhile back but then moved it back because of a design change. If I remember right you only need to move the following code from shopping-cart.tpl to the tpl file of the page where you want it:

{if $voucherAllowed}

   {if $errors_discount}

       {foreach from=$errors_discount key=k item=error}
{$error|escape:'htmlall':'UTF-8'}
       {/foreach}

   {/if}
   <form action="{$base_dir_ssl}order.php" method="post" id="voucher">

Please enter all coupon codes here.


{l s='Code:'}
               <input type="text" id="discount_name" name="discount_name" value="{if $discount_name}{$discount_name}{/if}" />


<input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="{l s='Add'}" class="button" />

   </form>




The code can be found around line 215

Link to comment
Share on other sites

  • 4 weeks later...

Check out this post # 7 reply ( I figured it out all by myself! )

http://www.prestashop.com/forums/viewthread/80981/#389704

If your customer clicks the checkout button, it bypasses the summary page and takes them straight to login, and there is nowhere, after they login to add vouchers etc...
My code fix makes the checkout button start at summary, just as the cart button does .

Hope this helps!

Link to comment
Share on other sites

×
×
  • Create New...