Loaded Commerce Community

Banner


Board index » Web Design and Development » Designers Workshop

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: disable product image in shopping cart
PostPosted: Sat Dec 10, 2011 4:56 pm 
Offline
CRE Newbie

Joined: Thu Jul 08, 2010 5:02 pm
Posts: 2
Hello,

How do I turn off display image in shopping cart page?

Thank you!


Top
 Profile  
 
 Post subject: Re: disable product image in shopping cart
PostPosted: Mon Dec 12, 2011 1:20 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
I don't think there's a switch in the admin to do this (easy enough to install one I suppose.)
Find the 2 places in /templates/content/shopping_cart.tpl.php where this block occurs:
Code:
'    <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .

(including the dot at the end)
and change to
Code:
/* '    <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .  */


Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Last edited by soundzgood2 on Mon Dec 12, 2011 3:15 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: disable product image in shopping cart
PostPosted: Mon Dec 12, 2011 1:43 am 
Offline
CRE Freak

Joined: Thu Oct 27, 2011 3:14 pm
Posts: 37
Hi Simon,

I tried it...but that removes all the page contents from shopping cart page.


Top
 Profile  
 
 Post subject: Re: disable product image in shopping cart
PostPosted: Mon Dec 12, 2011 3:15 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
bubuinla wrote:
Hi Simon,

I tried it...but that removes all the page contents from shopping cart page.

Apologies, should've been /* */ not <!-- -->

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: disable product image in shopping cart
PostPosted: Mon Dec 12, 2011 12:51 pm 
Offline
CRE Freak

Joined: Thu Oct 27, 2011 3:14 pm
Posts: 37
Worked beautifully-:) Thank you. I have "sub products only" items and "attributes only" items. Is this OK to do both lines?

----------------------
/* ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_parent_id['products_parent_id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . */
----------------------
/* ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . */


Top
 Profile  
 
 Post subject: Re: disable product image in shopping cart
PostPosted: Tue Dec 13, 2011 3:40 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2402
Location: New Zealand
Your question was 'how do I turn off the images in the shopping cart' ... above code is one way of doing it, regardless of subs or attributes.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index » Web Design and Development » Designers Workshop

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Mon May 21, 2012 9:20 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy