Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Stock level indicator, for stock by attributes controller

Stock level indicator, for stock by attributes controller

Locked

Views: 3,734

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Nov 2008, 8:09 AM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Stock level indicator, for stock by attributes controller

I use stock by attributes controller, and today I am searching for a way to have stock levels indicated under each attribute so the customer can choose what is in stock rather than finding out it is out of stock when they add the item to the cart

I found this http://www.zen-cart.com/forum/showthread.php?t=34977
It talks about a mod that they have made for this that is going to be added to the contributions section once finished but I am not sure what it is called. I did not read the 50 pages to find out.

I found this in the contributions: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=953
I am going to test it now, but the readme file said there are lots of bugs with this script. I will post my comments later.

If anyone has any links or information on anything that indicates stick levels on the item page its self please post here

I would not mind if the page looks like this

Please Choose:

Size (AU)
{} 08 (S)
in stock 2 MARINE
{} 10 (M)
in stock 1 OLIVE
{} 12 (L)
in stock 1 MARINE
in stock 2 OLIVE
{} 14 (XL)
out of stock
{} 16 (XXL)
out of stock

Colour
{}MARINE
{}OLIVE

{} = Radio buttons

13 Nov 2008, 8:47 AM
#2
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Stock level indicator, for stock by attributes controller

http://www.zen-cart.com/index.php?ma...roducts_id=953

The mod I found is excellent

Example: http://www.tuscanyhydepark.com.au/index.php?main_page=product_info&cPath=1&products_id=2

but....

When I use it with 2 attributes this happens
http://www.tuscanyhydepark.com.au/index.php?main_page=product_info&cPath=1&products_id=1
13.11.08

define('TEXT_OUT_OF_STOCK', 'Out of stock');
define('TEXT_OUT_OF_STOCK_MESSAGE', 'The combination of options you have selected is currently out of stock. Please select another
combination.');

I have never seen the 'TEXT_OUT_OF_STOCK_MESSAGE' message...

It works ok but when you select a combination of items that are not in stack it comes up with a pop up that says TEXT_SELECT_OPTIONS,
So I added
define('TEXT_SELECT_OPTIONS', 'The combination of options you have selected is currently out of stock. Please select another
combination.');
To /public_html/includes/languages/english/product_info.php
But then after I did this, the pop up stopped coming up and all it did when you selected items with no stock was go to the shopping cart where is said the item was out of stock, (well it better than before)

The read me file said

=============
KNOWN ISSUES:

  1. The single_dropdown option does not work correctly as it does not add the item with the selected attribute. I hope to have this fixed soon. To get around this use multiple_dropdown or sequenced_dropdown options for the single attribute configuration.
  2. Multiple_drop down does not work with multiple attributes, a regular expression needs to be fixed. Use the sequenced_dropdown for more than one attribute.
  3. This code is far from optimized and does not follow all the Zen Cart standards. I hope to have this cleaned up over time with the help of the community.
  4. The single_radioset option is not tested.

I dont know what some of that meant

13 Nov 2008, 8:49 AM
#3
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Re: Stock level indicator, for stock by attributes controller

I want the popup to work but I want it to say OUT OF STOCK, I will look in to this now