Forums / Addon Sideboxes / Adding picture of shopping cart in side boxes

Adding picture of shopping cart in side boxes

Locked

Started by kobra8 on 19 Oct 2009, 10:54 AM · Views: 2,128

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
19 Oct 2009, 10:54 AM
#1
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Adding picture of shopping cart in side boxes

Hi, I attempt to put picture of shopping cart in side boxes.
Then I put something of product in basket, the shopping cart com on side boxes, byt in text not in picture.

Hay to modify the code, to have picture of shopping sart in side boxes?

Is the file:
includes/modeles/sideboxes/shopping_card.php ?

19 Nov 2009, 4:45 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Adding picture of shopping cart in side boxes

OKAY ALREADY... Just don't shoot us with that big gun of yours !

So when a product is added to the cart, you want a PICTURE of the product to show in the cart sidebox?

20 years a Zencart User

19 Nov 2009, 6:54 PM
#5
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Adding picture of shopping cart in side boxes

Star wars is the best film ever :cool:

Yes, when someone inserted in the cart in side box show a list of these products, I want to show only pictures I choose, without the list of products in the basket.

Hay to do thet?

19 Nov 2009, 7:09 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding picture of shopping cart in side boxes

You want the Shopping Cart with Image Sidebox in Free Addons.

If you need to tweak it to display the way you want after you install it, ask again and let us see what you have.

19 Nov 2009, 7:24 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Adding picture of shopping cart in side boxes

kobra8:

Star wars is the best film ever :cool:

No it isn't... :yuck:

The Sound of Music - with Julie Andrews, is the best movie of all time.
*
The hills are alive, with the sound of music...*:rotflmao:

20 years a Zencart User

19 Nov 2009, 10:22 PM
#8
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Adding picture of shopping cart in side boxes

I install the contributed Shopping Cart With Image Sidebox.
BUT
I want to show only pictures I choose, without the list of products in the basket with picture.

For example, in the side box I want a picture of empty carts, and when something is selected for purchase in the box side a picture of full cards. :blush:

20 Nov 2009, 6:49 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Adding picture of shopping cart in side boxes

So you don't want to show any pictures of products? You only want to show an "empty cart" picture or a "full cart" picture?
Then you can use a test for empty/full cart and switch between images depending on the value of that.```php
//show empty or full cart picture
if($_SESSION['cart']->count_contents() > 0) {
echo '<img src="full_cart.gif" />';
}else{
echo '<img src="empty_cart.gif" />';
}

20 Nov 2009, 11:38 AM
#10
kobra8 avatar

kobra8

Zen Follower

Join Date:
Mar 2009
Location:
Serbia
Posts:
350
Plugin Contributions:
0

Re: Adding picture of shopping cart in side boxes

Works great, thanks people.
:clap:

P.S. Where can I learn how to solve the problem of messages:

Table 'C251393_zencart.products' doesn't exist

:wink: Let the force is with you