Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help, Default Pic for Products with no image.. How


verbalkent

Recommended Posts

Posted

Hello, I have a VERY moddified site, and I also use creloaded. I have added a hack that uses the "pixel_trans.gif" for any products that have no existing Images associated with them, I would like to change the image file it uses. So instead of defaulting to the "pixel_trans.gif" image, I want to point it to a image that I created in adobePs. I have searched older oscommerce contribs looking for a mod that I may have used so that I can just go in and edit it, but had no luck,

 

I checked the html_output file (Most of the contribs tell me to edit that for selecting a default image for products with no image.) but that doesnt work when doing a "Find" for the specific "pixel_trans.gif" or any of the code referenced in the contribs...

 

 

An example of the problem can be found Here. Also, When I try to manually add in my custom pic for the products without a pic, it doesnt even show up, unless that pic is assigned to only one product...

 

 

Im going a little crazy... Thx in advance for any help..

Posted
So instead of defaulting to the "pixel_trans.gif" image, I want to point it to a image that I created in adobePs.
Isnt it simpler to just save your new image as a .gif and call it "pixel_trans.gif"

 

Then you just need to upload it into the images directory in place in place of the old file.

Posted
Isnt it simpler to just save your new image as a .gif and call it "pixel_trans.gif"

 

the transparent separator 1x1px (pixel_trans.gif) is used throughout the shop not just the products. If you replace it with another image (especially with different dimensions) it could cause problems with other tables. If you want just the product_info.php create a new image replace the instances in the product_info.php or even better create a .css class with your new image then use the class in html.

Posted
the transparent separator 1x1px (pixel_trans.gif) is used throughout the shop not just the products. If you replace it with another image (especially with different dimensions) it could cause problems with other tables. If you want just the product_info.php create a new image replace the instances in the product_info.php or even better create a .css class with your new image then use the class in html.

 

 

Are you suggesting I add the images to the products case, by case? that would be great, if I didnt add 300+ Products to my site with about 100 of them without available pics.

 

 

Is there a place that I can check, Im pretty sure I added the code to point to pixel_trans.gif for the default place holder fo images not found. I just need to find out where oh where that little code is... :) help!

Posted
Are you suggesting I add the images to the products case, by case? that would be great, if I didnt add 300+ Products to my site with about 100 of them without available pics.

 

I cannot recall saying this. there is at least a contrib for setting a default image (for those without images) but you mentioned wont work with the find facility so I assume you've already tried it. The other possibility I mentioned will be to edit the files that list/show product images (like products_info.php), modify the php code so if an image is not present you load a separate one (a no pic available one) which you could place in the images dir. That should include the find results. (or you could combine an existing contrib to save time)

 

Because if you replace the "pixel_trans.gif" with another image (well you can do a search for it on the php files of your shop and you'll see what I meant)

Archived

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

×
×
  • Create New...