Forums / Templates, Stylesheets, Page Layout / Remove image from shopping cart

Remove image from shopping cart

Locked

Views: 1,916

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Nov 2007, 3:04 PM
#1
trole avatar

trole

New Zenner

Join Date:
Sep 2007
Posts:
27
Plugin Contributions:
0

Remove image from shopping cart

Hi,
i would like to remove the image on shopping cart page of the product when customer add it .

and do i have an option to add to the shopping cart table the model number of the product that my customer choose?!

if yes, i'll be more then happy to get an answer for that too.

Thank you very much,
and have a great weekend for all.

Tal.

17 Nov 2007, 3:48 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove image from shopping cart

In the Configuration ... Images ... you could turn off the image with the switch for it:

Image - Shopping Cart Status
Show product image in the shopping cart?
0= off 1= on

On the products_model, this is not a feature of the shopping_cart ...

However, you can customize the template with your templates and overrides and use a handy dandy, often over looked, function zen_products_lookup ...

/*
 * Return any field from products or products_description table
 * Example: zen_products_lookup('3', 'products_date_added');
 */
  function zen_products_lookup($product_id, $what_field = 'products_name', $language = '') {

What this function does is return any field from either the products or products_description tables by passing to it the products_id and the field that you want ...

On the shopping_cart for the template file tpl_shopping_cart_default you can use for the products_id:
$product['id']

and then the field name you want for the model is:
products_model

So, copy the tpl_ file to your template and override directory and then customize that for your specific needs ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Nov 2007, 3:56 PM
#3
nev avatar

nev

New Zenner

Join Date:
Nov 2007
Location:
Canada
Posts:
49
Plugin Contributions:
0

Re: Remove image from shopping cart

the first question :
admin >> configuraton >> images
find Images- Shoping cart status and turn it off.

2nd queston . not sure, i dont think there is an option for that in the admin panel. but the emphasis is on i dont think there is, at least i didnt find one in the Configuration > Stock where i located the other Shoping cart features. so unless they are separe for some reason, i think you might have to modify your tpl_shopping_cart_default.php and add it there.
but someone who knows might have a better idea.