osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Out of stock problem on Checkout

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-07-2004, 04:42 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
Default Out of stock problem on Checkout

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-07-2004, 06:13 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
Default

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), you can put how many of that item you have.

That should help you some.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-07-2004, 07:40 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
Default checkout update

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-07-2004, 09:15 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-07-2004, 09:19 AM
Member
 
Join Date: Jan 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
auntie22
Default

Hello Again,

Can you tell me how you got the add to cart button to disappear while out of stock.

Thanks
auntie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-07-2004, 10:13 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
Default Update

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 02-09-2004, 04:38 AM
New Member
 
Join Date: Jan 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SWILLIAMS
Default Code to block add to cart when o stock

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:38 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax