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

Stocks by attributes

Locked

Views: 251,258

Results 921 to 940 of 1,126
This thread is locked. New replies are disabled.
3 Jun 2010, 1:59 PM
#921
funkypapa avatar

funkypapa

New Zenner

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

Stocks by attributes

FunkyPapa:

Hi, I'm using this addon with version 1.3.8a. I have installed this addon on my live site along with the product attribute grid. It works wonderfully. However, I have started on my local machine to change the template and a few other things. In re-adding these modules back in, when you add some of my products to the cart it's coming up as out of stock.

I added the products to the catalog with current stock.
I assigned them attributes.
I went to the attribute manager and added each stock per attribute.

I'm at a loss as to why only 2 out of the 5 products I have there so far are coming up as out of stock in the shopping cart. I have deleted the products and re-added them thinking I may have done something wrong, but this did not fix it. I then deleted the attribute variants and checked....you can add it to the cart fine. However when I reassign the variants...I get the out of stock warning again. There are 3 in stock: 1 petite, 1 regular, 1 long.

I've tried some searching but my search terms turn up way too many results to sift through. Any help with this would be greatly appreciated.

I upgraded to 1.3.9c and reinstalled these addons. This is no longer an issue.

4 Jun 2010, 3:57 PM
#922
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

FunkyPapa:

Is there a way to get the images I'm adding to product attributes to stop displaying underneath the product attribute gridThis has nothing to do with stock by attributes.

As this thread is already heading towards 1,000 posts, I suggest that we not allow it to wander off into unrelated topics.

4 Jun 2010, 5:45 PM
#923
funkypapa avatar

funkypapa

New Zenner

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

Re: Stocks by attributes

Do you have any idea what might cause this (so I can post in the proper place). In the picture of the diapers, I DID NOT add any images other than the ones added through the attribute controller. I'm sorry, I just have no idea where to look for an answer if it doesn't have to do with the attributes :(

4 Jun 2010, 8:06 PM
#924
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

kuroi:

This has nothing to do with stock by attributes.

As this thread is already heading towards 1,000 posts, I suggest that we not allow it to wander off into unrelated topics.Exactly..

FunkyPapa:

Do you have any idea what might cause this (so I can post in the proper place). In the picture of the diapers, I DID NOT add any images other than the ones added through the attribute controller. I'm sorry, I just have no idea where to look for an answer if it doesn't have to do with the attributes :( How is this any different from your original question??? The point is your inquiry on this issue is off topic for this support thread.. you need to post questions which are not related to SBA support in a NEW thread so you can get an answer..

4 Jun 2010, 9:30 PM
#925
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

Exactly..

How is this any different from your original question??? The point is your inquiry on this issue is off topic for this support thread..

is there any need for this type of comment?.. this member is a new zenner with only 50 posts... talk about a belittling responce!

could you not have just said
" you need to post questions in a new thread so you can get an answer.."

a much friendlier reply dont you think!
Have you forgot what it's like to be new?
(note: i removed the CAPS)

5 Jun 2010, 12:38 AM
#926
funkypapa avatar

funkypapa

New Zenner

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

Re: Stocks by attributes

I'd like to say thank you to Shane78 for at least being understanding.

I'd also like to apologize for thinking that something that has to do with Attributes, should be posted in a thread dealing with Stock by Attributes. I'm not fine tuned on the intricate workings of zen cart, hence why I would need to ask questions. The reason I don't have many posts, is I try to look up things before I randomly go off asking questions. A lot of times, I'm not using the 'right' search terms or some other minute detail and I have to dig and dig to find my answers....when I hit your precious thread that has 'nearing 1000 posts' that I simply don't have the time to sort through using keywords like 'images', 'attributes', ya know, they key to my problem and I get hundreds of posts turning up in my results. Rest assured, this will be my last post in your thread.

9 Jun 2010, 5:54 AM
#927
ideashop avatar

ideashop

New Zenner

Join Date:
Sep 2007
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

creinold:

I posted my file edits that work with 1.3.9C here:

http://www.zen-cart.com/forum/showpost.php?p=882168&postcount=215

Thanks for posting these. Please note: at least 2 files are missing:

MISSING FILES
/admin/products_with_attributes_stock.php
/admin/products_with_attributes_stock_ajax.php

Also, I noted that you did not include this file, either:
/admin/orders.php

...Which I updated with these lines using WinMerge:

// kuroi: SbA
          $option_name_array = explode(":", $order->products[$i]['attributes'][$j]['option']);
          $option_Name = $option_name_array[0];
// end: sbA

My only question concerning this file is maybe this isn't necessary, since perhaps I was using a different version of SbA? I can provide my version of the /admin/orders.php if this would be helpful.

Finally, we're now on version 1.3.9d. Looking at the dates of the files in this release, it looks like this file has been updated:

/includes/classes/order.php

I used WinMerge to update the latest version of this file with the SbA code as well (easy).

Thanks!

9 Jun 2010, 6:07 AM
#928
ideashop avatar

ideashop

New Zenner

Join Date:
Sep 2007
Posts:
24
Plugin Contributions:
0

Re: Stocks by attributes

I updated creinold's file set with the missing files. **You can download it here**.

I make no guarantees, but it seems to be working just fine with my web store (http://tlca.org/webstore).

Hope this is helpful. :smile:

11 Jun 2010, 11:24 PM
#929
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Thanks I updated my fileset also. =)

Should I submit the file set to zen-cart to added to the contribution area?

Charles

12 Jun 2010, 5:33 AM
#931
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

creinold:

Link to updated file set for Stock by Attributes
http://www.gotleather.com/Stock_by_Attributes_creinold_files.zip

Should I add the Dynamic Drop Down mod to it also?
Only if you have finally got Dynamic Dropdowns to work FULLY.. IMO this mod (Dynamic Dropdowns) only half works..:smile:

12 Jun 2010, 5:47 AM
#932
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

I use it on my site with no problems. =)

http://www.gotleather.com to try it.

12 Jun 2010, 7:57 AM
#933
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

creinold:

Should I add the Dynamic Drop Down mod to it also?Probably not.

If people want to use them together, they can install them together.

But adding more bells and whistles will only make this mod more complicated.

The versions that I issued were supported and tested to professional standards (even though they inherited a data structure that I didn't much like). I carried on supporting it even when I had no clients using it.

I stopped when people started issuing versions with extra features, that while nice, over-complicated it and sometimes didn't work properly.

Integrating more peripheral features lessens still further the chances that somebody else will be willing to pick this up and stay with it.

Don't get me wrong. This is to some extent how open source develops and although it hasn't worked as effectively as it can in this instance, there's nothing wrong with that.

But unless you're willing to stick with it and maintain it, I'd strongly recommend against making it more difficult for anybody else to do so.

12 Jun 2010, 11:14 PM
#934
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

What he said..:laugh::laugh: Kuroi is absolutely right..

All so-called "enhancements" that have been added on to his originial SBA contribution is part and parcel why the versions after Kuroi's last release have been NOTHING but problematic.. (and why I have always recommended to NOT install any of them) At the risk of hurting feelings or offending someone, none of these author's have even bothered to support their so-called "improvements" to SBA.. I know they thought that they were helping the community by sharing their neat "enhancements" but if those enhancements are not sustainable, then how is that helping the community??

Don't get me wrong, the Dynamic Dropdowns has it's usefulness, but the module as it exists today is only half working. To bundle it in with SBA adds only one of two features I would personally like to see included in SBA (though arguably my clients have been able to surprisingly live without):

  1. Sequenced attributes
  2. Improved display of out of stock stock variants (as of today customers only see a variant is out of stock when they add it to their cart)

That said to add Dynamic Dropdowns without FULLY flushing out that module (AKA get it working CORRECTLY), and without proper support from the contributor (who bundles it in with SBA) will only lead to more unsupported versions of SBA.

So yes I agree with Kuroi.. However, I say that adding more unsupported enhancements to SBA is NOT a good long term thing for the whole of the community. I however, am all for SUPPORTED enhancements when the features are useful.. Frankly every "enhancement" made to SBA since Kuroi's last release has added up to not even a "nice to have", but a "think I need" kind of features which IMO do nothing to improve the shop owner's experience in any MEANINGFUL or noticeable way..

kuroi:

Probably not.

If people want to use them together, they can install them together.

But adding more bells and whistles will only make this mod more complicated.

The versions that I issued were supported and tested to professional standards (even though they inherited a data structure that I didn't much like). I carried on supporting it even when I had no clients using it.

I stopped when people started issuing versions with extra features, that while nice, over-complicated it and sometimes didn't work properly.

Integrating more peripheral features lessens still further the chances that somebody else will be willing to pick this up and stay with it.

Don't get me wrong. This is to some extent how open source develops and although it hasn't worked as effectively as it can in this instance, there's nothing wrong with that.

But unless you're willing to stick with it and maintain it, I'd strongly recommend against making it more difficult for anybody else to do so.

25 Jun 2010, 2:50 PM
#935
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: Stocks by attributes

Can any one tell me what order SBA adds the 'products_attributes_id' to the 'stock_attributes' in the ' products_with_attributes_stock ' table.
I have some with one attr. some with two, and others with three. I have written a python script to up date the stock from my Epos database using a custom stockcode in the 'products_with_attributes_stock' table. But it is not clear as how SBA uses the order, as the order does seem to differ.

26 Jun 2010, 8:58 AM
#936
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: Stocks by attributes

kuroi could you advise me as you seem to have a good understanding of this mod.
Further to my last message this is driving me mad, there doesn't seem to be a logic to how the attribute values are indexed in the 'stock_attributes' column.

If I enter via SBA in admin I get some attributes for the example of the Mysql table:

1125	1075	14024,14025	2	P/GAB/D/BL/350
1126	1075	14013,14025	1	P/GAB/D/BL/360
1127	1075	14014,14025	1	P/GAB/D/BL/370
1128	1075	14015,14025	3	P/GAB/D/BL/380
1129	1075	14016,14025	1	P/GAB/D/BL/390
1131	1075	15085,14025	3	P/GAB/BK/D/410
1132	1075	15086,14025	4	P/GAB/BK/D/420

And some :

1166	1075	14025,15084	0  stockcode_to_add	 
1167	1075	14025,16527	1   stockcode_to_add	 

As you will see they are all for the same product, I have size and fitting(Ref 14025) as attr's, First Size then Fitting(Ref 14025). In the second example it has been reversed so it is Fitting(Ref 14025) and Size. I can not see why SBA does this, can you shed a light on it. I have added a custom field in this table for a stock_code which I add remotely for updating the stock levels.

Many thanks
Andrew

27 Jun 2010, 5:34 AM
#937
mb1 avatar

mb1

Totally Zenned

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

Re: Stocks by attributes

thanks for the updated version it seems to be working great

30 Jun 2010, 6:34 PM
#938
mb1 avatar

mb1

Totally Zenned

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

Re: Stocks by attributes

i ran into this issue just curious if you might now if it's stock by attributes related

http://www.zen-cart.com/forum/showthread.php?t=158343

see post # 5 and 6

30 Jun 2010, 7:37 PM
#939
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

MB1:

i ran into this issue just curious if you might now if it's stock by attributes related

http://www.zen-cart.com/forum/showthread.php?t=158343

see post # 5 and 6Not seeing anything there that is related to stock by attributes. Looks like some sort of group pricing mod.

1 Jul 2010, 6:16 PM
#940
p1lot avatar

p1lot

New Zenner

Join Date:
May 2009
Posts:
69
Plugin Contributions:
0

Re: Stocks by attributes

the ideaset file merge is buggy, it's only one line in the shopping_cart header.php.

I experienced this by a wrong behavior of "Show available stock level in cart when less than order". The variable $product['flagStockCheck'] has never been set and thus zen cart couldn't display the "out of stock" or the "quantity in stock" (if quantity in SC is higher than quantity in stock).

Line 157 in header_php.php fixed:
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity'], $attributes);

in the original file, the $attributes was missing.

I hope this is helpful.