Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Changing the location of the Discount coupon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-02-2003, 09:31 PM
 
StylinFX StylinFX is offline
 

Advanced Member
  
Join Date: Oct 2002
Location: US
Posts: 36
 

Default Changing the location of the Discount coupon

I would like to change the location of the discount coupon. I'm want to move it up into the cart section. Currently it's placed below the cart and I think it kind of hard to see. I'm just wanting to move it directly under the cart total. I've tried to just cut and past the include tag but this removes my entire cart. below is the cart.tpl file this my not even be the file I need to edit if someone has done this of knows how it can be done please help me.

Thanks for your time.

Code:
{* $Id: cart.tpl,v 1.53.2.1 2003/05/20 13:32:38 svowl Exp $ *} {include file="location.tpl" last_location=$lng.lbl_your_shopping_cart} <h3>{$lng.lbl_your_shopping_cart}</h3> {$lng.txt_cart_header} {if $active_modules.Gift_Certificates ne ""} {$lng.txt_cart_note} {/if} {capture name=dialog} {if $products ne ""} <form action="cart.php" method=post name=cartform> <table border=0 width=100%> {section name=product loop=$products} <tr><td width=50 valign=top> {include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$products[product].image_x image_y=$products[product].image_y product=$products[product].product tmbn_url=$products[product].tmbn_url} </td> <td valign=top> <font class=ProductTitle>{$products[product].product}</font> {$products[product].descr|truncate:150:"...":true} {if $products[product].product_options ne ""} {$lng.lbl_selected_options}: {$products[product].product_options|replace:"\n":" \n"} {/if} <div align=left> {if $active_modules.Subscriptions ne "" and $products[product].catalogprice} {include file="modules/Subscriptions/subscription_priceincart.tpl"} {else} <font class=ProductPriceConverting>{include file="currency.tpl" value=$products[product].price} x {if $products[product].distribution}1<input type=hidden{else}><input type=text size=3{/if} name="productindexes[{$smarty.section.product.index}]" value="{$products[product].amount}"> = </font><font class=ProductPrice>{math equation="price*amount" price=$products[product].price amount=$products[product].amount format="%.2f" assign=unformatted}{include file="currency.tpl" value=$unformatted}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$unformatted}</font>{if $config.Taxes.use_vat eq "Y" and $products[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} {/if} {include file="buttons/delete_item.tpl"} </div> </td></tr> <tr><td colspan=2><hr size=1 noshade></td></tr> {/section} </table> {if $active_modules.Gift_Certificates ne ""} {include file="modules/Gift_Certificates/gc_cart.tpl"} {/if} {include file="customer/main/cart_totals.tpl"} {if $js_enabled} {include file="buttons/checkout.tpl"} {include file="buttons/update.tpl"} {else} <input type=hidden name="mode" value="checkout"> {include file="submit_wo_js.tpl" value=$lng.lbl_checkout} {/if} </form> {else} {$lng.txt_your_shopping_cart_is_empty} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_items content=$smarty.capture.dialog extra="width=100%"} {if $cart.coupon_discount eq 0 and $products ne ""} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}
Reply With Quote
  #2  
Old 06-03-2003, 02:55 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

move this bit of code to where you want it to go

Code:
{if $cart.coupon_discount eq 0 and $products ne ""} {if $active_modules.Discount_Coupons ne ""} {include file="modules/Discount_Coupons/add_coupon.tpl} {/if} {/if}
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 06-04-2003, 05:41 AM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default

I tried moving it to the payment page (where they can choose credit card, telephone or fax payment) but it when tested the page comes up with an error
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:37 AM.

   

 
X-Cart forums © 2001-2020