| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
descriptive minicart | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
descriptive minicart
We needed our minicart to display more information than it currently does. I couldn't find a mod to do it, so here is what I did.
Added a line to minicart.php: Code:
Added a section to minicart.tpl: Code:
I didn't format the table much, so season to taste. The minicart now displays: cartitem1___X2___5.00 cartitem2___X1___6.00 Total__________$11.00
__________________
Evidence Media x-cart 4.1.3 |
|||||||
#2
|
|||||||
|
|||||||
Great Mod...thanks.
- Shannon
__________________
- www.TheShotList.com X-Cart version 4.0.13 PHP 4.3.10 MySQL 4.0.23 Web server Apache Operation system Linux Perl 5.008004 XML parser (expat) 1.95.6 |
|||||||
#3
|
|||||||
|
|||||||
thanks ..
__________________
xcart 4.18 on linux |
|||||||
#4
|
|||||||||
|
|||||||||
thnx
__________________
// x-cart 4.1.9 X-CART CSS SKIN XC SEO IP Addresses in Users Online for all users Color coded order status |
|||||||||
#5
|
|||||||
|
|||||||
Brilliantly Simple mod.
Thanks very much!
__________________
Best regards, Donavichi. - - - Website Copywriting || Web Design || FAQs || Home & Garden Blog |
|||||||
#6
|
|||||||||
|
|||||||||
nice work - this works great in 4.0.17 with some very minor formatting -
but, is there any way to a) get the shipping cost to show up (like a product) to make the total make sense or b) have the subtotal show up in the minicart that does not include the shipping costs? we use flat rate shipping so the cost is already known when items are added to the cart. thanks!
__________________
X-Cart Gold 4.0.17 & 4.0.18 Linux Server Hands-On Hosting http://www.CoreCases.com - Ipod Cases http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need |
|||||||||
#7
|
|||||||||
|
|||||||||
Can anyone give me the location of the minicart.tpl? I just can't find it.
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#8
|
|||||||||
|
|||||||||
skin1/customer/main
|
|||||||||
#9
|
|||||||||
|
|||||||||
For some reason I have Total (with amount) showing up on the right side and the bottom and it is cramping the cart contents. I have looked at the code it doesn't look like that should be there so obviously I am missing something. Here is the code I have for in minicart.tpl:
<TABLE border="0" cellpadding="1" cellspacing="0"> <TR> <TD rowspan="2" width="23"> {if $minicart_total_items > 0}[img]{$ImagesDir}/cart_full.gif[/img]{else}[img]{$ImagesDir}/cart_empty.gif[/img]{/if} {if $minicart_total_items > 0} <table width="100%"> {foreach from=$minicart_contents item=item} <tr><td>{$item.product|truncate:18:"...":true}</td><td>X {$item.amount}</td><td align="right">{$item.display_subtotal}</td></tr> {/foreach} <tr><td>Total</td><td></td><td align="right">{include file="currency.tpl" value=$minicart_total_cost}</td></tr> </table> {/if} </TD> 4.0.17
__________________
Mary Lee ------------------- Dinner and a Murder Mystery Games http://www.dinnerandamurder.com x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template |
|||||||||
#10
|
|||||||||
|
|||||||||
looks like your table/cell tags may be a bit off, try this
Code:
this works for me in 4.0.17 mike
__________________
X-Cart Gold 4.0.17 & 4.0.18 Linux Server Hands-On Hosting http://www.CoreCases.com - Ipod Cases http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need |
|||||||||
|
|||
X-Cart forums © 2001-2020
|