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,730

Results 481 to 500 of 3,609
28 Jul 2008, 12:46 PM
#481
bunkerage avatar

bunkerage

New Zenner

Join Date:
Jul 2008
Posts:
6
Plugin Contributions:
0

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

I kept messing around and found the solution to my problem this morning, If anyone is having a similar problem to the one I posted about on page 48 of this thread try using FileZilla to add stock by attribute files to your zencart folder.

I'm still testing my site on localhost and downloaded the server and client for FileZilla...started the server for it..loaded the client..logged in..navigated to my Zencart folder..and just drug the Stock by attribute folders into the directory and it worked like a charm.

:bigups:

6 Aug 2008, 1:37 AM
#482
killertofu avatar

killertofu

New Zenner

Join Date:
May 2008
Posts:
20
Plugin Contributions:
0

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

Interesting problem, looking for answer. I love this addon, and thank the developer(s) for their hardwork.

I have been using this for a while, and worked perfectly. However, on one of my new products, I was going in to change the quantities of stock when it duplicated the variant. Now I have two variants for Green/Small. It seems to be only happening with this color, so I tried to delete the color and re-add the value (Luckily its localized to this one product :laugh:), but it still duplicates the variant when I try to go and edit the quantity.

Any thoughts?:wacko:

18 Aug 2008, 3:19 PM
#483
mehmehmeh avatar

mehmehmeh

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

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

I have been having trouble getting the additional mod by grayson so the stock level for each attribute shows up.

using the code from post **132** and post **110** mentioned in the wiki I have modified my includes/modules/attributes.php file and also added the
define('TEXT_ATTRIBUTES_PIECES','pieces');
to my product_info.php file in my template. The stock levels do not show up in my store, but my store still seems to work fine (thought I would get a php error or a html rendering error if I inserted the code incorrectly)

I used to have the dynamic stock dropdown mod that marked attributes oos, but to the best of my knowledge I have removed it.

I am running a test site served off of my computer as localhost so I can't point you towards the site, but I have attached the attributes.php file that I modified, please let me know if I made a mistake somewhere.

running zencart 1.38a

21 Aug 2008, 12:53 AM
#484
jjgtrading avatar

jjgtrading

New Zenner

Join Date:
Aug 2008
Location:
Utah
Posts:
28
Plugin Contributions:
0

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

I posted this in another post but I think this might be more appropriate for it.

If the quantity for the base item purchased is greater than what is in stock, the message that says these products are out of stock does come up. If a certain style of that base product is out of stock but the amount ordered is less that the total number of the base product in stock an out of stock message for those particular items does not show up.

For example, I tried ordering 6 of the same style/product shirts off my site, 3 in white and extra large, and 3 in black and small. Since I only have 1 of the small black in stock page 1 of the checkout process just cycles when you click checkout. No message will be shown to indicate which item is out of stock. If I try ordering 1 small black and 5 large white of shirt model AA and on the base product page I only enter 5 in stock the message that indicates products are out of stock will show up on both the large and small shirts.

Does anybody know how to fix this?

Also, I noticed if I provide a quantity box for a product (no attributes) and I only have one in stock (or the stock has been reduced to 1) and a buyer enters more than 1, the cart will notify them they need to change the amount ordered but the amount in inventory shown to them displays 0. It apparently removes the specific item the buyer put into their cart from stock. Is there a way to change this to 1. That way they will realize they can only buy one and not think the item is simply not in stock? Should I post this in another forum, prob.

25 Aug 2008, 9:25 AM
#485
gibbyky2 avatar

gibbyky2

New Zenner

Join Date:
Jul 2008
Posts:
13
Plugin Contributions:
0

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

I have added this mod into my zencart but when i go to catalog/products with attributes stock, i sellect all and put 100 (as i have 100 of all sizes) select submit i get the following error message on page at the top

"att: 138|139|140|141" then below it i get

"Warning: Cannot modify header information - headers already sent by (output started at /home2/fomausl/public_html/admin/products_with_attributes_stock.php:193) in /home2/fomausl/public_html/admin/includes/functions/general.php on line 21" when i hit back button and then re select products with attributes stock it shows me all quantity varients.

any help would be appreciated

thanks

25 Aug 2008, 9:52 AM
#486
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

jill8026:

THANK YOU! This is the best thread that could have happened to me, and thanks for the link tot he thread that helps me define stock in the attributes for the customers to see what we actually have!

MY only question is formatting, how can I get the text for the attribute to sit as follows:

Name
Price
In-stockAs you only have one attribute there is a method for adding stock indicators (or quantities). The second question in this mod's wiki FAQ (about 2/3 of the way down) will help you with this.

Re-arranging the attributes layout is beyond the scope of this mod. But in essence you would need to over-ride the includes/modules/attributes.php file. This is one of the biggest and most complex files in Zen Cart, so the change would take quite a lot of work to identify (though will probably require only a handful of small changes when you get there).

25 Aug 2008, 10:19 AM
#487
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

Dan Lacey:

Problem with MySQL -

Hi there, thanks for the great contribution, however Im having a problem in that on my customers site I have colours and sizes with stock for each of these attributes - if I leave the attrbutes set to 'all' and add a quantity, I get the following MySQL error message:

this only happens if i leave the attributes set to 'all' - if i chooses a specific colour and size and add the quantity and submit, it updates the stock levels with no problems....

Thanks in advance....
Dan.Please remember to tell us which version of the mod you are using. from your problem I believe that you must be using the multi-add version. The error that you are getting is because that version of the mod uses a MySQL specific piece of syntax with which some versions of MySQL have problems. To get around this you would probably need to re-write the query to use normal SQL, or roll back to the supported 4.7 version (Dec 07) which uses only standard SQL.

25 Aug 2008, 10:25 AM
#488
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

Bunkerage:

I kept messing around and found the solution to my problem this morning, If anyone is having a similar problem to the one I posted about on page 48 of this thread try using FileZilla to add stock by attribute files to your zencart folder.

I'm still testing my site on localhost and downloaded the server and client for FileZilla...started the server for it..loaded the client..logged in..navigated to my Zencart folder..and just drug the Stock by attribute folders into the directory and it worked like a charm.

:bigups:FileZilla is just one of many possible solutions to your problem and a sledgehammer to crack a nut for most people having this problem (though I use and like it greatly myself).

The underlying problem, which has been suffered by many people using this mod, is that some FTP clients seem not to over-write existing files and a server and don't tell you that they haven't done so, with the result that not all the stock by attributes files land safely. Anybody who has had this problem may have problems upgrading Zen Cart too.

So rather than changing FTP clients, for many people changing the default settings for the one that they're already using is enough.

25 Aug 2008, 10:32 AM
#489
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

killertofu:

Interesting problem, looking for answer. I love this addon, and thank the developer(s) for their hardwork.

I have been using this for a while, and worked perfectly. However, on one of my new products, I was going in to change the quantities of stock when it duplicated the variant. Now I have two variants for Green/Small. It seems to be only happening with this color, so I tried to delete the color and re-add the value (Luckily its localized to this one product :laugh:), but it still duplicates the variant when I try to go and edit the quantity.

Any thoughts?:wacko:Which verision of the mod and which version of Zen Cart are you using?

25 Aug 2008, 10:44 AM
#490
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

jjgtrading:

If the quantity for the base item purchased is greater than what is in stock, the message that says these products are out of stock does come up. If a certain style of that base product is out of stock but the amount ordered is less that the total number of the base product in stock an out of stock message for those particular items does not show up.

For example, I tried ordering 6 of the same style/product shirts off my site, 3 in white and extra large, and 3 in black and small. Since I only have 1 of the small black in stock page 1 of the checkout process just cycles when you click checkout. No message will be shown to indicate which item is out of stock. If I try ordering 1 small black and 5 large white of shirt model AA and on the base product page I only enter 5 in stock the message that indicates products are out of stock will show up on both the large and small shirts.This sounds like a symptom of the mod not being installed properly and trying to execute a mixture of old and new code. I would recommend re-installing the files (the database patch doesn't need to be re-loaded) and checking that each files arrive safely, particularly those over-writing existing files.

jjgtrading:

Also, I noticed if I provide a quantity box for a product (no attributes) and I only have one in stock (or the stock has been reduced to 1) and a buyer enters more than 1, the cart will notify them they need to change the amount ordered but the amount in inventory shown to them displays 0. It apparently removes the specific item the buyer put into their cart from stock. Is there a way to change this to 1. That way they will realize they can only buy one and not think the item is simply not in stock? Should I post this in another forum, prob.This is not standard behaviour and if your cart was working properly it would do exactly what you want. I suspect that this is another symptom of having incomptible bits of code in your store.

25 Aug 2008, 10:47 AM
#491
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

gibbyky2:

I have added this mod into my zencart but when i go to catalog/products with attributes stock, i sellect all and put 100 (as i have 100 of all sizes) select submit i get the following error message on page at the top

"att: 138|139|140|141" then below it i get

"Warning: Cannot modify header information - headers already sent by (output started at /home2/fomausl/public_html/admin/products_with_attributes_stock.php:193) in /home2/fomausl/public_html/admin/includes/functions/general.php on line 21" when i hit back button and then re select products with attributes stock it shows me all quantity varients.You're using the multiadd version which has some bugs in it, one of which is a diagnostic line that should have been removed before it was released. You can safely delete the line referred to in the error message and the problem will go away.

28 Aug 2008, 2:45 AM
#492
jjgtrading avatar

jjgtrading

New Zenner

Join Date:
Aug 2008
Location:
Utah
Posts:
28
Plugin Contributions:
0

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

Thanks Kuroi,

I'm going to take down that site (It's all over the place now anyways) and try it again.

Thanks!

28 Aug 2008, 6:51 AM
#493
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

jjgtrading:

Thanks Kuroi,

I'm going to take down that site (It's all over the place now anyways) and try it again.

Thanks!I'd recommend that you ensure that your FTP program is set to over-ride existing files, even when the files that you are over-riding with have older datestamps. This would deal with what appears to be the most common cause of problems such as those that you have been reporting. Good luck.

28 Aug 2008, 10:15 PM
#494
jjgtrading avatar

jjgtrading

New Zenner

Join Date:
Aug 2008
Location:
Utah
Posts:
28
Plugin Contributions:
0

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

You were right it looks like it was probably due to an installation error. I'm not sure of the specifics as I installed it about a week ago and have been busy with other sites. It's working perfectly now. TY!

29 Aug 2008, 2:42 PM
#495
oakwood avatar

oakwood

New Zenner

Join Date:
May 2008
Posts:
85
Plugin Contributions:
0

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

Is there anyway to do a mass add? For example setup all the attributes and stock for one product, then copy it to all products? That would make my day!!!

In my case the actual "stock" is not much of a concern; it's either in stock (we carry it) or out of stock (impossible to get) and all products have the same attributes (t-shirt colors, sizes, styles, etc.).

thx

29 Aug 2008, 3:17 PM
#496
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

Oakwood:

Is there anyway to do a mass add?No from within Zen Cart. For a mass add you would need to structure and upload the information directly to the database.

29 Aug 2008, 3:49 PM
#497
oakwood avatar

oakwood

New Zenner

Join Date:
May 2008
Posts:
85
Plugin Contributions:
0

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

kuroi:

No from within Zen Cart. For a mass add you would need to structure and upload the information directly to the database.

hmmm...that sounds tricky.

2 Sep 2008, 10:07 AM
#498
laurenh2201 avatar

laurenh2201

New Zenner

Join Date:
Aug 2008
Location:
Edinburgh
Posts:
26
Plugin Contributions:
0

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

Aghhh. Hit a dead end with this. I currently have the Stock by Attribute thing, and the Dynamic Dropdowns for Stock by Attribute mod, and I just can't seem to find that magic setting to fix it all...

Okay, here we go...

http://www.millers-graphics.co.uk/index.php?main_page=product_info&cPath=16&products_id=69 !

Sooo.

  1. There's two sets of dropdown boxes, like the original dropdown boxes, and the new set with the new mod. Anyone else had this and know what I should do?
  2. The dropdown boxes have a bug or something. I've attached what the "Products with Attributes Stock" looks like for this item; the Size works, but nothing happens for Journal Type. Is this a setting or an installation error?
  3. We don't really want to monitor stock levels, however if I set the stock to 0 it doesn't show; it needs to be at least 1 or something. Is there a way to fix this? I have a work around where I just set it to 1 and disable anything that subtracts stock and such, but I think this workaround might be the source of some of my problems.

My settings are as follows:
Config/Dynamic Drop Downs
Multiple attribute display -> Sequenced
Single attribute display -> Single
Show out of stock -> True
Mark out of stock -> None
Display message -> False
Prevent adding to cart -> False

Config/Stock
Check stock level -> False
Subtract stock -> False
Allow checkout -> True

Any help you can offer would be greatly appreciated. Thanks.

Attached is what the "Products with Attributes Stock" looks like for this item. Thanks again!

3 Sep 2008, 3:38 PM
#499
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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

Hi how can I delete products from the stock menu??? I've deleted the whole folders but the products still seem to be left... and stock mod doesn't have delete...

thanks

3 Sep 2008, 3:45 PM
#500
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

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

Oh and can the "are you sure" confirmations somehow be removed=?