Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Can anyone tell me what instock/out of stock contribution this shop is using?


Recommended Posts

Maybe its custom and they did it themselves but does anyone know what this carts using to make there products have this in-stock, out of stock buttons like this? Is that a contribution thats open to the public?




I like how it shows on the main category page and if you click on the item itself and go into its description.

Link to comment
Share on other sites

they modified the code to evaluate if it is in stock, then they replace the image and link if it's not - you have to do this in every place there is a


<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $new_products['parent_id'] .'_' . $new_products['products_id'] .'&products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'thumbs/thmb_' .$new_products['products_image'], 'Details For: '.$new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'


or equivalent source for the image. I'll put money on them making this into a function and just calling that and replacing the image function in OSC

Nothing unreal exists

Link to comment
Share on other sites


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

  • Create New...