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: 660,202

Results 21 to 40 of 3,609
28 Oct 2006, 10:39 PM
#21
kuroi avatar

kuroi

Totally Zenned

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

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

trollboy:

I have some products for which I was to keep track of stock by attributes,
and some for which I want to keep track of total stock regardless of attributes.
Is it possible to decide which products should appear in the stock by attributes list?
I have installed the mod and all my products with attributes appear there.
If don't put in numbers for product variants then it treats my total stock as zero.

Do I have to either keep track of the stock of all products via attrabutes or none, or can I mix and match?The mod displays all products, but only stock by attributes for those products for which you explicitly choose to set attribute stock.

Once you decide to set attribute stock, you must do so for all variants available for that product and any variants not set will be assumed to have no stock. However, you can remove all the variants and revert to managing stock at the product level if you wish.

28 Oct 2006, 10:57 PM
#22
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

Goshawk:

I have just noticed that this module is not substracting my stock level when I have received an order. My settings in admin are:

Check stock level true
Subtract stock true
Allow Checkout false

I am not sure when this has stopped working, as before the 1.3.5 release of ZenCart it worked fine. And have upgraded to 'stock_by_attributes_4.2' when I noticed that no attributes were displayed with the older version after upgrade.

I also have noticed that I have 2 entries of 'products by attributes stock' in my manager under the catalog entry.

What can I do to fix it?I'm open to correction, but the only way that I can see to get the symptoms that you describe would be to upgrade to Zen Cart 1.3.5, then re-install whatever older version of Stock by Attributes you were using. Then install version 4.2 without first removing the files for the older version.

TRemoving these older files is more critical for this releases 4.x of this mod than would normally be the case since when I upgraded it for 1.3.5 I also removed a number of dubious practises that went way back, and made better use of the over-rides system than was probably available to older versions. As a result, you can't install 4.2 by simply over-writing your existing setup. You must remove those old files not now used by this mod. I suspect that something in one of them is what's causing you these problems.

28 Oct 2006, 11:01 PM
#23
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

gerda:

I have installed this twice and after inserting many attributes stock, both were not working anymore. Suddenly the page can`t show and I am not able to insert no more attributes stock. Do you have any idea about that.

GerdaYou haven't given me much to go on here Gerda. When you say that you have installed this mod twice and both are not working anymore, do you mean that you are trying to run two versions of the mod at the same time. If so, I would not expect it work. You would need top remove all traces of the older version and ideally re-install the new on to ensure that you had a clean fileset from the beginning.

28 Oct 2006, 11:05 PM
#24
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

mrmarcus66:

I am looking for solutions for a friend of mine who wants to list property on a website for people to rent. I wondered if this stock by attribute would allow you to list a property and use availability attributes to allow people to select a set of dates.

My question made simple is does this mod allow you to setup availability of attributes?Mark

You could do this by setting up each availability range as an attribute and then assigning each an attribute stock of '1'.

That would work, but it really feels like a taking a sledgehammer to a nut. I feel that there must be a better solution and just wish that I could think of it!

29 Oct 2006, 9:42 AM
#25
gerda avatar

gerda

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

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

Hey I am a danish girl and not wery good in english, but I removed the mod and installed it again and it worked for some time and then suddenly it doesn`t work anymore. If I drain the table in the database, the mod works for a while, but when I have added a cuple of stocks again it stops work.

29 Oct 2006, 10:03 AM
#26
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

gerda:

Hey I am a danish girl and not wery good in english, but I removed the mod and installed it again and it worked for some time and then suddenly it doesn`t work anymore. If I drain the table in the database, the mod works for a while, but when I have added a cuple of stocks again it stops work.Hey Gerda, your English is much better than my Danish and you are perfectly understandable.

Could you give me some more details though. Which version or versions of the mod have you installed? Which version of Zen Cart are you using? What process did you use for removing the mod?

30 Oct 2006, 1:47 AM
#27
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

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

Kuroi,

I am in the process of upgrading my cart to version 1.3.6, and have only installed your update 4.2, so far everything seems to be working ok.

Will keep you posted if I see anything unusual.

Are there any database files that I should delete that are left over from daniels older version?

Thanks, Goshawk

30 Oct 2006, 5:23 AM
#28
gerda avatar

gerda

New Zenner

Join Date:
Oct 2006
Posts:
3
Plugin Contributions:
0

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

Hey, I`m using Zencart 1.3.5. and the mod is 4.2. I just deleted the old installations files and installed again.

31 Oct 2006, 8:01 PM
#29
trollboy avatar

trollboy

New Zenner

Join Date:
Oct 2006
Posts:
5
Plugin Contributions:
0

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

kuroi:

The mod displays all products, but only stock by attributes for those products for which you explicitly choose to set attribute stock.

Once you decide to set attribute stock, you must do so for all variants available for that product and any variants not set will be assumed to have no stock. However, you can remove all the variants and revert to managing stock at the product level if you wish.

That is what I thought should happen, but t doesn't seem to be working properly. When I look at the Stock by Attributes admin page, the stock appears at the product level for any products for which I haven't set indivdual stocks by attribute. However, when I try and buy one of these products, the shopping cart tells me that there s not enough stock. If I "synchronise stock" on the Stock by Attributes admin page the stock value gets reset to zero, It seems as though the stock at the product level is not being recognised.
Any ideas as to what might be wrong?

2 Nov 2006, 8:56 PM
#30
bobage24 avatar

bobage24

New Zenner

Join Date:
Nov 2006
Posts:
10
Plugin Contributions:
0

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

I have installed this mod, but I am not sure if this is normal. I have a size set up for selling shirts. I only have them in size M,L,XL, but my attribute is for all sizes, so it includes S and XXL, XXXL. But I have zero of these in stock, but they are still showing up on the items page. Is this normal? Is there a way to make it so that the items not in stock don't show up as options?

Thanks,
Bob

2 Nov 2006, 9:54 PM
#31
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

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

If you go into catalog/products with attributes stock, you are able to delete the attributes that you do not need for each item Somehow you must have imported all atributes available to all your products. I don't know if their is a quick way around it.

Goshawk

4 Nov 2006, 10:30 PM
#32
etoile03 avatar

etoile03

Zen Follower

Join Date:
Jun 2006
Posts:
123
Plugin Contributions:
0

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

Does this version also work for 1.3.6? Anyone using it now?

4 Nov 2006, 11:24 PM
#33
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

I have a version for 1.3.6 but haven't had time to test it yet. Apologies to others who have asked questions, I will be back to answer them when pressure of work permits, in the meamtime, hopefully other members of the community can help.

8 Nov 2006, 1:08 AM
#34
plumloopy avatar

plumloopy

New Zenner

Join Date:
Apr 2006
Posts:
66
Plugin Contributions:
0

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

I installed the mod and it seems to work as promised. Nice job. However, my client apparently does not want to deal with adjusting stock levels for every variation of product. Is there a way to disable this and go back to the old way?

Is there a switch or do I need to copy over some "new" files with original ones?

Thanks,

Chris

14 Nov 2006, 9:20 PM
#35
plumloopy avatar

plumloopy

New Zenner

Join Date:
Apr 2006
Posts:
66
Plugin Contributions:
0

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

Anyone???

I replaced all the overwritten files with the original, but am now getting the following error after checkout from the shopping cart:

Fatal error: Cannot redeclare class httpclient in /home/chubby/public_html/shop/includes/classes/http_client.php on line 22

I gotta launch this thing in the next coupla days. Any help is appreciated.

Chris

14 Nov 2006, 10:08 PM
#36
plumloopy avatar

plumloopy

New Zenner

Join Date:
Apr 2006
Posts:
66
Plugin Contributions:
0

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

My fix for this (rather, a workaround) was that I had to KEEP the changed version of header_php.php in the modules/pages/checkout_shipping. The original version of the file was causing the error for some reason.

Anyway, it works and attribute stock is not required. I basically deleted and replaced all the changed files with originals (excepting above) and deleted the new database entries/tables.

PL

16 Nov 2006, 9:13 AM
#37
frank_lyy avatar

frank_lyy

New Zenner

Join Date:
Sep 2006
Posts:
38
Plugin Contributions:
0

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

kuroi:

I have a version for 1.3.6 but haven't had time to test it yet. Apologies to others who have asked questions, I will be back to answer them when pressure of work permits, in the meamtime, hopefully other members of the community can help.

I hope that you release your version for 1.3.6 soon. When I installed stock by attribute on 1.3.6, I encountered a minor bug. When you try to change Configuration>'show stock when low', there is a error message:

Parse error: parse error, unexpected T_STRING, expecting ')' in /home/user/public_html/admin/configuration.php(192) : eval()'d code on line 1
So I just left this field unchanged. Anyway, I think this is just a minor bug and the problem probably came from admin/products_with_attributes_stock.php

16 Nov 2006, 9:30 AM
#38
frank_lyy avatar

frank_lyy

New Zenner

Join Date:
Sep 2006
Posts:
38
Plugin Contributions:
0

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

frank_lyy:

I hope that you release your version for 1.3.6 soon. When I installed stock by attribute on 1.3.6, I encountered a minor bug. When you try to change Configuration>'show stock when low', there is a error message:

So I just left this field unchanged. Anyway, I think this is just a minor bug and the problem probably came from admin/products_with_attributes_stock.php

Problem solved!! Sorry, my mistake. The problem was cause by myself. I changed stock_attribute sql syntax when installing the first time in light of my past experience with contribs installations such as super order 2.0.

Now, I simply reinstalled the stock_attribute.sql as it is. Problem solved.

It seems like this contrib is working with 1.3.6 so far.

19 Nov 2006, 12:06 PM
#39
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

frank_lyy:

Problem solved!! Sorry, my mistake. The problem was cause by myself. I changed stock_attribute sql syntax when installing the first time in light of my past experience with contribs installations such as super order 2.0.

Now, I simply reinstalled the stock_attribute.sql as it is. Problem solved.

It seems like this contrib is working with 1.3.6 so far.Hi Frank. Glad you solved the problem, and thanks for posting the answer. It's always helpful when people do that as Zen Cart now has such a large base that sooner or later somebody else will probably do something similar.

The Zen Cart 1.3.6 version (mod version 4.3) is now available in the download section. Due to my other commitments it's less extensively tested than previous releases. The changes shouldn't have introduced any new problems, but if you find any please post them.

I strongly recommend upgrading to this version as it incorporates some of the security changes added to Zen Cart 1.3.6.

If you are using languages other than English or French, you will need to make some minor adjustments to the language files, otherwise upgrading is simply a matter of overwriting your existing mod files.

19 Nov 2006, 12:13 PM
#40
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

Goshawk:

Kuroi,

I am in the process of upgrading my cart to version 1.3.6, and have only installed your update 4.2, so far everything seems to be working ok.

Will keep you posted if I see anything unusual.

Are there any database files that I should delete that are left over from daniels older version?

Thanks, GoshawkNo there are database files to delete. When I upgraded this for 1.3.5 I used the same table structure as Daniel's version (I don't like it, but it ensured compatibility until the official Zen Cart version comes along).

As you are running Zen Cart 1.3.6, I recommend upgrading to mod version 4.3 for the reasons explained to Frank in my previous post.