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

Results 1,981 to 2,000 of 3,609
2 Nov 2014, 4:17 PM
#1981
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

What you ask, to change the description based upon the attribute selected, cannot be done with this plugin (nor any I'm familiar with).

2 Nov 2014, 9:55 PM
#1982
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

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

How to get attributes in Google merchant feeder using stock by attribute? I have installed it but its still not including product with attribute in feed file.

10 Nov 2014, 10:30 PM
#1984
k1ra avatar

k1ra

New Zenner

Join Date:
Jul 2013
Posts:
57
Plugin Contributions:
0

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

Hello and thanks again for this mod! I've been using the 1.5.x TEST version and noticed today that it is no longer working correctly, so installed the latest module from the Zencart Plugins page, however, behaviour is the same:

  1. Existing attributes with quantities will not update
  2. Newly added attributes/products will not display attributes in the SBA page.

Please see attached screenshots for more clarity.

Attachment 14683Attachment 14682Attachment 14684

Any help will be greatly appreciated:yes:

10 Nov 2014, 11:14 PM
#1985
k1ra avatar

k1ra

New Zenner

Join Date:
Jul 2013
Posts:
57
Plugin Contributions:
0

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

Perhaps a hint, my error log shows:

PHP Warning: Invalid argument supplied for foreach() in /home/username/public_html/admin/products_with_attributes_stock.php on line 510

11 Nov 2014, 2:29 AM
#1986
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

First, rename your admin folder right away. Never post your admin folder name and never use 'admin'.

Second, what is the '1.5.x TEST' version?

Third, what version of Zen Cart are you using?

12 Nov 2014, 11:56 PM
#1987
k1ra avatar

k1ra

New Zenner

Join Date:
Jul 2013
Posts:
57
Plugin Contributions:
0

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

Hello and thanks for your response.

  1. My admin folder is not named 'admin' I did this for sake of posting.
  2. The 1.5.x TEST version was a version in this thread that was like a beta 1.5.3 version of the mod
  3. I'm using the latest zencart version.
13 Nov 2014, 12:47 AM
#1988
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

If you're using Zen Cart 1.5.3, you can try the latest BETA available on GitHub.
https://github.com/potteryhouse/stock_by_attribute_1.5.4

16 Nov 2014, 8:45 PM
#1989
p_m_1 avatar

p_m_1

New Zenner

Join Date:
Nov 2014
Location:
Ontario, Canada
Posts:
3
Plugin Contributions:
0

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

I'm using the latest version of Stock by Attribute on my newly upgraded version of Zencart 1.5.3 from 1.5.1

Some of my drop down menus are not working correctly, allowing you to select "out of stock" items.

This product's drop down menu is working correctly, not allowing your mouse pointer to select "out of "stock" sizes.
http://vaultofdriedbones.com/shop/index.php?main_page=product_info&cPath=1&products_id=1590

However, this product as well as others allows you to select "out of stock" sizes and add them to your shopping cart. The items are out of stock and once added to the shopping cart you cannot proceed with the order until you remove the products with 0 quantities available.
http://vaultofdriedbones.com/shop/index.php?main_page=product_info&cPath=1&products_id=1577

I go through the same steps for each product when creating the products id, the products attributes and then setting the SBA quantities.

Has anyone encountered this problem, and do you know how to fix it?

16 Nov 2014, 8:47 PM
#1990
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

The current version of SBA available from this site is not compatible with Zen Cart 1.5.3. A new version is in testing but has not been released yet.

16 Nov 2014, 8:51 PM
#1991
p_m_1 avatar

p_m_1

New Zenner

Join Date:
Nov 2014
Location:
Ontario, Canada
Posts:
3
Plugin Contributions:
0

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

jeking:

The current version of SBA available from this site is not compatible with Zen Cart 1.5.3. A new version is in testing but has not been released yet.

Ok, thanks for the information.

16 Nov 2014, 9:01 PM
#1992
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

P.M.:

I'm using the latest version of Stock by Attribute on my newly upgraded version of Zencart 1.5.3 from 1.5.1

Some of my drop down menus are not working correctly, allowing you to select "out of stock" items.

This product's drop down menu is working correctly, not allowing your mouse pointer to select "out of "stock" sizes.
http://vaultofdriedbones.com/shop/index.php?main_page=product_info&cPath=1&products_id=1590

However, this product as well as others allows you to select "out of stock" sizes and add them to your shopping cart. The items are out of stock and once added to the shopping cart you cannot proceed with the order until you remove the products with 0 quantities available.
http://vaultofdriedbones.com/shop/index.php?main_page=product_info&cPath=1&products_id=1577

I go through the same steps for each product when creating the products id, the products attributes and then setting the SBA quantities.

Has anyone encountered this problem, and do you know how to fix it?

jeking:

The current version of SBA available from this site is not compatible with Zen Cart 1.5.3. A new version is in testing but has not been released yet.
It may not be the version that is the issue. If you notice the difference in the working/not working versions, the one that is "working has the option values greyed out and the text, while the one that is not working has the text only. What is the difference in option name types between the two? My guess is that the one "not working" is a standard dropdown, while the one "working" has the SBA added dropdown type that allows html control.

16 Nov 2014, 9:53 PM
#1993
p_m_1 avatar

p_m_1

New Zenner

Join Date:
Nov 2014
Location:
Ontario, Canada
Posts:
3
Plugin Contributions:
0

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

mc12345678:

It may not be the version that is the issue. If you notice the difference in the working/not working versions, the one that is "working has the option values greyed out and the text, while the one that is not working has the text only. What is the difference in option name types between the two? My guess is that the one "not working" is a standard dropdown, while the one "working" has the SBA added dropdown type that allows html control.

Thanks for the guess mc12345678, there is only one option name, SIZE, and it looks like I selected "dropdown" in option names and not "SBA select list".

I'm updating the products in "option name" and it is now working correctly. Thank you for your help and time!

4 Dec 2014, 3:38 PM
#1994
sarahl avatar

sarahl

Zen Follower

Join Date:
May 2004
Location:
UK
Posts:
471
Plugin Contributions:
0

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

Hi Jeking - fab module but I am looking for the 1.5.3 version - can I use from github or is it still BETA testing only?

jeking:

If you're using Zen Cart 1.5.3, you can try the latest BETA available on GitHub.
https://github.com/potteryhouse/stock_by_attribute_1.5.4

4 Dec 2014, 3:48 PM
#1995
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

All code on GitHub should be considered as BETA. You're welcome to use it and provide any feedback. Take the necessary precautions, backup or install on a development cart first.

4 Dec 2014, 4:48 PM
#1996
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

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

jeking:

All code on GitHub should be considered as BETA. You're welcome to use it and provide any feedback. Take the necessary precautions, backup or install on a development cart first.

Agree with this fully and ask to take a look at the additional branches off of the master and provide input as well. I've uploaded some additional coding to expand on the functionality/ensure that default zC functionality is not lost for non-SBA tracked product. Awaiting feedback to merge into the master branch.

5 Jan 2015, 8:49 PM
#1997
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

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

I'm testing it on a zencart 1.5.4 install.(development version)
On line 47 includes/classes/order.php there is a typo i think :

if ($this->queryReturnFlag === TRUE) return;

But so far so good. I also use super orders, edit orders and COWOA so it took some merging, because they all change this file.
Only thing i cant seem to get to work is editing directly in "Quantity in stock" field, although the "hint" says its possible.

5 Jan 2015, 9:15 PM
#1998
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

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

karinvd:

I'm testing it on a zencart 1.5.4 install.(development version)
On line 47 includes/classes/order.php there is a typo i think :

if ($this->queryReturnFlag === TRUE) return;

But so far so good. I also use super orders, edit orders and COWOA so it took some merging, because they all change this file.
Only thing i cant seem to get to work is editing directly in "Quantity in stock" field, although the "hint" says its possible.
No type, that's a PHP construct (===) that means "exactly equal to". The return will be taken if and only if the queryReturnFlag value is TRUE -- not 1, not 'true'. If the statement was coded as

if ($this->queryReturnFlag == TRUE) return;

then the return would occur if queryReturnFlag was true or 1 or '1' or 'true' or 'false'. It's a construct used mostly when a variable can contain a "mixed" value (i.e. the value could be true or 1 or 'true').

6 Jan 2015, 4:43 PM
#1999
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

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

Oke thanks, i did not know, i thought == meant exactly equal to. I learned something today :-)

6 Jan 2015, 9:04 PM
#2000
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

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

I had a problem with combination of zen-colorbox2 and SBA. When i used an attribute with a drop down menu, the image did not load. On line 42 of includes\functions\extra_functions\products_with_attributes.php i found the next code which showed on a product page when i used a drop down menu, if i used a check box or a radio button it did not show and zen-colorbox2 worked fine. So i comment this line out.
Wil i get problems with?

	$field = '<script src="'.DIR_WS_TEMPLATES . $template_dir . '/jscript/jquery-1.10.2.min.js"></script>
		  <script type="text/javascript">
	 			$(function(){
					$("#attrib-'.$tmp_attribID.'").on("click", function(){
						$("#SBA_ProductImage").attr("src", $(this).find(":selected").attr("data-src"));
					});
				});
	   </script>';