Zen Cart Logo
Forums / All Other Contributions/Addons / Stocks by attributes

Stocks by attributes

Locked

Views: 251,270

Results 841 to 860 of 1,126
This thread is locked. New replies are disabled.
11 Nov 2009, 6:17 PM
#841
exeter_acres avatar

exeter_acres

New Zenner

Join Date:
Dec 2008
Posts:
70
Plugin Contributions:
0

Stocks by attributes

exeter_acres:

Trying to get this mod to work.....

I have installed it in a test database..
No errors..
I can adjust the quantities in admin....

but when i add an item to the cart that I have set its attribute to zero, nothing happens and it is allowed to be added to the cart....

did I miss something?

thoughts on this??

Thanks
Exeter

anyone?

26 Nov 2009, 2:50 PM
#842
dysfunctional avatar

dysfunctional

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Stocks by attributes

limelites:

Additionally, if you want the attribute in the drop down menu to automatically disable when the attribute quantity = zero, then you have to open /includes/modules/attributes.php and replace this:

$sql = "select pov.products_options_values_id,
pov.products_options_values_name,
pa.*
from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov
where pa.products_id = '" . (int)$_GET['products_id'] . "'
and pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
and pa.options_values_id = pov.products_options_values_id
and pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
$order_by;

> with this:
> ```php
$sql=	"SELECT  pov.products_options_values_id,
       					 pov.products_options_values_name,
       					 pa.*,
       					 pwas.*
        	    FROM   " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_ATTRIBUTES . " pa LEFT JOIN " . TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK . " pwas ON pwas.stock_attributes = pa.products_attributes_id
                WHERE   pa.products_id = '" . (int)$_GET['products_id'] . "'
       			and    pa.options_id = '" . (int)$products_options_names->fields['products_options_id'] . "'
				and    (pwas.quantity > 0 or pwas.quantity IS NULL)
      			and    pa.options_values_id = pov.products_options_values_id
             	and       pov.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
				$order_by;

Like many, many others, I also want to hide attributes with 0 quantity.

I'm using drop down menus and only one attribute "category" for each product.

Been reading this thread for a few hours now, tried the solution above, it does not work for me, do I need to do something else as well?

I'm running Zen cart 1.3.8 with Stock by Attributes v4.7ajax.

Noticed some mentioned the MULTIADD version of SAB but that one seems older...

Truly greatful for some advice here. Thank you.

1 Dec 2009, 1:16 PM
#844
ok_computer avatar

ok_computer

Zen Follower

Join Date:
Jan 2005
Location:
Old Blighty
Posts:
86
Plugin Contributions:
0

Re: Stocks by attributes

Hi Guys,

I've had a search through this thread and I can't seem to find what I'm after.

Basically, what I'd like to do is create one product, which is available in different colours and styles, assign stock levels to each colour or style, and list each colour/style as a separate product. So, for example, a ########ie's Guitar Strap - exactly the same length and material - but it's available in a star pattern, in checkerboard etc. Can I make a ########ie's Guitar Strap, assign colours and styles as attributes, then generate separate products for those attributes. So I'd have ########ie's Star Guitar Strap, ########ie's Checkerboard Guitar Strap, etc listed separately in the product listing. I'm sure you can imagine when there's 20 or so colours it's a huge job. Can this be done, or have I completely missed the point of this module? If I have could anyone recommend anything...

Thanks very much!

1 Dec 2009, 2:52 PM
#845
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stocks by attributes

OK Computer:

Hi Guys,

I've had a search through this thread and I can't seem to find what I'm after.

Basically, what I'd like to do is create one product, which is available in different colours and styles, assign stock levels to each colour or style, and list each colour/style as a separate product. So, for example, a ########ie's Guitar Strap - exactly the same length and material - but it's available in a star pattern, in checkerboard etc. Can I make a ########ie's Guitar Strap, assign colours and styles as attributes, then generate separate products for those attributes. So I'd have ########ie's Star Guitar Strap, ########ie's Checkerboard Guitar Strap, etc listed separately in the product listing. I'm sure you can imagine when there's 20 or so colours it's a huge job. Can this be done, or have I completely missed the point of this module? If I have could anyone recommend anything...

Thanks very much!

If I understand you correctly, then this mod is not what you want. What you want to do is simply create a separate product for each guitar strap/length/color. You can simplify adding all of those products by creating one product then copying it and editing the newly created product in order to create a new variation. The stock would be product stock defined in the product details, as allowed for in Zen Cart base functioning, not stock by attributes.

To simplify the addition of those products even more, check out the Easy Populate mod. Then you could add the new products via spreadsheet.

HTH,
Audra

2 Dec 2009, 3:52 PM
#846
ok_computer avatar

ok_computer

Zen Follower

Join Date:
Jan 2005
Location:
Old Blighty
Posts:
86
Plugin Contributions:
0

Re: Stocks by attributes

audradh:

If I understand you correctly, then this mod is not what you want. What you want to do is simply create a separate product for each guitar strap/length/color. You can simplify adding all of those products by creating one product then copying it and editing the newly created product in order to create a new variation. The stock would be product stock defined in the product details, as allowed for in Zen Cart base functioning, not stock by attributes.

To simplify the addition of those products even more, check out the Easy Populate mod. Then you could add the new products via spreadsheet.

HTH,
Audra

Super, thanks very much for that, I had looked into it but wasn't sure. After your comment I decided to go for it, and though it's proving a bit of work now, it's going to make life a lot easier in the long run. Thanks very much!

3 Dec 2009, 8:39 PM
#847
cunk avatar

cunk

New Zenner

Join Date:
Nov 2007
Posts:
4
Plugin Contributions:
0

Re: Stocks by attributes

We're having some trouble with this addon. I've managed to copy all the files over to our cart (after making sure they weren't going to wipe out anything) and I can successfully add stock quantities for product attributes.

However, if I then go to purchase something and proceed to the checkout I'm told the item is out of stock (I added 20 items of every combo available). This happens no matter which item or combination of attributes I choose.

Any ideas what I should look for?

Here's our cart in case you want to see what I mean:

http://www.rasebike.com/cart/

3 Dec 2009, 9:35 PM
#848
cunk avatar

cunk

New Zenner

Join Date:
Nov 2007
Posts:
4
Plugin Contributions:
0

Re: Stocks by attributes

I disabled the stock check for now so if you visit our cart you won't see the "No Stock" warning. I don't want customers seeing that while I try to figure this out.

(No editing posts on these forums? That's strange.

edit: Oh, I guess there's a time limit. Still strange.)

29 Dec 2009, 11:45 PM
#849
gl3ny avatar

gl3ny

New Zenner

Join Date:
Dec 2009
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

Can someone please help me with this error. I'm running version 1.3.8a and have installed stocks by attribute v1.4.9.

1146 Table 'db71128_gmgcart.products_with_attributes_stock' doesn't exist
in:
[SELECT quantity FROM products_with_attributes_stock AS a LEFT JOIN cart1_products_attributes AS b ON (b.options_id=4 AND b.options_values_id=4) WHERE a.products_id = '3' AND a.stock_attributes = b.products_attributes_id AND a.quantity > 0 order by b.products_options_sort_order]

I've tried searching this thread but cannot make sense of it and scared of doing more damage.

Any help greatly appreciated!!!

30 Dec 2009, 12:30 AM
#850
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

gl3ny:

Can someone please help me with this error. I'm running version 1.3.8a and have installed stocks by attribute v1.4.9.

1146 Table 'db71128_gmgcart.products_with_attributes_stock' doesn't exist
in:
[SELECT quantity FROM products_with_attributes_stock AS a LEFT JOIN cart1_products_attributes AS b ON (b.options_id=4 AND b.options_values_id=4) WHERE a.products_id = '3' AND a.stock_attributes = b.products_attributes_id AND a.quantity > 0 order by b.products_options_sort_order]

I've tried searching this thread but cannot make sense of it and scared of doing more damage.

Any help greatly appreciated!!!Nothing to be scared of.. You haven't done any "damage" it simply doesn't work..

How did you install the SQL patch for this mod?? The error means that the table needed to store attributes stock is missing..

30 Dec 2009, 12:53 AM
#851
gl3ny avatar

gl3ny

New Zenner

Join Date:
Dec 2009
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

Nothing to be scared of.. You haven't done any "damage" it simply doesn't work..

How did you install the SQL patch for this mod?? The error means that the table needed to store attributes stock is missing..

:smile: I copied the text, Admin>tools>SQL patch>send

30 Dec 2009, 6:05 PM
#852
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

gl3ny:

:smile: I copied the text, Admin>tools>SQL patch>sendTry uploading the patch instead and see if you get a different result..

31 Dec 2009, 1:39 PM
#853
gl3ny avatar

gl3ny

New Zenner

Join Date:
Dec 2009
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

Try uploading the patch instead and see if you get a different result..

Uploading patch to where? Sorry noob :huh:

31 Dec 2009, 6:32 PM
#854
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

gl3ny:

:smile: I copied the text, **Admin>tools>SQL patch>**send

gl3ny:

Uploading patch to where? Sorry noob :huh:Same place you copied and pasted the SQL patch. Upload versus Copy & Paste..

1 Jan 2010, 12:02 AM
#855
gl3ny avatar

gl3ny

New Zenner

Join Date:
Dec 2009
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

Same place you copied and pasted the SQL patch. Upload versus Copy & Paste..

Ok I see what you mean, I'm sorry. It's only my 3rd day using zen so I'm not that familiar with it yet.

I ended up doing a fresh install because of all the playing around I've been doing. I just took my time installing Stocks By Attributes and its working perfectly now.

Thanks for your help!

12 Jan 2010, 6:54 PM
#856
exeter_acres avatar

exeter_acres

New Zenner

Join Date:
Dec 2008
Posts:
70
Plugin Contributions:
0

Re: Stocks by attributes

Anyone??

exeter_acres:

Trying to get this mod to work.....

I have installed it in a test database..
No errors..
I can adjust the quantities in admin....

but when i add an item to the cart that I have set its attribute to zero, nothing happens and it is allowed to be added to the cart....

did I miss something?

thoughts on this??

Thanks
Exeter

12 Jan 2010, 8:52 PM
#857
exeter_acres avatar

exeter_acres

New Zenner

Join Date:
Dec 2008
Posts:
70
Plugin Contributions:
0

Re: Stocks by attributes

OK...riddle me this......

I just went back to test it again....
I SWEAR I didn't change anything...

and it is showing the item out of stock!

12 Jan 2010, 8:53 PM
#858
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Stocks by attributes

exeter_acres:

OK...riddle me this......

I just went back to test it again....
I SWEAR I didn't change anything...

and it is showing the item out of stock!It's MAGIC!!!:laugh:

Sorry.. couldn't resist this..

23 Jan 2010, 8:04 PM
#859
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Stocks by attributes

Hello everyone.

I've being running into a problem with this mod, no matter which version I'm using and I can't figure out how to fix it.

My zencart installation 1.3.8a
This mod version 1.4.9 (4.9) the last new on the list.

Whenever I add more than one attribute and add the quantities, the drop down menus in the store reflect multiple choices of the first attribute and the correct one on the second attribute. Maybe I didn't explain correctly so here this is what is happening http://www.byvalenti.com/index.php?main_page=product_info&cPath=14&products_id=16

The problem is on the first drop down menu as it displays 10 times the same option (one for each one of the options).

Has anyone ran into a similar problem? any fix for this?

Thanks!

30 Jan 2010, 11:09 PM
#860
valvoj avatar

valvoj

New Zenner

Join Date:
Nov 2008
Posts:
38
Plugin Contributions:
0

Re: Stocks by attributes

mvstudio:

Hello everyone.

I've being running into a problem with this mod, no matter which version I'm using and I can't figure out how to fix it.

My zencart installation 1.3.8a
This mod version 1.4.9 (4.9) the last new on the list.

Whenever I add more than one attribute and add the quantities, the drop down menus in the store reflect multiple choices of the first attribute and the correct one on the second attribute. Maybe I didn't explain correctly so here this is what is happening http://www.byvalenti.com/index.php?main_page=product_info&cPath=14&products_id=16

The problem is on the first drop down menu as it displays 10 times the same option (one for each one of the options).

Has anyone ran into a similar problem? any fix for this?

Thanks!

I have a similar issue. I'm trying 2 drop down menus on a page. One using product stock w/ attributes, the other w/o. If I don't assign a quantity to the dropdown value, my box is empty. If I go into Product Stock w/ Attribs and give the value a quantity, I get an error about "Warning: Cannot modify header information - headers already sent by.... includes/functions/general.php on line 21". I click back, it says product updated and shows the same value duplicated. Example here:
http://guardianangelsocietysyr.org/zencart/index.php?main_page=product_info&cPath=1&products_id=2&zenid=12ffd8dc3145fb4ea7b4923c5fbee289 Anyone have ideas?