This is a discussion on Out of stock problem on Checkout within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; If you have an item that is out of stock the customer can still add it to the basket. The ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| If you have an item that is out of stock the customer can still add it to the basket. The customer then has to remove the item before check out. Also if a customer orders a higher quantity of an item than you actually have in stock, they have to adjust the quantity before proceeding. Only thing is they do not know how much stock you have. I would like to add a stock quantity to this checkout page, but not sure how. Also I would like to try and stop the add to cart button and buy now! buttons appearing if the stock quantity is 0. Another idea would be, when stock is 0, to change the add to cart button on the product info page to notify me when in stock. Any ideas how to do this? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Hello, In reference to your stock issue, if you go to your admin control panel, click configuration, then stock you will find everything you need. In order to mark an item out of stock, go to catalog in your admin control panel, find the item that is out of stock, click edit, and the very first question it ask you, is Product status select in stock or select out of stock. Also on this page if you scroll down and look for product quantity, (it is under item description box), That should help you some. |
|
#3
| |||
| |||
| Thanks Auntie All ready set the stock settings. Tue, true, false. I did not want to select out of stock from the product admin as the item would totally disappear from the category listings and customers will not be able to see what I am selling. After all the item is just out of stock until more arrive. Adding the product quantity is not the problem, I want the product quantity to appear on the checkout page, making it easier for customers to see the quantity that is available and update the quantity they are buying. I have now managed to stop the add to cart button appearing when there is no stock. Now trying to make a link to notify me when available and add quantity to checkout. |
|
#4
| |||
| |||
| I know if you go to your product page and type *****in front or behind the item name it marks it out of stock, but it continues to appear. and I think if you go to your admin panel click configuration and product listing you can edit display product quantity, you can remove the buyit now button and some other stuff? That should solve that issue. |
|
#5
| |||
| |||
| Hello Again, Can you tell me how you got the add to cart button to disappear while out of stock. Thanks auntie |
|
#6
| |||
| |||
| Hi again, Now managed to cancel the add to cart button when no stock and bring up a link nicely with the notification module to give customer option of being notified when back in stock. Just have to sort out an alignment issue and I will post the code for you. Just the problem of adding stock quantity to check out left. |
|
#7
| |||
| |||
| Hi Auntie I find the php code fairly easy to follow. The php code I have learnt has only been from doing mods to oscommerce in the last month, so the following code may not be the best method but it works for me. In catalog/templates/content/product.info.tpl.php find the line with: <td class="main" align="left"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?><?php and replace with: <!-- remove add to cart button if quantity 0 --> <?php if (tep_get_products_stock($products_id) > 0) { ?> <td class="main" align="left"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?><?php } else { ?> <?php } ?> <!--end of remove add to cart button if quantity 0 --> You will also find add to cart buttons in: product_reviews.tpl.php products_new.tpl.php catalog/includes/modules/product_listing_col.php which you can either comment out or use a variation of the above code. |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Maximum Stock Quantity on Stock Page? | Dubious | osCMax v2 Features Discussion | 0 | 08-18-2006 03:17 PM |
| Problem with checkout | stevemitch2 | osCMax v2 Installation issues | 3 | 08-13-2006 09:29 AM |
| Having a problem with checkout. | mattcald | osCMax v1.7 Discussion | 2 | 06-17-2005 05:18 AM |
| Problem with checkout | chanterelle | osCommerce 2.2 Installation Help | 3 | 10-20-2003 11:23 AM |
| The problem of checkout. | Newbie | osCommerce 2.2 Modification Help | 1 | 10-08-2003 08:48 AM |