Forums / Templates, Stylesheets, Page Layout / Picture in shopping cart instead of text

Picture in shopping cart instead of text

Locked

Views: 750

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
27 Feb 2010, 1:35 PM
#1
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Picture in shopping cart instead of text

Hi to all hope ive put this in the right section, wonder if anyone knows if this can be done, instead of having the name of the product thats been added to your shopping cart, if this could be changed to a small picture of the item, perhaps the price of the goods next to the picture.

Any help would be greatly apprciated

Thanks Dean

Using zencart version - 1.3.8a

27 Feb 2010, 3:18 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Picture in shopping cart instead of text

On the page in question - what is the address in your browser bar?

Zen-Venom Get Bitten

27 Feb 2010, 5:04 PM
#3
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Picture in shopping cart instead of text

Hi ya

Its the actual (added) to shopping cart on the main page, when you add an item to your shopping cart/trolley it displays in the cart the item name of what your have brought.

Ive attached 2 pictures below the pink one is of the new zencart site iam working on which shows text description in the shopping cart.

The other picture the blue one is a live webshop i run selling underwear which is xcart, but in this picture you can see i have pictures with the price next to it.

This is what iam trying to acheive if its possable

Many thanks Dean

Using zencart version - 1.3.8a

27 Feb 2010, 5:49 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Picture in shopping cart instead of text

Use the override system and look at the /sidebox file tpl_shopping_cart.php for

$content .= $products[$i]['name'] . '</span></a></li>' . "\n";

Replace 'name' with the record name for the image -
You will have to look at the table to get the precise name to insert

Zen-Venom Get Bitten

27 Feb 2010, 6:23 PM
#5
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Picture in shopping cart instead of text

Thanks for your help hmmmmmmmmm this looks a little to much for someone like me, i know a little bit but still learning zencart.

Think i may have to pay someone who knows what their doing to sort this out.

Thanks alot for your help
Dean

Using zencart version - 1.3.8a

27 Feb 2010, 6:30 PM
#6
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Picture in shopping cart instead of text

Iam back :D right i found the correct tpl file just not sure know how to find the images name,,, also table ???

Many thanks again

Using zencart version - 1.3.8a

27 Feb 2010, 6:43 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Picture in shopping cart instead of text

just not sure know how to find the images name,,, also table ???
Use phpmyadmin or equivalent to browse you database and I suspect the
"product" table structure

Zen-Venom Get Bitten

27 Feb 2010, 7:39 PM
#8
medeano avatar

medeano

New Zenner

Join Date:
Feb 2010
Posts:
33
Plugin Contributions:
0

Re: Picture in shopping cart instead of text

No iam lost know in this code

$content .= $products[$i]['name'] . '</span></a></li>' . "\n";

Were it says ['name'] wouldn't i need to put some other code in there
so it calls for the image id what has been added to the cart.

Alittle over my head now.... lol

Using zencart version - 1.3.8a