![]() |
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:
Make sure you add these lines to minicart.php (thanks Shan!): Code: Quote:
Make sure you add the class to your .css Code: Quote:
All product are linkable! So, with this mod my shopping cart looks like this: Attachment 349 |
Advanced Cart Mod with thumbs
1 Attachment(s)
To see products thumbs in cart replace the body of minicart.tpl :
Quote:
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 |
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} |
Re: Advanced Cart Mod
Thanks, but doesn't work ((
|
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} |
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} |
Re: Advanced Cart Mod
WOW!!!
THAT CODE REALY WORKS!!!! THANK YOU SO MUCH!!! :D/ Quote:
|
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
|
Re: Advanced Cart Mod
sorry about that...remove the $ in the image_x portion
|
Re: Advanced Cart Mod
inebriate, thank you SO MUCH!
Works GREAT!!! |
Re: Advanced Cart Mod
great mod but takes up too much space
|
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 $ *} |
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 |
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 |
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? |
Re: Advanced Cart Mod
{include file="currency.tpl" value=$item.display_subtotal}
|
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. |
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} thanks! |
Re: Advanced Cart Mod
Replace
Quote:
with Quote:
and Total will be calculated wright:D/ |
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? |
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:
Thank you for you hard work on this, cheers Dean |
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 |
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 |
Re: Advanced Cart Mod
Does anyone now if this mod will work on v4.2
Thanks |
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... :-? |
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.
|
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. |
Re: Advanced Cart Mod
Quote:
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... |
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 |
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.