Forums / All Other Contributions/Addons / Stocks by attributes

Stocks by attributes

Locked

Views: 251,699

Results 1,081 to 1,100 of 1,126
This thread is locked. New replies are disabled.
15 Jan 2012, 11:07 PM
#1081
anamika59 avatar

anamika59

New Zenner

Join Date:
Jan 2012
Location:
USA
Posts:
38
Plugin Contributions:
3

Stocks by attributes

kuroi:

I have heaps of test environments with the mod installed and have never been able to replicate this problem. If somebody has a non-live but publicly accessible Zen Cart with this problem and is prepared to let me poke about behind the scenes (i.e. give me FTP access) I'm rather curious to understand what is going on here too.

This case is very easy to reproduce. I am running into this issue today although the posts are old.

Create a product (say shirt)
create 3 sizes for it. S, M and L
allocate each size to 1. This means there is only 1 small size shirt, 1 M size shirt and 1 L size shirt.
Now try to check out 2 small size shirt.
Zen cart with Stock by attribute will let you check out 2 small size shirt. It will only display "out of stock" if one tries to check out 4 small size shirt which is wrong.

7 Feb 2012, 9:12 PM
#1082
blatantninja avatar

blatantninja

New Zenner

Join Date:
Feb 2012
Posts:
2
Plugin Contributions:
0

Re: Stocks by attributes

Hello! Having a bit of a problem getting this add-in to work.

I installed Zen Cart1.5 and outside of creating a a few categories and items, really haven't done anything else besides the general settings.

I went to install the add-in, following the directions in the readme. I ran the SQL, but then there seems to be an error in the directions:

Prepare the package for upload to your server by renaming the following folders to match your template name: includes/modules/YOUR_TEMPLATE and includes/templates/YOUR_TEMPLATE.

After unzipping the file the only thin in includes/modules is pages. There is no YOUR_TEMPLATE folder. There is one in includes/templates.

The first time I tried this, I just went ahead and made a folder there (classic) and then copied everything over as per the instructions. After that, the admin screen still worked, but the main store page just comes up blank.

I'm hosting on GoDaddy using a Linux shared account if that matters, using PHP 5.2 and MySQL 5.0.

I did a search in this thread, but I didn't find an answer to my question. Any help would be greatly appreciated.

7 Feb 2012, 9:48 PM
#1083
divavocals avatar

divavocals

Totally Zenned

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

Re: Stocks by attributes

First you need to say which of the 3 or 4 versions of SBA you are working with.

Secondly, you are aware that this add-on has not been updated to work with Zen Cart v1.5 right??

blatantninja:

Hello! Having a bit of a problem getting this add-in to work.

I installed Zen Cart1.5 and outside of creating a a few categories and items, really haven't done anything else besides the general settings.

I went to install the add-in, following the directions in the readme. I ran the SQL, but then there seems to be an error in the directions:

After unzipping the file the only thin in includes/modules is pages. There is no YOUR_TEMPLATE folder. There is one in includes/templates.

The first time I tried this, I just went ahead and made a folder there (classic) and then copied everything over as per the instructions. After that, the admin screen still worked, but the main store page just comes up blank.

I'm hosting on GoDaddy using a Linux shared account if that matters, using PHP 5.2 and MySQL 5.0.

I did a search in this thread, but I didn't find an answer to my question. Any help would be greatly appreciated.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

8 Feb 2012, 12:05 AM
#1084
blatantninja avatar

blatantninja

New Zenner

Join Date:
Feb 2012
Posts:
2
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

First you need to say which of the 3 or 4 versions of SBA you are working with.

Secondly, you are aware that this add-on has not been updated to work with Zen Cart v1.5 right??

Didn't realize there were multiple versions floating out there. Looks like I downloaded 1.4.14

I thought that it meant it worked on Zen Cart v1.3.9 and higher.

I guess I'll start over using Zen Carty v1.3.9 as I really need to have the functionality of this add-in for my site. Any real reason not to use that version?

The install notes for SBA do still seem to be incorrect.

Thanks!

8 Feb 2012, 7:42 AM
#1085
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

I am about half way upgrading my version to work with 1.5.0. Hopefully have it out by the end of the week for beta testing. Spent about 5 hours just to get the admin settings to show up in the 1.5.0 Menu. LOL sigh For now I am not adding any new features it does have the dynamic drop down add on included in my version. I may remove all the radio buttons stuff that don't work and just have the dropdown options. I am just getting this mod to work with my one client I have left on zen-cart. If I had to do any more work on it... I'll just switch them over to the other cart system I am using instead.

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

10 Feb 2012, 8:10 AM
#1086
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Stocks by attributes

I have had a look around so if this has been answered I apologise.

Am I right in thinking that there is no way to get SBA to ignore a particular attribute?

For example I have a situation where the product is shoes has attributes, lets say color and size. The product also has a checkbox attribute for 'extra laces' . The extra laces checkbox doesn't actually effect the stock levels at all so needs to be kept out of the stock checking but the other attributes do need to be checked for stock.

Ha ha! This is just an example. The real situation is considerably more strange :-)

So, there is no way of excluding the 'extra laces' from the stock checking?

Thanks

Nick
iszent.com

10 Feb 2012, 4:38 PM
#1087
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: Stocks by attributes

OK I had a look at this myself. My solution is to edit zen_get_prodcts_stock() I put this at the top.

   function zen_get_products_stock($products_id, $attributes = '') {
    global $db;
    $products_id = zen_get_prid($products_id);

    foreach($attributes as $a)
    {
        if($a != 89)
        {
            $x_attributes[] = $a;
            //echo $a;
        }
    }
    
    $attributes  = $x_attributes;
    

Which lets the stock check ignore the option_value = 89. If someone can advise me if I am digging myself a hole later down the road then I'd be grateful. But it seems to work.

Nick
iszent.com

16 Feb 2012, 12:09 AM
#1088
bobe1997 avatar

bobe1997

New Zenner

Join Date:
Feb 2005
Posts:
34
Plugin Contributions:
0

Re: Stocks by attributes

I have read a lot of post. I needed a tool that would allow me to have a t-shirt, pick color and show the sizes that are available for that color. The thread I was in directed me to stock by attributes download link. Im confused because I saw someone said it does not work on the new zen cart. I cant get it to work so is this really the case or do I need to do something different?

16 Feb 2012, 12:26 AM
#1089
divavocals avatar

divavocals

Totally Zenned

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

Re: Stocks by attributes

repeat..

DivaVocals:

you are aware that this add-on has not been updated to work with Zen Cart v1.5 right??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Feb 2012, 4:22 PM
#1090
spbw avatar

spbw

New Zenner

Join Date:
Jan 2012
Posts:
50
Plugin Contributions:
0

Re: Stocks by attributes

bobe1997:

I have read a lot of post. I needed a tool that would allow me to have a t-shirt, pick color and show the sizes that are available for that color. The thread I was in directed me to stock by attributes download link. Im confused because I saw someone said it does not work on the new zen cart. I cant get it to work so is this really the case or do I need to do something different?

One real issue here is that there are two threads for this problem. One here and one at
http://www.zen-cart.com/forum/showthread.php?p=1104291#post1104291

In neither is there any resolution. In the other thread I asked if anyone got this working properly and if so, would they be so kind as to write a simple idiots guide. I post here in case some people do not read the other thread.

Unless there is a reason perhaps it would be best to have a single thread?

Mark

18 Feb 2012, 5:11 PM
#1091
mico86 avatar

mico86

New Zenner

Join Date:
Feb 2012
Posts:
3
Plugin Contributions:
0

Re: Stocks by attributes

Hello everyone and thanks for the contribution. I created the Italian language in the admin and client side and everything is translated properly. Unfortunately when I click on "Add Quantity For Product Variant", the option value is in U.S. dollars instead of euro. In my store I have eliminated the currency dollar (via localization> currencies) and I checked in mysql, currencies no longer exists in the table the value of the dollar. The euro is my default currency. All other currencies, both in management that the store are shown in euros, including attributes. How can I fix? thank you very much :smile:

23 Feb 2012, 7:18 PM
#1092
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Here is my rough 1.5.0 alpha version of my files if anyone wants to play with them. This is ALPHA and is very buggy! This only works on ZC 1.5.0

Do not install these two files below yet as they will give white page and other errors. I still need to debug them:

includes/functions/functions_lookups.php
template/yourtemplate/templatestpl_modules_attributes.php

I have not updated the readme. So "INSTALL AT YOUR RISK!!!"

Do not use on live site till you try the codes on a test site so you can see what you are getting into and as always BACKUP everything!

Some issues with admin products by attribute page: Save button no show. Some template issues to work out also.

Support... None! LOL (Sorry i am busy) I will post updates as I get to them.

This version includes the very buggy but dynamic drop downs. Sorry but since I only use zen-cart for only one of my clients. It's easier for me to combine the mods together. I am doing this for my client, so it is what it is... The two file issues i posted above is for dynamic drop down mod. So you do not need it anyways for the standard stock with attribute add-on.

I am not adding any newer features to this mod!!!! Sorry so don't ask. ;)

http://www.sidewalkstyles.com/Stock_by_Attributes_creinold_files_V1.5.0alpha.zip

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

23 Feb 2012, 7:39 PM
#1093
divavocals avatar

divavocals

Totally Zenned

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

Re: Stocks by attributes

creinold:

This version includes the very buggy but dynamic drop downs.Of all the many modifications to SBA, this is one of the few mods that I always thought SHOULD be a part of SBAs core..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Feb 2012, 7:43 PM
#1094
spbw avatar

spbw

New Zenner

Join Date:
Jan 2012
Posts:
50
Plugin Contributions:
0

Re: Stocks by attributes

creinold:

Do not install these two files below yet as they will give white page and other errors. I still need to debug them:

Damn right! Why should we, when you are doing nothing to help and why post buggy mods in the first place, lazy sod?

creinold:

I am not adding any newer features to this mod!!!! Sorry so don't ask. ;)

So what is the point in all this? Go annoy someone else please.
:censored:

And don't bother getting back to me as I have given up on this Mod and have found another way round the problem that is so much easier.

23 Feb 2012, 7:53 PM
#1095
divavocals avatar

divavocals

Totally Zenned

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

Re: Stocks by attributes

spbw:

Damn right! Why should we, when you are doing nothing to help and why post buggy mods in the first place, lazy sod?

So what is the point in all this? Go annoy someone else please.
:censored:Well.. I think it was made clear that this was an ALPHA release...

WHY POST IT??? Because SOME folks are willing to help test and debug free development.. Which is why this code is being posted as a forum attachment and NOT in the free-downloads.. If you are looking for a FINISHED product then you can always wait until this is finalized or get a developer to get you what you need..

spbw:

And don't bother getting back to me as I have given up on this Mod and have found another way round the problem that is so much easier.Great.. then you'll have no more need to needlessly pick on folks..:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

23 Feb 2012, 8:46 PM
#1096
ec_web avatar

ec_web

New Zenner

Join Date:
Feb 2011
Posts:
89
Plugin Contributions:
0

Re: Stocks by attributes

I am copying my other two posts here, I do not know exactly where to do it, as there seems to be many different stocks by attributes threads in one form or another.

My questions are these:

First:
I am posting a link to a thread here, I'm not sure if I'm doing this right, but I need help with the stock by attributes mod and this particular problem discussed here:

http://www.zen-cart.com/forum/showth...=175661&page=2

I am using Stock By Attributes version 1-4-13

Second:
If I can't figure this problem out, will this work to uninstall it so that the out of stock red warning message that appears in the shopping cart on all other items (not assigned attributes) will work properly again:

@gsdcypher, If you're using the current version, 4.7, then running the following SQL should neuter it
Quote:
**DROP TABLE products_with_attributes_stock;
DELETE FROM configuration where configuration_key = "STOCK_SHOW_LOW_IN_CART"; **

24 Feb 2012, 1:28 AM
#1097
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

EC web:

http://www.zen-cart.com/forum/showth...=175661&page=2

URL don't work. Also not sure what you are asking?

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

24 Feb 2012, 1:29 AM
#1098
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

DivaVocals:

Well.. I think it was made clear that this was an ALPHA release...

WHY POST IT??? Because SOME folks are willing to help test and debug free development.. Which is why this code is being posted as a forum attachment and NOT in the free-downloads.. If you are looking for a FINISHED product then you can always wait until this is finalized or get a developer to get you what you need..

Great.. then you'll have no more need to needlessly pick on folks..:smile:

Word!!! LOL Thanks DivaVocals... Took the words out of my mouth.

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

24 Feb 2012, 1:31 AM
#1099
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

Update.... Fixed a issue with the save button on admin/includes/classes/products_with_attributes_stock.php

New Download:
http://www.sidewalkstyles.com/Stock_by_Attributes_creinold_files_V1.5.0alpha1.1.zip

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip

24 Feb 2012, 2:27 AM
#1100
creinold avatar

creinold

Zen Follower

Join Date:
Sep 2008
Location:
North Highlands, California 95660
Posts:
287
Plugin Contributions:
0

Re: Stocks by attributes

update...

Put save button with ever product. So you don't have to scroll up and down to the top or bottom of the page just to click save.

Added table column id above each product so you don't have to scroll all the way up top to see what the column header says.

Fixed some issues with template look via css.

Got rid of that stupid double lines on the bottom of each product table.

http://www.sidewalkstyles.com/Stock_by_Attributes_creinold_files_V1.5.0alpha1.2.zip

http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creinold_SBA5.0_alpha_version1.5_for_zencart_V1.5.0.zip