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 541 to 560 of 3,609
25 Nov 2008, 11:48 AM
#541
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

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

Is this possible with this module, anyone?
If not is there another module better suited? Thanks

25 Nov 2008, 11:53 AM
#542
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

Not directly with this mod, but it can be extended to do it. It's discussed several times in this thread already and there are pointers to information needed in the mod's FAQ.

25 Nov 2008, 3:37 PM
#543
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

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

Oops, sorry I must've missed it. Will take another look.
Thanks

25 Nov 2008, 3:55 PM
#544
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

For historical reasons, two big support threads developed for this mod ... worth looking (make that searching) in both. A good search term for this is "Grayson", though you would need to read on from there, as later posts explain further changes as a result of amendments to Zen Cart's structure in later versions.

25 Nov 2008, 6:46 PM
#545
wendyshirai avatar

wendyshirai

New Zenner

Join Date:
Sep 2008
Posts:
12
Plugin Contributions:
0

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

kuroi:

Mod allowing checkout when there's insufficient stock, even when the Admin Settings say not to.

That would be this bead I think. The problem has been dealt with and is gone.

As Ellie observes, quite a few people have complained about this problem and so I have recently gone behind a few of their sites to look into this. In every case the issue has proven to be that not all the files needed by the mod had been installed.

The quick test for other people having this problem is to download the includes/classes/order.php file from their site. If line 8 doesn't say something like the line below then there is a problem with the installation.

This is most likely due to a problem with the way in which the files are being FTP'd. Most likely because it involves overwriting some existing Zen Cart files and your FTP client may need you to confirm that you wish to do this. It's even possible that some FTP clients assume that the mod's files with an earlier timestamp than a later Zen Cart installation are less current than the files already there and just ignore the older but vital files.

However, whatever the reason, anybody else tempted to post on this problem should first check that they have the correct version of the above file installed on their site.
I know this has been repeatedly diagnosed as files not being installed properly but I've done everything I can think of and I still can't get this mod to work. This is not my first attempt at installing a mod before and i've never had a problem! I have zen cart vs. 1.3.8a and I installed the Stock by Attribute 4.7MULTIADD (downloaded a week ago from the contrib page) I use DreamWeaver for my uploads but I have also tried transferring the files through windows explorer. I have the site in maintenance mode but this is the address: https://www.jensonsstore.com/store

And my orders.php file says " * @version $Id: order.php 0000 2007-12-02 00:00:00Z kuroi $"

No matter what I do it doesn't control attribute stock only the product stock.

My customer wanted this site up tomorrow so they can get in on some of the christmas shopping that starts this weekend and be able to notify customers before they go on vacation! I've been struggling with this for 4 days!!!

25 Nov 2008, 7:03 PM
#546
wendyshirai avatar

wendyshirai

New Zenner

Join Date:
Sep 2008
Posts:
12
Plugin Contributions:
0

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

Nevermind. I gave it one more attempt and it is finally working. not sure what i did different from the last 10 times i tried. but TG it's working now!

26 Nov 2008, 11:22 PM
#547
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

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

I've just trawled through 55 pages, 548 messages and lost about 5 hours of my life to this thread (not to mention the previous older thread too) in order to make the changes I wanted to the stock by attributes mod.
From start to end kuroi has provided regular and excellent support for this mod which, through no fault of his own, is far from perfect but nonetheless essential for many of us.

kuroi, I just want to doff my hat in your direction. Because f**k me, you've spent a lot of time on these forums, amassed an almost unfathomable number of posts and have a lot of patience for a lot of forum users who take a lot and give back little.

So seriously, thank you. Lets hope SbA and Zen Cart 1.4 come sooner rather than later because I think you're about ready for retirement.

On another note, anyone know how I can move the [1 in stock] to the end of the menu AFTER the price in the drop down menu...
Example of what I mean here:
http://www.tradersupplies.co.uk/index.php?main_page=product_info&cPath=82_83&products_id=273

It seems a bit odd how the stock number comes before the price. I know Grayson posted a solution to this but his modifications to attributes.php don't seem to work on the latest version of SbA.

26 Nov 2008, 11:30 PM
#548
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

Aw shucks :blush:

I've never actually done what you've already suceeded in doing (never had the need) so this is a complete stab in the dark, but is there anything at around about line 31-32 of tpl_modules_attributes.php that might help you?

P.S. Grayson is a lady.

27 Nov 2008, 9:01 PM
#549
laurenjj avatar

laurenjj

New Zenner

Join Date:
Sep 2008
Posts:
80
Plugin Contributions:
0

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

kuroi:

Mod allowing checkout when there's insufficient stock, even when the Admin Settings say not to.

That would be this bead I think. The problem has been dealt with and is gone.

As Ellie observes, quite a few people have complained about this problem and so I have recently gone behind a few of their sites to look into this. In every case the issue has proven to be that not all the files needed by the mod had been installed.

The quick test for other people having this problem is to download the includes/classes/order.php file from their site. If line 8 doesn't say something like the line below then there is a problem with the installation.

This is most likely due to a problem with the way in which the files are being FTP'd. Most likely because it involves overwriting some existing Zen Cart files and your FTP client may need you to confirm that you wish to do this. It's even possible that some FTP clients assume that the mod's files with an earlier timestamp than a later Zen Cart installation are less current than the files already there and just ignore the older but vital files.

However, whatever the reason, anybody else tempted to post on this problem should first check that they have the correct version of the above file installed on their site.
Hi. I'm having the same problem and it's not the order.php file... :( Everything else seems to be working so before I start messing with files, any idea which ones may be the culprit?

27 Nov 2008, 11:10 PM
#550
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

laurenjj:

Hi. I'm having the same problem and it's not the order.php file... :( Everything else seems to be working so before I start messing with files, any idea which ones may be the culprit?The other problem that has been seen occasionally is the presence of backup files mixed with the live files. Created either by the person doing then installation in case they want to go back, or automatically by an FTP client, these files are sometime inditinguishable by Zen Cart from the original files and both get executed. If the backup gets executed 2nd it can undo the work done by the file installed as part of the mod.

27 Nov 2008, 11:29 PM
#551
laurenjj avatar

laurenjj

New Zenner

Join Date:
Sep 2008
Posts:
80
Plugin Contributions:
0

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

kuroi:

The other problem that has been seen occasionally is the presence of backup files mixed with the live files. Created either by the person doing then installation in case they want to go back, or automatically by an FTP client, these files are sometime inditinguishable by Zen Cart from the original files and both get executed. If the backup gets executed 2nd it can undo the work done by the file installed as part of the mod.

Hmmm... but how is that possible if only one file with the same name is allowed?

27 Nov 2008, 11:39 PM
#552
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

laurenjj:

Hmmm... but how is that possible if only one file with the same name is allowed?:smile:
Who said they were named the same? They're usually renamed slightly, but their very presence in certain locations means they get swept up and executed, irrespective of the name.

28 Nov 2008, 11:56 AM
#553
aruleal avatar

aruleal

New Zenner

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

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

Hello. I recently installed the stock by attribute following the directions on the readme.
I've noticed that I've added a bunch of php files to the main directory as well as overwrite several core files.

I've read on other posts to always use the overide system but does this not apply to stock by attributes?

My concerns stem primarily from the likelihood of upgrading to a new version of zen cart in the future. Would I have to back up files i uploaded to install stock by attribute and put them back in after I make the upgrade?

hope anybody can help!!

28 Nov 2008, 2:42 PM
#554
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

aruleal:

Hello. I recently installed the stock by attribute following the directions on the readme.
I've noticed that I've added a bunch of php files to the main directory as well as overwrite several core files.

I've read on other posts to always use the overide system but does this not apply to stock by attributes?

My concerns stem primarily from the likelihood of upgrading to a new version of zen cart in the future. Would I have to back up files i uploaded to install stock by attribute and put them back in after I make the upgrade?

hope anybody can help!!Stock by Atributes can only over-ride over-rideable files and since stock management goes right to the heart of the system in places, not all the files are over-rideable.

More than that, it is unlikely that the current versiuon of stock by attribute would work with future releases of Zen Cart. It generally needs updating with each new release.

That's the negative. The positive is that from the next major release, you won't have to worry about this at all, since the functionality will be built into the core code, so no add-in will be needed.

29 Nov 2008, 11:12 PM
#555
skybluepunk avatar

skybluepunk

New Zenner

Join Date:
Oct 2008
Posts:
28
Plugin Contributions:
0

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

Could anyone tell me whether the problems I describe below are caused by Stock by Attribute, or some other ZC config setting?

I'm having the following problems in IE7 only - Firefox is fine:

  • The 'Please select colour:' attribute isn't shown as selected by default in IE7.
  • If the customer just clicks 'Add to cart' without selecting a colour, ZenCart allows him to checkout without displaying an error.
  • Even if the customer DOES select an attribute, it is not passed through to the checkout, and is not displayed on the order.
  • Stock levels are not adjusted.

[I am using Stock by Attribute 4.7MULTIADD, I have 'Please select colour:' as the Default attribute, set to 'Display Only'.]

29 Nov 2008, 11:52 PM
#556
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

@skybluepunk

This sounds like a problem with how you have set your attributes up rather than a Stock by Attributes problem. I'd take a look at that default value as a I suspect that's your problem.

When you say that you've set it up as "display only" do you mean "read-only"? If so, then Zen Cart wouldn't expect customers to select a value.

30 Nov 2008, 12:16 AM
#557
stog avatar

stog

New Zenner

Join Date:
Aug 2008
Posts:
4
Plugin Contributions:
0

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

First off I must thank for a great mod as this has been most useful for me on my own website.
I have just finished writing stand alone add on to this mod to do bulk update of stock value and will be submitting it soon.
When I was writing is I created a search and sort function in it.
As I was putting more stock on recently I was having to scroll right down to bottom of screen to add more attribute when I thought I might try to add the search and sort function I had just written to file products_with_attributes_stock.php.

I have now done this and seam to be working OK.

My question is where best to submit it as it only a small update would it be best to as full upload or on forum section

Regards

Steve

30 Nov 2008, 12:22 AM
#558
skybluepunk avatar

skybluepunk

New Zenner

Join Date:
Oct 2008
Posts:
28
Plugin Contributions:
0

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

Hi Kuroi,

No, I don't mean read-only.

I mean that on the Attributes Controller page I have selected the options "Display only" and "Default". I understand that this is the preferred method to force the customer to select an attribute.

30 Nov 2008, 12:43 AM
#559
skybluepunk avatar

skybluepunk

New Zenner

Join Date:
Oct 2008
Posts:
28
Plugin Contributions:
0

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

Hi Kuroi,

As a total coincidence, the solution for my problem has just been posted on the Wishpot Wishlist Management support thread

amazeme:

yes - can confirm this problem. works ok in Firefox but IE prevents ability to add to cart.....BUT only if you have the wishpot code included anywhere BEFORE the attributes module code in tpl_product_info_display.php

I have just relocated the Wishpot code, and all appears to be working fine now.

So, it was nothing to do with Stock by Attributes :-)

Thanks for your help,
Sheila

2 Dec 2008, 8:29 PM
#560
tatebn avatar

tatebn

New Zenner

Join Date:
Dec 2008
Posts:
40
Plugin Contributions:
0

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

I have 2 questions. First off, is it possible to combine attributes, such as color and size, into one dropdown? Secondly how do I go about displaying QTY/In Stock status on the product info page per variant instead of per product?

Thanks,
Brandon