![]() |
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!!! |
All times are GMT -8. The time now is 05:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.