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

Results 1,601 to 1,620 of 3,609
31 Oct 2012, 7:06 PM
#1601
jasperandjax avatar

jasperandjax

New Zenner

Join Date:
Mar 2012
Posts:
14
Plugin Contributions:
0

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

Ok I have searched and I have read... but can't seem to find the answer to this one.. I'm running Zencart 1.5.1 and have attempted to install the stock by attributes 1.4.14 (which got from the plug-ins page) and for some reason the Catalog->Products with Attributes Stock option is not listed in the Admin screen ??? I have double triple checked that all the files are in the right spots... please help.

31 Oct 2012, 7:22 PM
#1602
woodlandsprite avatar

woodlandsprite

Zen Follower

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

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

you've installed a version that is not compatible with Zencart 1.5.1.

you should go here for the most current Beta version.

31 Oct 2012, 7:30 PM
#1603
jasperandjax avatar

jasperandjax

New Zenner

Join Date:
Mar 2012
Posts:
14
Plugin Contributions:
0

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

woodlandsprite:

you've installed a version that is not compatible with Zencart 1.5.1.

you should go here for the most current Beta version.

Thanks I figured it was something simple... I could have sworn that I had even tried to search for a version for 1.5 !!! its in there now.. Next step is to figure out how to configure everything. :) THanks again !!!

27 Dec 2012, 4:40 PM
#1604
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

Hi all, hope you can help. had this mod ages and only just noticed this so not sure how long it has been going on.

When I am in the admin and go to products_with_attributes_stock.php if i scroll all the way to the bottom, the table goes all messed up and all the entries end up as text with no hyperlinks on the add and delete etc??

Really not sure whats going on or why its doing this. Has anyone else come across this before?

Kind Regards
Phil

27 Dec 2012, 4:44 PM
#1605
philip937 avatar

philip937

Totally Zenned

Join Date:
Aug 2009
Location:
Bedford, England
Posts:
968
Plugin Contributions:
0

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

philip937:

Hi all, hope you can help. had this mod ages and only just noticed this so not sure how long it has been going on.

When I am in the admin and go to products_with_attributes_stock.php if i scroll all the way to the bottom, the table goes all messed up and all the entries end up as text with no hyperlinks on the add and delete etc??

Really not sure whats going on or why its doing this. Has anyone else come across this before?

Kind Regards
Phil

just realised its only happening with Firefox! Safari works fine

6 Feb 2013, 1:31 PM
#1606
rizla avatar

rizla

Zen Follower

Join Date:
Sep 2010
Posts:
449
Plugin Contributions:
0

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

Could someone help?
I have installe SBA 1.4.13 and from the Admin all apeare ok. Im on v1.3.9h

If I set Stock > Ckeck Stock Level = True, then the 2 items I have setup in SBA show as out of stock. I get the warning even if I order one item.

Have I missed something obvious?

8 Feb 2013, 6:43 AM
#1607
n_t_r avatar

n_t_r

New Zenner

Join Date:
Mar 2011
Location:
Sydney Australia
Posts:
30
Plugin Contributions:
0

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

Can someone assist....I sell designs that are printed on white shirts when a purchase of specific size shirt is made. So I have a common pool of white size 10, 12, 14 etc can this mod be configured such that I don't have to allocate shirt stock to each design, but rather show the qty of the shirts for certain sizes from a pool of stock shared amongst many products (designs) for sale? I tried to explain this here too, before seeing this thread....

https://www.zen-cart.com/showthread.php?205672-Stock-by-Attributes-managing-generic-stock-used-to-sell-different-products

All input appreciated!!#

21 Feb 2013, 3:26 AM
#1608
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

Ok Ive looked for quite a while through the thread but havent found an answer to this..
AND its a question that comes up a lot, so please dont groan heh

I need to display the stock levels next to the attributes, well an out of stock notice next to any that are out of stock.
I saw in the wiki how it can be done for products with one attribute, but all our products have at least 2.

I saw one forum post state the following

This is tricky to do, it either requires a page reload whenever an attribute is picked (to check stock), or some sort of AJAX solution.

I do have an idea to handle this. Instead of showing a form option for each seperate attribute, it would show a dropdown offering all permutions of attribute. This way we could check stock on each permutation and show or not show it depending on its stock.

But there was nothing further on that.

So 2 questions, can it be done at all using this mod?
If not what mod should I use that can do this?

Im on 1.39h

21 Feb 2013, 10:25 PM
#1610
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

woodlandsprite:

Yes this mod will do that but requires modification.
Refer to the WIKI for instructions
http://www.zen-cart.com/wiki/index.php/Contribution:Stock_by_Attributes

Are you referring to this?

How can I show the amount of stock available next to each attribute on the product information page?

This is relatively straightforward if you have only a single attribute such as size of color for each product. Code for this is proposed in this archive thread[1]. Seek out post #110 by Grayson, and her correction in #132 and apply the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php

Thats for a single attribute only, and wont work for me as I outlined in my post.
Or did I miss something else on the WIKI page?

21 Feb 2013, 10:48 PM
#1611
woodlandsprite avatar

woodlandsprite

Zen Follower

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

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

I believe if one of the attributes is something like customizable text and the other one is size or color, then it should work. but if you somehow have cascading attributes (like Color then size or vice versa), I don't think it works though someone with more coding experience may have managed to get something functional for that type of situation

21 Feb 2013, 11:56 PM
#1612
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

Yes, attributes that define the product like colour, size etc.
If this mod cant do this, can anyone point me to one that can.

23 Feb 2013, 3:21 AM
#1613
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

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

Chargin:

Yes, attributes that define the product like colour, size etc.
If this mod cant do this, can anyone point me to one that can.

With zen cart 1.3.9h I use this mod, v4.9 along with Product Attribute Grid 1.1.1 to get this:
Attachment 11985

23 Feb 2013, 11:28 PM
#1614
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

soxophoneplayer:

With zen cart 1.3.9h I use this mod, v4.9 along with Product Attribute Grid 1.1.1 to get this:
Attachment 11985

Thats interesting, we couldnt use the grid format though, we use a lot of options 8 colours 8 sizes is very common for us. But obviously the info is there and can be displayed, I just need this in the standard dropdown list format with stock levels next to each one.
Of course the dynamic requirement makes it tough, ie depending on which attribute you select from one dropdown changes the other dropdown... your grid system doesnt have to deal with that.

So has this been done before?

1 Apr 2013, 6:22 AM
#1615
nighkidz2 avatar

nighkidz2

New Zenner

Join Date:
Jan 2013
Posts:
9
Plugin Contributions:
0

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

Hi,
I downloaded the contribution from http://www.zen-cart.com/downloads.php?do=file&id=202.
I applied both Version: 1.4.13 and Version: 1.4.14. When I went back to admin and try to add an item, I only see Product Priced by Attributes.

Would you please advise?

3 Apr 2013, 11:38 PM
#1616
muteyaar avatar

muteyaar

Zen Follower

Join Date:
Oct 2007
Posts:
134
Plugin Contributions:
0

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

hi Kuroi,

I tried hard, but could not find anywhere:

how can i use attributes by stock for a specific category only?

I mean I am now using "attributes" to some categories, but want "stock by attributes" for one category only.

I am using zen cart version 1.3.7

please reply soon.
best regards,

26 Apr 2013, 8:41 AM
#1617
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

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

Regarding the problem with low stock warning missing for products in shopping cart, it seems like some code has been los on it's way in the versions.

Re-adding this at line 85-93 in includes/modules/pages/shopping_cart/header_php.php seems to solve the issue (why it was removed I don't know):

  if (STOCK_CHECK == 'true') {
    $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
    if ($flagStockCheck == true) {
      $flagAnyOutOfStock = true;
    }
	  $stockAvailable = zen_get_products_stock($products[$i]['id']);
  }
29 Apr 2013, 6:39 AM
#1618
kiav avatar

kiav

New Zenner

Join Date:
Mar 2012
Posts:
6
Plugin Contributions:
0

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

rued:

Regarding the problem with low stock warning missing for products in shopping cart, it seems like some code has been los on it's way in the versions.

Re-adding this at line 85-93 in includes/modules/pages/shopping_cart/header_php.php seems to solve the issue (why it was removed I don't know):

if (STOCK_CHECK == 'true') {
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
if ($flagStockCheck == true) {
$flagAnyOutOfStock = true;
}
$stockAvailable = zen_get_products_stock($products[$i]['id']);
}



I have the same problem, low stock warning is missing in shopping cart and no picture "out of stock" is visible. Problem is I already have this code in the file. Is there any other code missing? Does anyone else have this problem.
29 Apr 2013, 7:03 AM
#1619
kiav avatar

kiav

New Zenner

Join Date:
Mar 2012
Posts:
6
Plugin Contributions:
0

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

KiaV:

I have the same problem, low stock warning is missing in shopping cart and no picture "out of stock" is visible. Problem is I already have this code in the file. Is there any other code missing? Does anyone else have this problem.

I have to ask my question in another way. Products with attributes is working fine. You can't checkout when out of stock. But a lot of my products don't have attributes and with these you can checkout when stock is zero or below. I have tried to serch for this question but can't find an answer. Do I have to set attributes to all products to make this addon work?

29 Apr 2013, 7:30 PM
#1620
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

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

Read through this whole thread (mod is flawed) make sure you have the latest as linked from Robophungs posts, and remember to check your settings under Configuration > Stock