Dennisra Posted April 9, 2005 Posted April 9, 2005 Does anyone have this contribution working? I would like to see it in action. Any problems installing it? SoldOut (but displayed) - v0.1 http://www.oscommerce.com/community/contri...ns,3076/page,37 Quote
Guest Posted May 3, 2005 Posted May 3, 2005 Hi Sorry for my english in the catalog/index.php i have <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> and i want remplace with: <!--Begin Sold Out--> <?php $products_sold_out = ''; $stock_left = tep_get_products_stock($products_id) - $products_quantity; $products_sold_out = stock_left; if ($stock_left > 0) { $submit_button = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); } else { $submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT); } ?> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?></td> <!--End Sold Out--> and in the catalog/advanced_search_result.php but if i change it the website showme add to cart yet 10x Quote
jamesbr Posted July 26, 2005 Posted July 26, 2005 :blink: Have you had any luck with the sold out button? I have the same problem! If someone gave you the resolution please let me know. Thanks Quote For those that help... THANKS. For those that would like to help and dont know how to... Thanks. For those that know how to help and dont help... Thanks (there are always the nice people that do help).
Dennisra Posted July 26, 2005 Author Posted July 26, 2005 I decided not to use the contribution so I have no new informnation. Quote
Madlaker Posted April 13, 2006 Posted April 13, 2006 If anyone was getting the following error on product_info and product_review Warning: Division by zero in /home/test/public_html/home/includes/functions/html_output.php on line 116 Warning: Division by zero in /home/test/public_html/home/includes/functions/html_output.php on line 117 It can be resolved by changing this line of code $submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT); to $submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', SoldOut); This change is made in the author's provided code. Quote
lakauai Posted May 1, 2006 Posted May 1, 2006 (edited) I *think* I followed the instructions, and it does work - it shows the sold.gif image for product that is out of stock. But, I do have one problem. All of my product images are showing up twice - there are 2 columns of each product image. Does anyone have any idea what I did wrong, and more important, what I need to do to fix it?? You can see what I am talking about here: The Shop at Scribbles Edited May 1, 2006 by lakauai Quote
Richard_1010 Posted April 16, 2007 Posted April 16, 2007 Lisa how did you get the SOLD image on the categories pages? I have JUST this minute installed SoldOut (but displayed) - v0.1 with the update readme to SoldOut (but displayed) - v0.2 but it only shows sold out on the actual product page and not on the categories which means customers can still buy the item. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.