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

Results 841 to 860 of 3,609
20 Apr 2010, 10:10 AM
#841
kuroi avatar

kuroi

Totally Zenned

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

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

@jage

The products_with_stock_attributes table is connected to the rest of Zen Cart via the products_attribute table.

The comma-delimited list in the stock_attributes column of the products_with_stock_attributes table is a list of products_attributes_ids from the the products_attributes_table.

20 Apr 2010, 10:13 AM
#842
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

feanix02:

Does anyone have a link to this mod in action? I have a few questions regarding how it works from the customers end.

Does it show out of stock on the product page level? Example, 1 item, with 4 attributes being seperate colors, 1 of the colors is out of stock. Does the mod prevent the out of stock color from being added to the shopping cart?That depends on the version. My version doesn't but I believe that was what at least one of the problematic versions released later was trying to achieve.

20 Apr 2010, 10:15 AM
#843
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

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

Hi kuroi

thanks so much for your reply; I really appreciate your time

I did bite the bullet & 'attempt a merge' in the end; initial testing seems ok; but who knows if I did the merge correctly ...so - if you would still have a moment to have a quick look at the attachment?

Yes - I believe my template is some sort of derivative of TM (but not from them) - so (as a side issue) I probably have not much hope of upgrading do I? (especially as I've been having much fun adding lots of mods)

Many many thanks

oh - and ta for the handy tip regarding zipping & attaching files! :smile:

20 Apr 2010, 10:17 AM
#844
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

This mod is tightly integrated with each Zen Cart version, and will need to be upgraded to work properly with Zen Cart 1.3.9a.

Don't
a) install this on a 1.3.9a base until there is an upgraded version available, or
b) upgrade to 1.3.9a if you are dependent on this mod.

20 Apr 2010, 10:28 AM
#845
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

@Green333

That looks fine to me. The key block was the one between lines 109-115 in your file and that's identical to the mod and appropriately located in your file.

The other differences are cosmetic and specific to that template, so you shouldn't have any stock-by-attribute problems from this merge.

20 Apr 2010, 10:35 AM
#846
green333 avatar

green333

Zen Follower

Join Date:
Mar 2008
Location:
QLD - Aussie
Posts:
190
Plugin Contributions:
0

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

kuroi,
Thank you so much :hug:
I really appreciate your feedback
(Hopefully one day merging won't feel so daunting & 'scary')

20 Apr 2010, 5:32 PM
#847
feanix02 avatar

feanix02

New Zenner

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

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

kuroi:

That depends on the version. My version doesn't but I believe that was what at least one of the problematic versions released later was trying to achieve.

Thank you for the quick reply!

At which point in the checkout process will the customer be notified the item is out of stock? Also, will it prevent the item from being purchased if it's out of stock, or still allow it and provide a warning.

20 Apr 2010, 6:41 PM
#848
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

feanix02:

Thank you for the quick reply!

At which point in the checkout process will the customer be notified the item is out of stock? Also, will it prevent the item from being purchased if it's out of stock, or still allow it and provide a warning.First question depends upon which version of Stock by Attributes you use. The one I was maintaining notifies customers in the shopping cart, other later ones tries to move this to the product page (a more appropriate place) but appear to have found it more complicated than they expected.

Whether or not a customer can checkout if the selected combination is out of stock depends on whether you set the Zen Cart switches to allow it or not. For some sites back ordering is appropriate, for others not, so Zen Cart supports both.

27 Apr 2010, 10:22 PM
#849
lingdaydreams avatar

lingdaydreams

New Zenner

Join Date:
Apr 2010
Location:
Wheaton, IL
Posts:
4
Plugin Contributions:
0

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

Hello,

I've looked through this thread and tried searching for answers, but I couldn't find any!

Please help!

I installed the Stock by Attributes and I didn't work so I removed it. I must have installed it wrong, but the client's shop disappeared! :blink: So I put my back up files back onto the server, but now half of the page is missing! :frusty:

Here is their store:
http://thequeenofcouture.com/zencart/index.php?main_page=product_info&cPath=5&products_id=49

Thanks for anyone's help in advance! I'm clueless!

28 Apr 2010, 9:20 AM
#850
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

This will be a syntax error or missing file causing PHP to crash. This FAQ entry may help to track down the source of the problem.

29 Apr 2010, 4:03 AM
#851
lingdaydreams avatar

lingdaydreams

New Zenner

Join Date:
Apr 2010
Location:
Wheaton, IL
Posts:
4
Plugin Contributions:
0

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

Thank you!!!! I got it fixed!

I reinstalled it, but now come across this problem:

1146 Table 'deb1011805361828.products_attributes' doesn't exist
in:
[SELECT pot.products_options_types_name AS name FROM products_attributes pa INNER JOIN (products_options po INNER JOIN products_options_types pot ON po.products_options_type = pot.products_options_types_id) ON pa.options_id = po.products_options_id WHERE pa.products_attributes_id = 1]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I went into Tools > Install SQL Patches
Selected...stock_attribute.sql
Upload!

It was successful, but then the problem above showed up. >_<

Does it get any easier from here? Seems like its one problem after another with me! :no:

29 Apr 2010, 8:22 AM
#852
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

That's a core Zen Cart not altered by this mod, which only reads from it to find out about the attributes. Is it possible that you deleted it when trying to uninstall this mod earlier?

29 Apr 2010, 6:53 PM
#853
lingdaydreams avatar

lingdaydreams

New Zenner

Join Date:
Apr 2010
Location:
Wheaton, IL
Posts:
4
Plugin Contributions:
0

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

kuroi:

That's a core Zen Cart not altered by this mod, which only reads from it to find out about the attributes. Is it possible that you deleted it when trying to uninstall this mod earlier?

I reinstalled it on a fresh zen cart download because I was afraid to mess up anything again.

Do you remember purchasing something like Store Manager for zen cart?

30 Apr 2010, 1:17 AM
#854
lingdaydreams avatar

lingdaydreams

New Zenner

Join Date:
Apr 2010
Location:
Wheaton, IL
Posts:
4
Plugin Contributions:
0

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

lingdaydreams:

I reinstalled it on a fresh zen cart download because I was afraid to mess up anything again.

Do you remember purchasing something like Store Manager for zen cart?

Opps *recommend!

30 Apr 2010, 9:04 AM
#855
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

This thread is already 850+ posts long with questions related to stock by attributes. To keep it manageable, please don't digress into discussion of other modules.

3 May 2010, 7:21 PM
#856
animedown avatar

animedown

New Zenner

Join Date:
Jul 2007
Posts:
7
Plugin Contributions:
0

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

Great add-on! This module works great with my cosmetic contact lens website with one attribute. I used it to keep track of the quantity of the different prescription contact lens.

Is there any way to get this module to support combination of attributes in instead of variations.

For instance, I am using this module for a cosmetic contact lens site. Right now the module works well with one drop down box of different prescription degrees for contact lens on the product page. But I want to make the product page to be able to support two drop down boxes. Where one drop down box for left eye degrees and another drop down box for right eye degrees.

Is it is possible to set the stock by attributes to combination instead of variation? Such that when one of the prescription lens is sold out, then the variations of other combination will be sold out too.

4 May 2010, 8:58 AM
#857
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

animedown:

Is it is possible to set the stock by attributes to combination instead of variation? Such that when one of the prescription lens is sold out, then the variations of other combination will be sold out too.That would be a fundamental change. The discussion has been had several times above using different vocabulary, so I won't repeat it here.

You may wish to take a look at this mod, which is based on the paradigm that I think you're describing. It's a bit long in the tooth though and would need some very careful testing - it will probably need some updating to current versions of Zen Cart.

4 May 2010, 6:36 PM
#858
animedown avatar

animedown

New Zenner

Join Date:
Jul 2007
Posts:
7
Plugin Contributions:
0

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

kuroi:

That would be a fundamental change. The discussion has been had several times above using different vocabulary, so I won't repeat it here.

You may wish to take a look at this mod, which is based on the paradigm that I think you're describing. It's a bit long in the tooth though and would need some very careful testing - it will probably need some updating to current versions of Zen Cart.

Thanks, really appreciate it

5 May 2010, 9:47 AM
#859
waddtown avatar

waddtown

New Zenner

Join Date:
Feb 2005
Location:
UK
Posts:
77
Plugin Contributions:
0

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

kuroi:

This mod is tightly integrated with each Zen Cart version, and will need to be upgraded to work properly with Zen Cart 1.3.9a.

Don't
a) install this on a 1.3.9a base until there is an upgraded version available, or
b) upgrade to 1.3.9a if you are dependent on this mod.

Any idea when an updated version will be available or what needs doing for this do be updated.

5 May 2010, 1:15 PM
#860
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

waddtown:

Any idea when an updated version will be available or what needs doing for this do be updated.The creation/update of add-ons is a volunteer effort. If you look at the history of this particular add-on, there have been several authors since Kuroi's last version of this add-on was released..

So in a nutshell, can't give a time when this will be updated.. If someone volunteers to do this, then a new version will be available.. Since it's hard to say WHO will volunteer to do this, can't really predict when..