Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2007
    Posts
    27
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    PHP Code:
    /*
     * 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!

  3. #3
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v150 Remove Weight from Shopping Cart
    By CnTGifts in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Aug 2012, 05:40 PM
  2. Remove right sidebox shopping cart from when on shopping cart page
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Oct 2010, 01:45 AM
  3. remove units from shopping cart
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Sep 2010, 10:08 AM
  4. Remove BG image from shopping cart
    By paulFromWales in forum Basic Configuration
    Replies: 5
    Last Post: 18 Aug 2006, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg