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

What coding displays the shipping charges for a product.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-03-2005, 09:25 AM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default What coding displays the shipping charges for a product.

Hi all,
I am trying to add a area to my tabbed menu that is titled shipping info. Inside this box it will say, " The total shipping charges for this item is "X". What coding in which file can I input into this area where the "X" is so that it diplays the shipping costs for that item. I'm using the flate rate shipping method of $6.99. However, some of my larger items have an additional amount added on to the flat rate. Therefore, for some products I would like it to also display any additional costs of shipping. Anyone know how I can get this working? Thanks a lot!
__________________
xcart v3.5.8 (Unix)
and
xcart v4.0.13
Reply With Quote
  #2  
Old 07-03-2005, 03:16 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Not sure if this will work outside of cart.php, but this is the bit of code that controls the shipping cost display in cart_totals.tpl:

Code:
<TR> <TD nowrap><FONT class="FormButton">{$lng.lbl_shipping}{if $cart.coupon_discount ne 0 and $cart.coupon_type eq "free_ship"} ({$lng.lbl_discounted} [img]{$ImagesDir}/clear.gif[/img]){/if} :</FONT></TD> <TD>[img]{$ImagesDir}/null.gif[/img] </TD> <TD nowrap align="right"><FONT class="ProductPriceSmall">{if $login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0}{include file="currency.tpl" value=$shipping_cost}</FONT></TD> <TD nowrap align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$shipping_cost}{else}n/a{assign var="not_logged_message" value="1"}</FONT></TD><TD>{/if}</TD> </TR> {/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-03-2005, 04:08 PM
 
Ryano Ryano is offline
 

Senior Member
  
Join Date: Jun 2004
Posts: 192
 

Default

Hey Balinor!
Thanks I tried that code but it only shoes the shipping as $0.00. I guess it has to do with not working outside of the cart.php as you mentioned. Is there a way for me to possibly get it to work by adding some type of coding somewhere else? Right now I basically pasted that code into the product.tpl where the tabbed menus are.
__________________
xcart v3.5.8 (Unix)
and
xcart v4.0.13
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 09:47 AM.

   

 
X-Cart forums © 2001-2020