bojidark Posted October 17, 2013 Share Posted October 17, 2013 I'm trying to get rid of the Voucher Box on the checkout page/ order. Since I don't use coupon codes and looks like my customers are getting confused what to enter there. Anyone know what I have to edit ? Link to comment Share on other sites More sharing options...
vekia Posted October 17, 2013 Share Posted October 17, 2013 hello you use default theme? if so, you can remove this code: <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> from shopping-cart.tpl file located in your theme directory 3 Link to comment Share on other sites More sharing options...
bojidark Posted October 17, 2013 Author Share Posted October 17, 2013 hello you use default theme? if so, you can remove this code: <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> from shopping-cart.tpl file located in your theme directory Thanks worked like a charm. Much appreciated. Link to comment Share on other sites More sharing options...
bojidark Posted October 17, 2013 Author Share Posted October 17, 2013 I tested it with one order and it appears again on the last step (5th) I thinks it's payment step. URL is : /order?multi-shipping= Any ideas ? Link to comment Share on other sites More sharing options...
vekia Posted October 17, 2013 Share Posted October 17, 2013 you use some non default solutions? what order type you use? one-step checkout? 5 step checkout? Link to comment Share on other sites More sharing options...
bojidark Posted October 17, 2013 Author Share Posted October 17, 2013 I'm using default theme with 5 steps checkout. Here's a screenshot: Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 ok thank you for informations please chceck settings under: adv. parameters > performance tab there is something like: force compilation [on] / [off] cache [on] / [off] please turn on force compilation please turn off cache then refresh your cart page Link to comment Share on other sites More sharing options...
robbie007 Posted January 9, 2014 Share Posted January 9, 2014 Why not using CSS? use: table#cart_summary .cart_total_price td.cart_voucher {visibility:hidden} Job done! Link to comment Share on other sites More sharing options...
jetx Posted July 14, 2014 Share Posted July 14, 2014 Just had a customer complain about the voucher box at checkout and that because she doesn't have a voucher code she will go elsewhere to shop and that I really should consider removing it. Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2014 Share Posted July 14, 2014 give her €0.01 discount ;-) so, what theme you use ? 1 Link to comment Share on other sites More sharing options...
jetx Posted July 16, 2014 Share Posted July 16, 2014 Using default-bootstrap currently. Link to comment Share on other sites More sharing options...
vekia Posted July 16, 2014 Share Posted July 16, 2014 okay so at the moment you can do it in two ways - remove all voucher codes from cart rules section (field should disappear automatically) - modify shopping-cart.tpl file there is a code like <fieldset> <h4>{l s='Vouchers'}</h4> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button> </fieldset> just remove it Link to comment Share on other sites More sharing options...
jetx Posted July 21, 2014 Share Posted July 21, 2014 (edited) Thanks for that velia. As this customer is the first and only person to have thought this an issue I have decided to leave it alone for now. Although it would be useful to be able to disable from BO, without removing code (due to updates overwriting all these edits.. I try to avoid if possible). Edited July 21, 2014 by jetx (see edit history) Link to comment Share on other sites More sharing options...
jetx Posted October 3, 2014 Share Posted October 3, 2014 Well I finally figured out what some people (several a month now) were complaining about. On the checkout page the voucher box has a button "OK". So customers were completing the checkout and then hitting the ok button expecting to place an order. So removed it completely. Link to comment Share on other sites More sharing options...
Sigis Posted December 9, 2014 Share Posted December 9, 2014 Hi jetx, How did you remove the "OK" button? Link to comment Share on other sites More sharing options...
trevorgilligan Posted May 11, 2016 Share Posted May 11, 2016 again, thank you @vekia Link to comment Share on other sites More sharing options...
catzarov Posted December 15, 2016 Share Posted December 15, 2016 Hello All, i use 1.6.1.10 I want to add a message in the voucher field area: <br><p>{l s='Info! Our VOUCHER CODES are never compatible with products with reduced price!'}</p> but when I add the code, it is not seen by the customers! What am I doing wrong? <form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher"> <fieldset> <h4>{l s='Vouchers'}</h4><br><p>{l s='Info! Our VOUCHER CODES are never compatible with products with reduced price!'}</p> <input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> <input type="hidden" name="submitDiscount" /> <button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"> <span>{l s='OK'}</span> </button> </fieldset> </form> Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2016 Share Posted December 16, 2016 There might be two instances of that. Or, you did not clear cache in the back office and it's set to never recompile Link to comment Share on other sites More sharing options...
Recommended Posts