Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Articles without photo


rossmotorsport

Recommended Posts

Posted

Hi,

 

I searche for my project a module with the capacity to create some article in listing mode without photo, do you now if it's available on the ressources community ?

 

thanks in advance

 

XDO

Posted
Hi,

 

I searche for my project a module with the capacity to create some article in listing mode without photo, do you now if it's available on the ressources community ?

 

thanks in advance

 

XDO

 

not sure if I read your question correctly but if you do not add an image (photo) it will not show.

Treasurer MFC

Posted

Yes, but you have on the main page article, the "box without image, and i'ts necessary to add an image with the text "not photo available" at each article, and my need it's an listing mode article because the number article is more to 300.....and if i add at each article the image box "not photo avilable" it's too long for build this database article

 

check on my web site the problem...at this adress

http://www.ross-motorsport.com/boutique_v1....php?cPath=9_36

 

 

not sure if I read your question correctly but if you do not add an image (photo) it will not show.

Posted
Yes, but you have on the main page article, the "box without image, and i'ts necessary to add an image with the text "not photo available" at each article, and my need it's an listing mode article because the number article is more to 300.....and if i add at each article the image box "not photo avilable" it's too long for build this database article

 

check on my web site the problem...at this adress

http://www.ross-motorsport.com/boutique_v1....php?cPath=9_36

 

 

the images are produced by the function

 

// The HTML image wrapper function

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $border = '0') {

if ( (empty($src) || ($src == DIR_WS_IMAGES) || ($src == DIR_WS_PRODUCT_CATEGORY_IMAGES) || ($src == DIR_WS_PRODUCT_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

return false;

}

etc.

 

this means that if you do not have an image file defined for a product, $src = DIR_WS_IMAGES and the function will not return an "<img" tag.

as such no broken image is shown.

 

So make sure you use the right function.

Treasurer MFC

Posted
the images are produced by the function

 

// The HTML image wrapper function

  function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $border = '0') {

    if ( (empty($src) || ($src == DIR_WS_IMAGES) || ($src == DIR_WS_PRODUCT_CATEGORY_IMAGES) ||  ($src == DIR_WS_PRODUCT_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

      return false;

    }

etc.

 

this means that if you do not have an image file defined for a product, $src = DIR_WS_IMAGES and the function will not return an "<img" tag.

as such no broken image is shown.

 

So make sure you use the right function.

 

 

if you do want the "no image" as default without having to add it to your articles every time: set the image field in the database to default to a certain image.

Treasurer MFC

Archived

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

×
×
  • Create New...