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

Improved minicart display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-06-2006, 01:03 PM
 
teddychan teddychan is offline
 

Member
  
Join Date: Mar 2006
Posts: 25
 

Default Re: Improved minicart display

may i know how to show the LAST ADDED item image?
just like the apple store?

it will displayed the last added item small image. (for 4.1.x)

many thinks!
__________________
--
Reply With Quote
  #12  
Old 10-06-2006, 01:11 PM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Re: Improved minicart display

Just to answer lootsale's question, yes this mod does work in 4.1.3.

Thanks for the mod,

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #13  
Old 10-09-2006, 03:53 PM
 
lootsale lootsale is offline
 

Member
  
Join Date: Sep 2006
Posts: 24
 

Default Re: Improved minicart display

hi,
i have implemented the code and it works fine. could you guys tell me that if i click on remove then it takes me to basket (tho it removes the item from the basket). could it be possible that if i click on remove button then it would simply keep me on the same page and removes the item from the mni basket?

I have the same problem while adding a product that it takes me to the main basket. i wana keep it on the same page and the would be added in mini basket. remeber that the mini basket shows up only when you add a product in basket or login.

Your assistance is appreciated?
__________________
iddiboy..
lootsale.co.uk..
x-cart 4.1.3..
Reply With Quote
  #14  
Old 10-10-2006, 08:38 AM
 
Skateboards.com Skateboards.com is offline
 

Advanced Member
  
Join Date: Jun 2006
Location: Santa Cruz, CA
Posts: 51
 

Default Re: Improved minicart display

ISSUES WITH SHIPPING TOTALS?

I've installed this mod and the totals aren't adding up correctly:

1 X BAM BAT GRIP T...
$5.95 Remove
1 X CREATION JORDA...
$49.95 Remove
Shipping Cost 7.17
Total: $67.12

After going to checkout while logged in, it looks like the total reflects the sum of everything including the sales tax since my account is from the same state. Anyone know where the code is so that I can output the Tax rate applied in the list with the shipping? Even if it's zero because the customer is from out of state I don't care, I just want to display it in the line items so the math doesn't confuse the customer before checkout time.

www.skateboards.com is the site.

Thanks much.

_Rich_
__________________
Skateboards.com/Surfboards.com
------------------------------------------
X-Cart Pro 4.0.18
------------------------------------------
phpMyAdmin 2.6.4
------------------------------------------
MySQL 4.1.12
------------------------------------------
CentOS release 4.4
Reply With Quote
  #15  
Old 10-10-2006, 11:07 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: Improved minicart display

This is the 4.1.3 version for the cart.
You do not need to edit the skin1.css or any language files.

Below is a picture of the cart and the lines in bold are the extra lines added to the original x-cart 4.1.3 tpl file.

At shopcart/skin1/customer/main/minicart.tpl

{* $Id: minicart.tpl,v 1.17 2006/03/28 08:21:07 max Exp $ *}
{if $short_mode eq "short"} {* Crystal_Blue *}
<table cellpadding="0" cellspacing="3">
<tr>
<td>{if $minicart_total_items > 0}<a href="cart.php"><img src="{$ImagesDir}/custom/cart_top_full.gif" width="19" height="16" alt="" /></a>{else}<img src="{$ImagesDir}/custom/cart_top_empty.gif" width="19" height="16" alt="" />{/if}
</td>
<td nowrap="nowrap"><a href="cart.php" class="MainSubtitleLink">{$lng.lbl_view_cart}</a></td>
</tr>
<tr>
<td colspan="2"><img src="{$ImagesDir}/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td><a href="cart.php?mode=checkout"><img src="{$ImagesDir}/custom/checkout_arr.gif" width="16" height="14" alt="" align="middle" /></a></td>
<td nowrap="nowrap"><a href="cart.php?mode=checkout" class="MainSubtitleLink">{$lng.lbl_checkout}</a></td>
</tr>
</table>
{else} {* Crystal_Blue *}
<table cellpadding="1" cellspacing="0">
{if $minicart_total_items > 0}
<tr>
<td rowspan="3" width="23"><a href="cart.php"><img src="{$ImagesDir}/cart_full.gif" width="19" height="16" alt="" /></a></td>
<td class="VertMenuItems"><b>{$lng.lbl_cart_items}: </b></td>
<td class="VertMenuItems">{$minicart_total_items}</td>
</tr>
{* START - ADDED SHIPPING AMOUNT TO CART *}
<tr>
<td class="VertMenuItems"><b>{$lng.lbl_shipping}: </b></td>
<td class="VertMenuItems">{include file="currency.tpl" value=$minicart_shipping}</td>
</tr>
{* END - ADDED SHIPPING AMOUNT TO CART *}
<tr>
<td class="VertMenuItems"><b>{$lng.lbl_total}: </b></td>
<td class="VertMenuItems">{include file="currency.tpl" value=$minicart_total_cost}</td>
</tr>
{else}
<tr>
<td width="23"><img src="{$ImagesDir}/cart_empty.gif" width="19" height="16" alt="" /></td>
<td class="VertMenuItems" align="center"><b>{$lng.lbl_cart_is_empty}</b></td>
</tr>
{/if}
</table>
<hr class="VertMenuHr" size="1" />
{* START - DISPLAY PRODUCT DESCRIPTION *}
<table cellpadding="1" cellspacing="0">
{if $minicart_total_items > 0}
{foreach from=$minicart_contents item=item}
<tr>
<td class="MainSubtitleLink">{$item.amount} X</td>
<td class="MainSubtitleLink"><a title="{$item.product}">{$item.product|truncate:15 :"...":true}</a></td>
<td align="right" class="MainSubtitleLink">{include file="currency.tpl" value=$item.display_subtotal}</td></tr>
{/foreach}
{else}
<div align="center"><a href="home.php?cat=268" class="MainSubtitleLink">Please Click HERE for SPECIAL OFFERS</a></div>
{/if}
</table>
{* END - DISPLAY PRODUCT DESCRIPTION *}
<hr class="VertMenuHr" size="1" />
{/if} {* Crystal_Blue *}

And of cause the shopcart/minicart.php

Add at the bottom:

$smarty->assign("minicart_contents", $cart["products"]); //added this line
$smarty->assign("minicart_shipping", $cart["shipping_cost"]); //added this line
?>
Attached Thumbnails
Click image for larger version

Name:	cartpicture.jpg
Views:	470
Size:	13.2 KB
ID:	123  
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #16  
Old 10-10-2006, 11:51 AM
 
Skateboards.com Skateboards.com is offline
 

Advanced Member
  
Join Date: Jun 2006
Location: Santa Cruz, CA
Posts: 51
 

Default Re: Improved minicart display

Will that work for 4.0.18?


Here's the example with my current mini cart image displaying how what the customer sees doesn't add up.
Attached Thumbnails
Click image for larger version

Name:	Picture 2.png
Views:	383
Size:	17.4 KB
ID:	124  
__________________
Skateboards.com/Surfboards.com
------------------------------------------
X-Cart Pro 4.0.18
------------------------------------------
phpMyAdmin 2.6.4
------------------------------------------
MySQL 4.1.12
------------------------------------------
CentOS release 4.4
Reply With Quote
  #17  
Old 10-11-2006, 06:23 AM
 
QVS QVS is offline
 

Senior Member
  
Join Date: Nov 2004
Posts: 136
 

Default Re: Improved minicart display

doesnt work on 4.0.14 any ideas.

just displays the shipping total
and total

plus the view cart and checkout text links.

thanks
__________________
xcart version 4.1.6
UK - Brighton

QVS ELECTRICAL SUPPLIES - http://www.qvsdirect.com

We supply a huge range of cables, electrical accessories, heating, ventilation, fire and security products, consumer units & circuit distribution, indoor and outdoor lighting, showers and water heating, tools and fixings, timer switches, sockets, switches, air conditioning, trunking, and much much more.
Reply With Quote
  #18  
Old 10-11-2006, 08:23 AM
  dalmuti's Avatar 
dalmuti dalmuti is offline
 

eXpert
  
Join Date: Oct 2004
Location: Kansas
Posts: 343
 

Default Re: Improved minicart display

Yes, skateboards.com is correct....the total is incorrect. In 4.1.3 on my site it appear that the total is just the product prices added together and does not take into account shipping.

Any ideas of how to include the shipping cost to the equation?

Louise
__________________
Louise

Studio 57 Designs - X-Cart Customization
Providing X-Cart Services since 2004
Hottest Blog Directory - Submit Your Blog for a Free Listing
Reply With Quote
  #19  
Old 10-12-2006, 04:39 PM
 
lootsale lootsale is offline
 

Member
  
Join Date: Sep 2006
Posts: 24
 

Default Re: Improved minicart display

any1 cud help on this qs?

if i click on remove in mini basket then it takes me to basket (tho it removes the item from the basket). could it be possible that if i click on remove button then it would simply keep me on the same page and removes the item from the mni basket?

I have the same problem while adding a product that it takes me to the main basket. i wana keep it on the same page and the product would be added in mini basket. remeber that the mini basket shows up only when you add a product in basket or login.


Your assistance is appreciated?
__________________
iddiboy..
lootsale.co.uk..
x-cart 4.1.3..
Reply With Quote
  #20  
Old 10-13-2006, 05:47 AM
 
cmec321 cmec321 is offline
 

Member
  
Join Date: Sep 2006
Posts: 22
 

Default Re: Improved minicart display

Great work. Now we need to do like Amazon.com, and after user clicks add to cart, it takes them to a "Customers who viewed this product and also viewed:
".

I noticed x-cart is not up with the sign of times. I requested they add upsells to the site after clicking add to cart. anyone agree?
__________________
4.1.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 05:05 PM.

   

 
X-Cart forums © 2001-2020