X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   What coding displays the shipping charges for a product. (https://forum.x-cart.com/showthread.php?t=14956)

Ryano 07-03-2005 09:25 AM

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!

balinor 07-03-2005 03:16 PM

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}


Ryano 07-03-2005 04:08 PM

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.


All times are GMT -8. The time now is 09:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.