Jump to content

Removing the Voucher box


Recommended Posts

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

  • Like 3
Link to comment
Share on other sites

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

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

  • 2 months later...
  • 6 months later...

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

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 by jetx (see edit history)
Link to comment
Share on other sites

  • 2 months later...

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

  • 2 months later...
  • 1 year later...
  • 7 months later...

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

×
×
  • Create New...