| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Improved minicart display | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Improved minicart display
Hi guys, I am basically a hack so please excuse the messy code. Anyway I decided my miinicart needed improving and have got it to the point where I'm really in love with it, looks great, simple to use etc. here is a screenshot:
http://www.jctech.com.au/images/minicart.jpg Improvements are: Displays products individually Product links are clickable "Remove" link for easy product removal Shipping and total costs displayed Credit goes to forum user "mac" for his original minicart mod. I just edited it to make it the way I want. Works with 4.0.16 and should work with most other versions. edit /minicart.php to be as follows: Code:
Then edit /skin1/customer/main/minicart.tpl to be as such: Code:
Sorry its so messy, I just cut and pasted bits from all over the place. works a treat though Finally, in skin1/customer/menu_cart.tpl comment out this section: Code:
By doing that last part you are preventing it from showing the "View Cart" and "Checkout" links twice when you are actually in the cart. Lastly you need to add this to your skin1.css file Code:
I hope this is of some use to someone... and that the code actually works in someone elses system and not just mine!! |
|||||||
#2
|
|||||||
|
|||||||
Re: Improved minicart display
Works like a sharm Thanks for a good mod!
X-cart 4.019 (unix)
__________________
X-cart 4.0.19 (Unix) --==::wicked::==-- |
|||||||
#3
|
|||||||
|
|||||||
Re: Improved minicart display
Thanks dude, appreciate it.
If anyone can figure out how to make the "Remove" link return you to the page where you were when you clicked it, rather than straight to the cart (which may be empty after clicking the link) that would be great |
|||||||
#4
|
|||||||
|
|||||||
Re: Improved minicart display
Great mod just what I wanted
__________________
yages x-cart version 4.5.5 |
|||||||
#5
|
|||||||||
|
|||||||||
Re: Improved minicart display
was thinking of and got it now.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Improved minicart display
Quote:
I believe you remove this line (minicart.tpl) if you want the "REMOVE"...removed. {if ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}<a href="{$js_link}">Remove</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}
__________________
Jonathan Flyclothing, LLC PO Box 1490 Gilbert, AZ 85299-1571 P 480.422.7350 F 888.359.2568 www.flysportsgear.com?MMCF_xcartforum (X-Cart 4.5.2) FOR SALE |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Improved minicart display
Quote:
Great mod, yes this would be very useful.
__________________
Richard Ultimate 5.4 testing |
|||||||||
#8
|
|||||||
|
|||||||
Re: Improved minicart display
does that code works on 4.1.3? ive tried it but it doesnt work properly. wt do u say?
and i cant find this file: Finally, in skin1/customer/menu_cart.tpl comment out this section: Thanks
__________________
iddiboy.. lootsale.co.uk.. x-cart 4.1.3.. |
|||||||
#9
|
|||||||
|
|||||||
Re: Improved minicart display
Hi mate, no idea sorry, I've only ever used 4.0.16
|
|||||||
#10
|
|||||||
|
|||||||
Re: Improved minicart display
small fix that will add a dolalr sign to the shipping cost
/skin1/customer/main/minicart.tpl replace this <TD class="ProductDetailsTitle">Shipping Cost</td><td align="right" class="MiniCartTextSmall">{$minicart_shipping}</td> with this <TD class="ProductDetailsTitle">Shipping Cost</td><td align="right" class="MiniCartTextSmall">{include file="currency.tpl" value=$minicart_shipping}</td>
__________________
X-Cart version 4.0.19 |
|||||||
|
|||
X-Cart forums © 2001-2020
|