kdogg Posted April 9, 2007 Posted April 9, 2007 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? http://www.airsoftsmith.com/store/index.php?cPath=21_22_37 I like how it shows on the main category page and if you click on the item itself and go into its description.
kdogg Posted April 9, 2007 Author Posted April 9, 2007 Anyone? I'd really like this style out of stock listing but I dont know what they used or how they did it.
vasttech Posted April 9, 2007 Posted April 9, 2007 They are just switching the image for add to cart if the quantity available is 0. More then likely not a contribution (i'm not familiar with any of the in-stock/out-of-stock contributions), but just a code edit. osCommerce Knowledge Base osCommerce Documentation Contributions
kirikintha Posted April 9, 2007 Posted April 9, 2007 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.