Zen Cart Logo
Forums / All Other Contributions/Addons / Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Views: 658,718

Results 1,081 to 1,100 of 3,609
28 Jan 2011, 1:11 PM
#1081
balticccreations avatar

balticccreations

New Zenner

Join Date:
Jan 2011
Location:
Laguna Vista TX
Posts:
42
Plugin Contributions:
0

Stock by Attribute v4.0 addon for v1.3.5-1.3.9

NEW PROBLEM!!! Now my categories aka products page shows this instead of my products when I try to edit

1 Can't create/write to file '/tmp/#sql_ffc_0.MYI' (Errcode: 28)
in:
[select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status from zen_categories c, zen_categories_description cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id = '1' order by c.sort_order, cd.categories_name]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

like ya said fix one break another lol gotta figure out what went missing!

28 Jan 2011, 1:19 PM
#1082
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

balticccreations:

Can't create/write to file '/tmp/#sql_ffc_0.MYI' (Errcode: 28)That's a problem with your database. It means that mysql believes that it has run out of space (usually physically space, i.e. the hard disk on which it's running is full).

One to discuss with your webhost - as only they can fix it.

28 Jan 2011, 1:24 PM
#1083
balticccreations avatar

balticccreations

New Zenner

Join Date:
Jan 2011
Location:
Laguna Vista TX
Posts:
42
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

kuroi:

That's a problem with your database. It means that mysql believes that it has run out of space (usually physically space, i.e. the hard disk on which it's running is full).

One to discuss with your webhost - as only they can fix it.

THANK YOU!!! I did a check and repair of my database and now its back to normal!

28 Jan 2011, 1:36 PM
#1084
balticccreations avatar

balticccreations

New Zenner

Join Date:
Jan 2011
Location:
Laguna Vista TX
Posts:
42
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

balticccreations:

THANK YOU!!! I did a check and repair of my database and now its back to normal!

spoke too soon

28 Jan 2011, 3:18 PM
#1085
nojoke avatar

nojoke

New Zenner

Join Date:
Jan 2011
Posts:
20
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Im gonna do a restore on my site to a couple days ago and then re-upload this beta version here and see if it will work fine for me.

29 Jan 2011, 2:14 PM
#1086
janneke avatar

janneke

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Since i updated (new install) my shop to v1.3.9h i have a problem with the stock by attribute add on. Before with the v1.3.8 it was perfect because when for example the pink shirt size XS was out of stock then it wasn´t shown anymore in the dropdown menu. Now the customer can´t check out when selected XS but i like it more when the size is not shown at all in the dropdown menu. Why isn´t it working like that anymore? someone got any idea?

PS: I use the stock by attribute because of different colors and sizes for one product.

1 Feb 2011, 2:53 AM
#1087
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I have tried to search this thread to find an answer to my problem without success, sorry if this has already been answered.

Last time (a month ago or so) I had this mod working perfectly. Now when I click on the link in the admin I am taken to a blank white page in FF and a 500 Internal Server error in IE.

To the best of my knowledge I have not changed anything in the files that run this mod or edited my database in any way that would have effected this mod.

I am just wondering if anyone has seen this problem before. I do know I have a lot of products loaded in this section. Any help is appreciated and more I can offer more info as needed. Thanks!

1 Feb 2011, 2:48 PM
#1088
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Sorry, I should have given a bit more info. I am running v1.3.8a with Stock by Attribute v4.

The only thing I can think of that would be different with my site is that I edited my admin folder from it's previous name of 'admin' to a more secure name. I really don't think this should have any implication on it's functionality, but it is the only thing I can think of that I have changed. Sorry I can be of any more help. Thanks

1 Feb 2011, 3:57 PM
#1089
corygatz avatar

corygatz

New Zenner

Join Date:
Sep 2009
Posts:
71
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Alright, nevermind. I re-uploaded the files for Stock by Attribute and ran the database update and all is working again. I am guessing in my haste I managed to overwrite a file somehow. Also the new version is much easier to read when you have many thousands of product variations! Sorry to take up room in the topic. Thanks

7 Feb 2011, 3:44 PM
#1090
melena avatar

melena

New Zenner

Join Date:
Jun 2008
Posts:
71
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I already have this add-on and I think it is time to update it since it keeps selling sizes that are out of stock. Can you please tell me what's the best way to update it? Shall I totally remove the old version? or shall I overwrite certain files?
Thank you!

7 Feb 2011, 5:50 PM
#1091
thieving_gypsy avatar

thieving_gypsy

New Zenner

Join Date:
May 2006
Posts:
87
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I've installed the 4.7 version on Zen-cart 1.3.9h and it's not working - no stock is being substracted according to my client and also in the stock by attributes page in admin the two lines (overall and variant) do not tally.

The site is set to subtract stock - obvious first question...

I'm not sure how to sort this out - any help or experiences would be appreciated. I've used an earlier version which worked fine..

Andy

7 Feb 2011, 10:52 PM
#1092
arpanet avatar

arpanet

New Zenner

Join Date:
Jan 2011
Posts:
4
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

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;

I've got a similar requirement on my site - if an attribute is out of stock it should be removed from the radio button list (radio buttons as opposed to dropdowns per the client's request).

This is somewhat complicated by the fact that each product has 2 attributes, so the attribute would only be removed if it's out of stock in ALL combinations.

A good example is this product:

http://www.vkoonyc.com/accessories-c-7/cashmere-loop-scarf-p-20

There's only one size, which makes it easy to test. It's out of stock in Mocha and Lt Grey, and I would like both of those attributes to be removed from the radio button list.

I tried limelite's code in attributes.php but it had no effect.

Using Zen Cart 1.3.9h w/ SBA 4.12.

Thanks in advance!

8 Feb 2011, 2:12 AM
#1093
arpanet avatar

arpanet

New Zenner

Join Date:
Jan 2011
Posts:
4
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Solved my own problem! In the end the magic code was this:

 
$sql="SELECT DISTINCT pov.products_options_values_id, pov.products_options_values_name, pa. *
	FROM " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
	LEFT JOIN products_with_attributes_stock pwas ON pwas.stock_attributes REGEXP 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;

Hope that helps someone else!

8 Feb 2011, 2:39 AM
#1094
sailsport1 avatar

sailsport1

New Zenner

Join Date:
Oct 2008
Posts:
29
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

ChrisD24
I had the same problem with items not in stock. It wouldn't let you check out if an item wasn't in stock, but wouldn't tell you why. After banging my head a while I tried your solution. It works!
Thanks so much!

13 Feb 2011, 12:04 PM
#1095
ashleyng2 avatar

ashleyng2

New Zenner

Join Date:
Dec 2010
Posts:
27
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

There are mixed reviews about whether or not this works.

Does this module work as intended for ZC v1.3.9h.

I am currently using CReinold's v5.0b (w/ AJAX) which isn't working for me as it is allowing customers to add more than that stock quantity remaining into their basket and checkout. (See post: HERE for full description)

Does this version work properly to this aspect?

Thanks for your help.

15 Feb 2011, 7:20 PM
#1096
frenchy232 avatar

frenchy232

New Zenner

Join Date:
Mar 2010
Posts:
21
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

The disable option when 0 fix has worked for me, thanks very much.

Chris I want to try your fix but I am failing at the first hurdle as I can't find the correct file to edit, can you confirm the file name and location.

Site is - https://www.mightcontainnuts.com
Zen Cart - 1.3.9h

Thanks for your help.

Barry.

15 Feb 2011, 10:30 PM
#1097
frenchy232 avatar

frenchy232

New Zenner

Join Date:
Mar 2010
Posts:
21
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

OK, another question....is this an accepted limitation of this addon or should it support error messages? It clearly knows the items are not in stock at the required level because it prevents checkout, but does not present an error message for me.

If this is a problem with my configuation then I can look at possible options, if it is a known issue then I may need someone to code a fix, this is a real issue for us and is costing sales.

Any thoughts?

Thanks,

Barry.

18 Feb 2011, 12:58 AM
#1098
vivek_advsol avatar

vivek_advsol

New Zenner

Join Date:
Nov 2009
Posts:
34
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

Hi There,

I am receiving the following error. could any one help me to find out the problem ..

0
in:
[select pov.products_options_values_id, pov.products_options_values_name, pa.
from products_attributes pa, products_options_values pov where pa.products_id = '22548' and pa.options_id = '2' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '1' order by LPAD(pa.products_options_sort_order,11,"0"), pov.products_options_values_name]
*

18 Feb 2011, 1:54 AM
#1099
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I am using a text field for a product which is letters printed to the customers wish. Stock by attributes creates a stock record in the stock by attributes table, but stock is zero and always puts the out of stock message in the cart.

Is there a work around so that stock for a product with a text field like this does not show out of stock. This issue is also true if you have a mix of drop downs eg a name printed on a t-shirt. Customer chooses size of T-shirt and then enters name in a text field. Want to track the stock of the t-shirt by size but not worry about the text for the name.

Does any one else have a similar issue and is there a work around.

Another variation for my situation is products shipped direct.....never has stock but could have a choice of attributes. Again the out of stock message shows in the cart.

Thanks in advance.

22 Feb 2011, 10:10 PM
#1100
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

I have another question. If I add quantity for all variants how do I stop it adding variants for display only fields. If I ask it to add qty for all variants and that vaiant exists I think there is a bug as it adds the variant again so I then have the same variant twice.

I have looked through the whole of this thread. Sorry if I have missed the answer to these. I could not see it having been answered.

Thanks

MikeyG