Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

images not showing in "What's in My Cart"


robertwein

Recommended Posts

Posted

Hi Everybody

 

I can't figure this out. Everywhere on my site, the images work perfectly, but when reviewing the contents of the shopping cart the images are not loading. The ALT populates, but not the actual image name. Checking the code, the folder location is there, but not the image name. Looking on line 117 of shopping_cart.php, it has:

 

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

 

so $products[$i]['image'] doesn't populate correctly. Where does that come from?

 

The source looks like:

 

<img src="images/" border="0" alt="48" x 72" World Map" title=" 48" x 72" World Map " width="100" height="80">

 

My URL, if it matters, is http://www.finddaycare.ca/catalog/

 

Thanks for your help

 

PS - I apologize in advance if this is a dumb question, but I just installed the cart last week and I'm still learning. Doing well, but man are there a LOT of files to learn.

Posted

When viewing the cart, it calls the function get_products() from catalog/includes/classes/shopping_cart.php. When a user adds something to their cart, it just saves the product_id to the database, and then this function retrieves this product_id, finds it in the products database, and then selects the image accordingly. But if you haven't changed any code, you shouldn't be having this problem. It looks like the image source is just "images/" without any other details...Have you changed any code?

Posted

The only code changes I have made are the additions of contributions (Purchase Orders, Canada Post, and Local Pickup). I do not recall making any changes to product-related code.

 

I am going to try to re-attach pictures to the records, but I had ASSumed that the pictures not displaying were just resized verions of the image that IS displaying.

 

Thanks for any insights

  • 3 weeks later...
Posted

Not sure if anybody has mentioned this but did you install the UPSXML shipping contribution?

 

If so, it seems that the shipping class is missing the 'images' entry in an array. If you have the old version of the shipping class you will be able to see what I mean.

 

I tried simply inserting it back into the array but that did not help. But I know very little PHP.

  • 3 months later...
Posted
Not sure if anybody has mentioned this but did you install the UPSXML shipping contribution?

 

If so, it seems that the shipping class is missing the 'images' entry in an array.  If you have the old version of the shipping class you will be able to see what I mean.

 

I tried simply inserting it back into the array but that did not help.  But I know very little PHP.

 

 

I installed the UPSXML on MS2. I'm having the same issues. Does anybody know how to fix this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...