X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Advanced Cart Mod (https://forum.x-cart.com/showthread.php?t=30809)

vtonya 04-29-2007 12:36 PM

Advanced Cart Mod
 
1 Attachment(s)
:D/ To get the product names to link to the products just replace the body of minicart.tpl with the following code:
Quote:

{* $Id: minicart.tpl,v 1.12 2004/07/06 14:00:12 svowl Exp $ *}
<TABLE border="0" cellpadding="1" cellspacing="0">
<TR>
<TD rowspan="2" width="23">
{if $minicart_total_items > 0}<img border="0" src="{$ImagesDir}/cart_full.gif" width="19" height="16">
{else}<img border="0" src="{$ImagesDir}/cart_empty.gif" width="19" height="16">{/if}
</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD>
<TD class="VertMenuItems" color="#0000ff">{$minicart_total_items}{else}<CENT ER>{$lng.lbl_cart_is_empty}</CENTER>{/if}</TD>
</TR>
</TABLE>
{if $minicart_total_items > 0}
<table width="200" border="0" cellpadding="2">
<tr>
<td align="center" width="65%" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Item</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Qty</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Price</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Delete</b></td>
</tr>
<tr>
{foreach from=$minicart_contents item=item}
<td align="left" class="MiniCartTextTiny"><b><a href="product.php?productid={ $item.productid }" title="{$item.product}">{$item.product|truncate:47 :"...":true}</a>
</b></td>

<td align="center">{$item.amount}</td>


<td align="center">{$item.display_subtotal}</td>

<td align="center">
{if $config.Adaptives.platform eq 'MacPPC' && $config.Adaptives.browser eq 'NN'}
{assign var="js_to_href" value="Y"}
{/if}
{if $type eq 'input'}
{assign var="img_type" value='input type="image" class="blank"'}
{else}
{assign var="img_type" value='IMG'}
{/if}
{assign var="js_link" value=$href|regex_replace:"/^\s*javascript\s*:/Si":""}
{if $js_link eq $href}
{assign var="js_link" value="javascript: self.location='cart.php?mode=delete&productindex=` $item.cartid`'"}
{else}
{assign var="js_link" value=$href}
{if $js_to_href ne 'Y'}
{assign var="onclick" value=$href}
{assign var="href" value="javascript: void(0);"}
{/if}
{/if}
{if ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}<a href="{$js_link}"><img src="/skin1/images/delete.gif" width="22" height="30" alt="Remove product" /></a>
{else}
<A href="cart.php?mode=delete&productindex=`$item.car tid`"{if $onclick ne ''} onclick="{$onclick}"{/if}{if $title ne ''} title="{$title}"{/if}{if $target ne ''} target="{$target}"{/if}><FONT class="FormButton">{$button_title} </FONT></A>
{/if}</td></tr>{/foreach}
</table>
{/if}
<HR size="1" NOSHADE class="VertMenuHr">
{if $minicart_total_items > 0}
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><a title="{$minicart_delivery}">Shipping Cost:</a></td><td align="right" class="MiniCartTextSmall">
<a title="{$minicart_delivery}">{include file="currency.tpl" value=$minicart_shipping}</a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><strong>{$lng.lbl_total} </strong>: </td>
<td align="right" class="MiniCartTextSmall"><strong>{include file="currency.tpl" value=$minicart_total_cost}</strong></td>
</tr>
</table>
{else}{/if}
<br>



Make sure you add these lines to minicart.php (thanks Shan!):

Code:

Quote:

$smarty->assign("minicart_contents", $cart["products"]); //added this line
$smarty->assign("minicart_shipping", $cart["shipping_cost"]); //added this line
$smarty->assign("minicart_delivery", $cart["delivery"]); //added this line
$smarty->assign("minicart_delete", $cart["delete"]); //added this line
?>


Make sure you add the class to your .css


Code:

Quote:

.MiniCartTextSmall {
FONT-SIZE: 10px;font-weight:bold
}

I've also added a DELETE button :wink:
All product are linkable!

So, with this mod my shopping cart looks like this:
Attachment 349

vtonya 04-29-2007 12:42 PM

Advanced Cart Mod with thumbs
 
1 Attachment(s)
To see products thumbs in cart replace the body of minicart.tpl :
Quote:

{* $Id: minicart.tpl,v 1.12 2004/07/06 14:00:12 svowl Exp $ *}
<TABLE border="0" cellpadding="1" cellspacing="0">
<TR>
<TD rowspan="2" width="23">
{if $minicart_total_items > 0}<img border="0" src="{$ImagesDir}/cart_full.gif" width="19" height="16">
{else}<img border="0" src="{$ImagesDir}/cart_empty.gif" width="19" height="16">{/if}
</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD>
<TD class="VertMenuItems" color="#0000ff">{$minicart_total_items}{else}<CENT ER>{$lng.lbl_cart_is_empty}</CENTER>{/if}</TD>
</TR>
</TABLE>
{if $minicart_total_items > 0}
<table width="200" border="0" cellpadding="2">
<tr>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Pic</b></td>
<td align="center" width="65%" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Item</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Qty</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Price</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Delete</b></td>
</tr>
<tr>
{foreach from=$minicart_contents item=item}
<td align="center">{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}
</td>
<td align="left" class="MiniCartTextTiny"><b><a href="product.php?productid={ $item.productid }" title="{$item.product}">{$item.product|truncate:47 :"...":true}</a>
</b></td>

<td align="center">{$item.amount}
</td>


<td align="center">{$item.display_subtotal}</td>

<td align="center">
{if $config.Adaptives.platform eq 'MacPPC' && $config.Adaptives.browser eq 'NN'}
{assign var="js_to_href" value="Y"}
{/if}
{if $type eq 'input'}
{assign var="img_type" value='input type="image" class="blank"'}
{else}
{assign var="img_type" value='IMG'}
{/if}
{assign var="js_link" value=$href|regex_replace:"/^\s*javascript\s*:/Si":""}
{if $js_link eq $href}
{assign var="js_link" value="javascript: self.location='cart.php?mode=delete&productindex=` $item.cartid`'"}
{else}
{assign var="js_link" value=$href}
{if $js_to_href ne 'Y'}
{assign var="onclick" value=$href}
{assign var="href" value="javascript: void(0);"}
{/if}
{/if}
{if ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}<a href="{$js_link}"><img src="/skin1/images/delete.gif" width="22" height="30" alt="Remove product" /></a>
{else}
<A href="cart.php?mode=delete&productindex=`$item.car tid`"{if $onclick ne ''} onclick="{$onclick}"{/if}{if $title ne ''} title="{$title}"{/if}{if $target ne ''} target="{$target}"{/if}><FONT class="FormButton">{$button_title} </FONT></A>
{/if}</td></tr>{/foreach}
</table>
{/if}
<HR size="1" NOSHADE class="VertMenuHr">
{if $minicart_total_items > 0}
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><a title="{$minicart_delivery}">Shipping Cost:</a></td><td align="right" class="MiniCartTextSmall">
<a title="{$minicart_delivery}">{include file="currency.tpl" value=$minicart_shipping}</a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><strong>{$lng.lbl_total} </strong>: </td>
<td align="right" class="MiniCartTextSmall"><strong>{include file="currency.tpl" value=$minicart_total_cost}</strong></td>
</tr>
</table>
{else}{/if}
<br>



But, there is a problem: it says that products dont have any thumbs, who knows how to fix it???

See the attached image:
Attachment 350

I run XCART 4.1.7

NightFire 04-29-2007 01:09 PM

Re: Advanced Cart Mod
 
Thanks. Looks like a great mod. I will test it soon.
Much appreciated for your contribution.

For the thumbnail issue. Haven't tested it yet, but try this:

Replace:
Code:

{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}

with this one:

Code:

{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=150 product=$products[product].product tmbn_url=$products[product].tmbn_url}

vtonya 04-29-2007 01:47 PM

Re: Advanced Cart Mod
 
Thanks, but doesn't work ((

inebriate 04-29-2007 02:13 PM

Re: Advanced Cart Mod
 
you need to watch what variable you are assigning...

replace:
Code:

{include file="product_thumbnail.tpl" productid=$minicart_contents image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}

with:
Code:

{include file="product_thumbnail.tpl" productid=$item.productid image_x=$100 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}

inebriate 04-29-2007 02:15 PM

Re: Advanced Cart Mod
 
you need to watch what variable you are assigning...

replace:
Code:

{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}

with:
Code:

{if $item.is_pimage eq 'W' }{assign var="imageid" value=$item.variantid}{else}{assign var="imageid" value=$item.productid}{/if}
{include file="product_thumbnail.tpl" productid=$imageid image_x=100 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}


vtonya 04-29-2007 02:39 PM

Re: Advanced Cart Mod
 
WOW!!!
THAT CODE REALY WORKS!!!! THANK YOU SO MUCH!!!
:D/


Quote:

{include file="product_thumbnail.tpl" productid=$item.productid image_x=$100 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}


vtonya 04-29-2007 02:45 PM

Re: Advanced Cart Mod
 
The only trouble is that when i change image_x=$100 to image_x=$70, for example, it shows image in its real size 150 pixells

inebriate 04-29-2007 03:03 PM

Re: Advanced Cart Mod
 
sorry about that...remove the $ in the image_x portion

vtonya 04-29-2007 03:47 PM

Re: Advanced Cart Mod
 
inebriate, thank you SO MUCH!
Works GREAT!!!

ProMuscles 05-08-2007 03:03 AM

Re: Advanced Cart Mod
 
great mod but takes up too much space

hoosierglass 05-21-2007 06:49 AM

Re: Advanced Cart Mod
 
I have played around with this minicart and like it a little better, but I still have a problem with the total not showing the discounted total. Is there a way to get parts of /modules/Fast_Lane_Checkout/cart_subtotal.tpl to work in the minicart?

ProMuscles:
Here is a change so it would work width wise on my layout. This way only takes up the same width as the standard menu template. No more neat remove button but it does have a text remove option below each item.

Code:

{* $Id: cart_subtotal.tpl,v 1.5.2.1 2006/06/16 10:47:44 max Exp $ *}
<div align="right">
{assign var="subtotal" value=$cart.subtotal}
{assign var="discounted_subtotal" value=$cart.discounted_subtotal}

<table cellpadding="3" cellspacing="0" width="30%">

<tr>
<td nowrap="nowrap"><font class="FormButton" style="text-transform: uppercase;">{$lng.lbl_subtotal}:</font></td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right"><font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.display_subtotal}</font></td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.display_subtotal}</td>
</tr>

{if $cart.discount gt 0}
<tr>
<td nowrap="nowrap"><font class="FormButton">{$lng.lbl_discount}:</font></td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right"><font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.discount}</font></td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.discount}</td>
</tr>
{/if}

{if $cart.coupon_discount ne 0 and $cart.coupon_type ne "free_ship"}
<tr>
<td nowrap="nowrap"><font class="FormButton">{$lng.lbl_discount_coupon} <a href="cart.php?mode=unset_coupons" alt="{$lng.lbl_unset_coupon|escape}"><img src="{$ImagesDir}/clear.gif" width="11" height="11" border="0" valign="top" alt="{$lng.lbl_unset_coupon|escape}" /></a> :</font></td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right"><font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.coupon_discount}</font></td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.coupon_discount}</td>
</tr>
{/if}

{if $cart.discounted_subtotal ne $cart.subtotal}
<tr>
<td colspan="4" height="1"><img src="{$ImagesDir}/spacer_black.gif" width="100%" height="1" alt="" /><br /></td>
</tr>

<tr>
<td nowrap="nowrap"><font class="FormButton" style="text-transform: uppercase;">{$lng.lbl_discounted_subtotal}:</font></td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right"><font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.display_discounted_subtotal}</font></td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.display_discounted_subtotal}</td>
</tr>
{/if}

{if $cart.taxes and $config.Taxes.display_taxed_order_totals eq "Y"}

<tr>
<td colspan="4" align="right"><b>{$lng.lbl_including}:</b></td>
</tr>

{foreach key=tax_name item=tax from=$cart.taxes}
<tr class="TableSubHead">
<td nowrap="nowrap" align="right">{$tax.tax_display_name}:</td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right">{include file="currency.tpl" value=$tax.tax_cost_no_shipping}</td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$tax.tax_cost_no_shipping}</td>
</tr>
{/foreach}

{/if}

{if $cart.applied_giftcerts}
<tr>
<td nowrap="nowrap"><font class="FormButton">{$lng.lbl_giftcert_discount}:</font></td>
<td><img src="{$ImagesDir}/null.gif" width="5" height="1" alt="" /><br /></td>
<td nowrap="nowrap" align="right"><font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.giftcert_discount}</font></td>
<td nowrap="nowrap" align="right">{include file="customer/main/alter_currency_value.tpl" alter_currency_value=$cart.giftcert_discount}</font></td>
</tr>
{/if}

</table>

{if $cart.applied_giftcerts}
<br />
<br />
<font class="FormButton">{$lng.lbl_applied_giftcerts}:</font>
<br />
{section name=gc loop=$cart.applied_giftcerts}
{$cart.applied_giftcerts[gc].giftcert_id} <a href="cart.php?mode=unset_gc&gcid={$cart.applied_giftcerts[gc].giftcert_id}"><img src="{$ImagesDir}/clear.gif" width="11" height="11" border="0" valign="top" alt="{$lng.lbl_unset_gc|escape}" /></a> : <font class="ProductPriceSmall">{include file="currency.tpl" value=$cart.applied_giftcerts[gc].giftcert_cost}</font><br />
{/section}
{/if}

{if $not_logged_message eq "1"}{$lng.txt_order_total_msg}{/if}

</div>
<input type="hidden" name="action" value="update" />
<hr align="left" noshade="noshade" size="1" />
{if $active_modules.Special_Offers ne ""}
{include file="modules/Special_Offers/customer/cart_bonuses.tpl"}
{/if}


hoosierglass 05-21-2007 07:57 AM

Re: Advanced Cart Mod
 
Adding to the thought process here....

instead of this in minicart.tpl:
{include file="currency.tpl" value=$minicart_total_cost}

This value is assigned through the minicart.php file via
$smarty->assign("minicart_total_cost", $MINICART["total_cost"]);

What I am needing to display is:
{include file="currency.tpl" value=$cart.display_discounted_subtotal}

This is from /modules/Fast_Lane_Checkout/cart_subtotal.tpl
But I do not know what php file assigns the cart.display_discounted_subtotal or how to incorperate it into minicart.php

hoosierglass 05-21-2007 11:23 AM

Re: Advanced Cart Mod
 
I have no idea what I did but now it is not only figuring the total correct it is adding in the shipping. Too sweet.

Thanks for this mod vtonya

hoosierglass 05-21-2007 11:56 AM

Re: Advanced Cart Mod
 
I know I am full for questions.....

On this line:
<td align="center">{$item.display_subtotal}</td>
I swithced to <td align="center">{include file="currency.tpl"} {$item.display_subtotal}</td>

Which gives me the $ before the amount, which worked great. If the amount is $39.90 or $12.00 it will display as $39.9 or $12.

I tried:
<td align="center">{include file="currency.tpl" $item.display_subtotal}</td>

But that only killed the mount and left just the $ symbol. How would I go about getting the full amount to display?

inebriate 05-25-2007 08:24 PM

Re: Advanced Cart Mod
 
{include file="currency.tpl" value=$item.display_subtotal}

hoosierglass 05-25-2007 09:56 PM

Re: Advanced Cart Mod
 
I don't know whether to offer you another drink, or feel stupid because someone called inebriate found my errors! :-P

Thanks so you very much for catching this. With that fixed I am now down to only one, pain in the neck from beating my head against the wall, screwball thing.

pinklinoleum 05-28-2007 06:28 PM

Re: Advanced Cart Mod
 
does anyone know how to modify inebriate's thumbnail tag to show up in 4.0.18? i can't get the product images to show up!

Code:

{if $item.is_pimage eq 'W' }{assign var="imageid" value=$item.variantid}{else}{assign var="imageid" value=$item.productid}{/if}
{include file="product_thumbnail.tpl" productid=$imageid image_x=100 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}


thanks!

vtonya 06-13-2007 05:07 PM

Re: Advanced Cart Mod
 
Replace

Quote:

<td align="right" class="MiniCartTextSmall"><strong>{include file="currency.tpl" value=$item_total_cost}</strong></td>


with

Quote:


{* calculate grand total including shipping cost*}
{math assign="grandtotal" equation="minicarttotalcost+minicartshipping" minicarttotalcost=$minicart_total_cost minicartshipping=$minicart_shipping}
{* end of grand total calculation *}
<td align="right" class="MiniCartTextSmall"><strong>{include file="currency.tpl" value=$grandtotal}</strong></td>



and Total will be calculated wright:D/

JeffS 09-16-2007 12:34 PM

Re: Advanced Cart Mod
 
Great mod, but how do you get the width to be smaller? In the code I think it's saying '200' px wide, but when I change it to '100' nothing happens.

Anyone know how to do this?

a1deano 09-21-2007 09:46 AM

Re: Advanced Cart Mod
 
Wow i love this much more pleasing to the eye and the customer can tell at a glance what theyv'e already added to their cart, i made a few changes to suit my needs.
Made the picture quite small also got rid of the delete and title of the item so i could keep the box size in line with my other boxes.

If anyone is looking for a smaller look here's my finished code, hope i done every think right but it works great.

Also added a pic for you to see, Sorry my image isn't very sharp or clear but it shows whats been changed

Quote:

{* $Id: minicart.tpl,v 1.12 2004/07/06 14:00:12 svowl Exp $ *}
<TABLE border="0" cellpadding="1" cellspacing="0">
<TR>
<TD rowspan="0" width="23">
{if $minicart_total_items > 0}<img border="0" src="{$ImagesDir}/cart_full.gif" width="19" height="16">
{else}<img border="0" src="{$ImagesDir}/cart_empty.gif" width="19" height="16">{/if}
</TD>
<TD class="VertMenuItems">{if $minicart_total_items > 0}{$lng.lbl_items}: </TD>
<TD class="VertMenuItems" color="#0000ff">{$minicart_total_items}{else}<CENT ER>{$lng.lbl_cart_is_empty}</CENTER>{/if}</TD>
</TR>
</TABLE>
{if $minicart_total_items > 0}
<table align="center" width="100" border="0" cellpadding="2">
<tr>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Pic</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Qty</b></td>
<td align="center" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"><b>Price</b></td>
</tr>
<tr>
{foreach from=$minicart_contents item=item}
<td align="center">{if $item.is_pimage eq 'W' }{assign var="imageid" value=$item.variantid}{else}{assign var="imageid" value=$item.productid}{/if}
{include file="product_thumbnail.tpl" productid=$imageid image_x=32 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}
</td>

<td align="center">{$item.amount}
</td>
<td align="center">{$item.display_subtotal}</td>

<td align="center">
{if $config.Adaptives.platform eq 'MacPPC' && $config.Adaptives.browser eq 'NN'}
{assign var="js_to_href" value="Y"}
{/if}
{if $type eq 'input'}
{assign var="img_type" value='input type="image" class="blank"'}
{else}
{assign var="img_type" value='IMG'}
{/if}
{assign var="js_link" value=$href|regex_replace:"/^\s*javascript\s*:/Si":""}
{if $js_link eq $href}
{assign var="js_link" value="javascript: self.location='cart.php?mode=delete&productindex=` $item.cartid`'"}
{else}
{assign var="js_link" value=$href}
{if $js_to_href ne 'Y'}
{assign var="onclick" value=$href}
{assign var="href" value="javascript: void(0);"}
{/if}
{/if}
{if ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
{else}
<A href="cart.php?mode=delete&productindex=`$item.car tid`"{if $onclick ne ''} onclick="{$onclick}"{/if}{if $title ne ''} title="{$title}"{/if}{if $target ne ''} target="{$target}"{/if}><FONT class="FormButton">{$button_title} </FONT></A>
{/if}</td></tr>{/foreach}
</table>
{/if}
<HR size="1" NOSHADE class="VertMenuHr">
{if $minicart_total_items > 0}
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><a title="{$minicart_delivery}">Shipping Cost:</a></td><td align="right" class="MiniCartTextSmall">
<a title="{$minicart_delivery}">{include file="currency.tpl" value=$minicart_shipping}</a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
<TD class="MiniCartTextSmall"><strong>{$lng.lbl_total} </strong>: </td>
<td align="right" class="MiniCartTextSmall"><strong>{include file="currency.tpl" value=$minicart_total_cost}</strong></td>
</tr>
</table>
{else}{/if}


Thank you for you hard work on this, cheers Dean

a1deano 10-03-2007 01:13 PM

Re: Advanced Cart Mod
 
Hi can anyone help with these 2 things please, i thought i had it all done untill i was checking a few things.

1st one is if i offer a discount the price shows correct with discount taken away but the "total"
price doesn't reflect the discounted price.

The 2nd one the shipping price isn't showing up unless i first view cart then go back to the item, then the shipping price is then showing but its not included in the over all total price.

As anyone managed to work these 2 things out, would really apprciate any help with these please.

Many thanks Dean

weckie 11-14-2007 10:57 AM

Re: Advanced Cart Mod
 
I used the code but in the minicart it says shipping cost are 0.00. After i go to the shopping cart and back to minicart the shippig cost are displayed.

Does anyone know what i am doing wrong???

regards Weckie

a1deano 03-09-2009 01:06 PM

Re: Advanced Cart Mod
 
Does anyone now if this mod will work on v4.2

Thanks

dwpers 08-13-2009 08:29 AM

Re: Advanced Cart Mod
 
+1

I have the same question as a1deano - I also can't find mini-cart.tpl, it doesn't seem to exist in my 4.2.2 install...

:-?

lash 11-05-2009 05:59 AM

Re: Advanced Cart Mod
 
Anyone uses this in 4.1? Anyone interested in showing what it looks like? Send a PM if you don't want to post your site.

MythNReality 11-05-2009 07:33 PM

Re: Advanced Cart Mod
 
I have this mod implemented on my 4.1x version
It works fine, except the shipping cost...let me know if you would like to see the working version.

lash 11-05-2009 11:19 PM

Re: Advanced Cart Mod
 
Quote:

Originally Posted by MythNReality
I have this mod implemented on my 4.1x version
It works fine, except the shipping cost...let me know if you would like to see the working version.


Yes I would be interested in having a look at working version. You don't have the special offer mod? One concern of mine is that the customer would have to go to the "big cart" to check out offers...

kgoel 07-17-2010 08:59 PM

Re: Advanced Cart Mod
 
I was trying to use your great mod. I have doen everything as per your guidelines but my minicart did not change at all. Instead it started giveing me an error

Warning: Smarty error: unable to read resource: "customer/meta.tpl" in/data/19/1/49/29/1864518/user/2025068/htdocs/retail/include/lib/smarty/Smarty.class.php on line 1093

I have switched back the original code but this error stays there at the top of browser. Whole cart is working fine as previously.

Any suggestions

a1deano 07-24-2010 11:06 AM

Re: Advanced Cart Mod
 
Could this be used on v4.4??


All times are GMT -8. The time now is 08:15 PM.

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