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

Results 641 to 660 of 3,609
18 May 2009, 9:46 PM
#641
jazzyp avatar

jazzyp

New Zenner

Join Date:
Feb 2009
Location:
UK
Posts:
29
Plugin Contributions:
0

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

I've just installed 4.7ajax on my test site.

Having a problem with being able to check out with more items than are actually in stock.

For example, I have 6 sachets of Grape kool aid. This is set up as an attribute along with other flavours. It will let me checkout with 7 or more sachets of grape.

But, if I put in a number greater than the total number of kool aid sachets in stock altogether, it won't let me check out.

How do I change it so that it prevents check out based on individual stock attributes, rather than the total number of stock in all attributes?

(Hope that makes sense!) :blink:

19 May 2009, 7:56 PM
#642
jazzyp avatar

jazzyp

New Zenner

Join Date:
Feb 2009
Location:
UK
Posts:
29
Plugin Contributions:
0

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

Jazzyp:

I've just installed 4.7ajax on my test site.

Having a problem with being able to check out with more items than are actually in stock.

For example, I have 6 sachets of Grape kool aid. This is set up as an attribute along with other flavours. It will let me checkout with 7 or more sachets of grape.

But, if I put in a number greater than the total number of kool aid sachets in stock altogether, it won't let me check out.

How do I change it so that it prevents check out based on individual stock attributes, rather than the total number of stock in all attributes?

(Hope that makes sense!) :blink:

Anyone? Please?!

I've uploaded (via Cpanel not FTP) all the SBA 4.7ajax files again and still same problem.

What else should I be looking at?

21 May 2009, 1:45 AM
#643
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Jazzyp:

Anyone? Please?!

I've uploaded (via Cpanel not FTP) all the SBA 4.7ajax files again and still same problem.

What else should I be looking at?I would have to test it to know for sure, but I believe this is one of the shortcomings of this mod.. This really seems to be just how it works..

21 May 2009, 11:45 AM
#644
jazzyp avatar

jazzyp

New Zenner

Join Date:
Feb 2009
Location:
UK
Posts:
29
Plugin Contributions:
0

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

DivaVocals:

I would have to test it to know for sure, but I believe this is one of the shortcomings of this mod.. This really seems to be just how it works..

Really? That's a pretty big shortcoming for something that's supposed to control inventory!

21 May 2009, 11:54 AM
#645
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

Jazzyp:

Really? That's a pretty big shortcoming for something that's supposed to control inventory!Seems to be a problem that people are having specifically with AJAX version. I can confirm that the other two current versions don't have it, but haven't personally used the AJAX version.

21 May 2009, 12:39 PM
#646
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

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

I have sucessfully installed.

I tried on one product:

Colour - Black - 10
Colour - ACU - 10
Colour - CYB - 10
Total qty = 30

When i test sell one black. Total quantity becomes 29, BUT black attribute is still 10?
I clicked the snyc quantity and the total quantity became 30 again :P

Is this normal??

21 May 2009, 1:38 PM
#647
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

XxDrAg0nxX:

Is this normal??No. It means that it's not installed properly so that stock tracking is still taking place at product rather than product variant level. Double check your includes/classes/order.php file. Make sure you have the one that comes with the mod installed and there are no copies or backups in that folder.

21 May 2009, 1:45 PM
#648
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

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

Hmm I just double checked the downloaded files, there is no override for the includes/classes/order.php

However there is one in admin/orders.php

21 May 2009, 1:49 PM
#649
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

XxDrAg0nxX:

Hmm I just double checked the downloaded files, there is no override for the includes/classes/order.phpNot quite sure what you mean here. Zen Cart doesn't currently support over-riding of classes, so the file in the base distribution needs to be replaced by the one that comes with the version of the mod that you are using (you haven't actually said which that is).

21 May 2009, 1:56 PM
#650
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

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

kuroi:

Not quite sure what you mean here. Zen Cart doesn't currently support over-riding of classes, so the file in the base distribution needs to be replaced by the one that comes with the version of the mod that you are using (you haven't actually said which that is).

Sorry I didnt realise there were different versions.
I am using the AJAX one.

I just double checked the uploaded AJAX one from the server, there is definately NO includes/classes/order.php

I downloaded the Multiadd version, there IS an includes/classes/order.php

I just copied just the order.php over, and it worked fine after that.

Am I the only one who is experiencing the missing file from the AJAX version? :(

21 May 2009, 2:02 PM
#651
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

XxDrAg0nxX:

Am I the only one who is experiencing the missing file from the AJAX version? :(I just downloaded it and took a look, and you are not alone. That rather key file does seem to be missing from the distribution. Other posts in this forum suggest that there are some other formatting wrinkles too. Wonder if there might be other files missing. Shame, because it's basically a good idea.

21 May 2009, 2:18 PM
#652
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

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

Umm... I think that is not the only file missing... lol...

I think i am gonna switch :P

21 May 2009, 2:21 PM
#653
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

XxDrAg0nxX:

Umm... I think that is not the only file missing... lol...

I think i am gonna switch :PIt may be worthwhile installing one of the vanilla 4.7 first (definitely not missing files and without at least one bug in the multiadd version) and then installing the AJAX version (which is theoretically based on vanilla) over the top. That ordering might give you AJAX without gaps.

21 May 2009, 2:30 PM
#654
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

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

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

kuroi:

It may be worthwhile installing one of the vanilla 4.7 first (definitely not missing files and without at least one bug in the multiadd version) and then installing the AJAX version (which is theoretically based on vanilla) over the top. That ordering might give you AJAX without gaps.

Ok I think i will do just that :D

BTW I just tested something, if I were to sell black -2, and if I were to cancel the order, the total quantity is restocked +2, back to 30, but black attribute is still short of 2...

Is that normal?

21 May 2009, 5:40 PM
#655
stevenk avatar

stevenk

New Zenner

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

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

XxDrAg0nxX:

Sorry I didnt realise there were different versions.
I am using the AJAX one.

I just double checked the uploaded AJAX one from the server, there is definately NO includes/classes/order.php

I downloaded the Multiadd version, there IS an includes/classes/order.php

I just copied just the order.php over, and it worked fine after that.

Am I the only one who is experiencing the missing file from the AJAX version? :(

I'm having the same problem. Can you please provide the link or tell me where to go to download the Mutiadd version. Thanks

21 May 2009, 5:45 PM
#656
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

stevenk:

I'm having the same problem. Can you please provide the link or tell me where to go to download the Mutiadd version. ThanksSame place you got the AJAX version. Just scan down the list of releases. It's immediately below the AJAX one in the revision history.

22 May 2009, 8:17 AM
#657
jazzyp avatar

jazzyp

New Zenner

Join Date:
Feb 2009
Location:
UK
Posts:
29
Plugin Contributions:
0

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

kuroi:

I just downloaded it and took a look, and you are not alone. That rather key file does seem to be missing from the distribution. Other posts in this forum suggest that there are some other formatting wrinkles too. Wonder if there might be other files missing. Shame, because it's basically a good idea.

I compared the files delivered by both SBA 4.7MULTIADD and 4.7ajax. From what I can tell the following files are missing from ajax:

admin\includes\stock_attributes.css
admin\includes\stylesheet.css
includes\classes\order.php

22 May 2009, 9:08 AM
#658
jazzyp avatar

jazzyp

New Zenner

Join Date:
Feb 2009
Location:
UK
Posts:
29
Plugin Contributions:
0

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

I've removed the ajax files and uploaded clean 4.7MULTIADD, but it is still letting me checkout with 7 attribute stock items when I only have 6 in stock.

So, now I'm going to remove SBA completely and start again with 4.7 vanilla. Wish me luck!

22 May 2009, 9:55 AM
#659
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

Jazzyp:

I compared the files delivered by both SBA 4.7MULTIADD and 4.7ajax. From what I can tell the following files are missing from ajax:

admin\includes\stock_attributes.css
admin\includes\stylesheet.css
includes\classes\order.phpThe absence of those files would completely explain both the bugs, i.e. layout and failure to manage stock at the attribute level, that have been observed in in the AJAX version.

22 May 2009, 9:59 AM
#660
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

Jazzyp:

I've removed the ajax files and uploaded clean 4.7MULTIADD, but it is still letting me checkout with 7 attribute stock items when I only have 6 in stock.

So, now I'm going to remove SBA completely and start again with 4.7 vanilla. Wish me luck!
No luck wished (shouldn't be necessary), just advice ...

  1. ensure that your old includes/classes/order.php file gets over-written by the new one (sometimes FTP tools don't over-write files that are already there)
  2. check that you have your stock settings configured both to check stock and to prevent checkout if its too low (Admin > Configuration > Stock Settings)
  3. don't leave any backups sitting around in your classes folder (sometimes FTP tools create these automatically)