Zen Cart Logo
Forums / All Other Contributions/Addons / Stocks by attributes

Stocks by attributes

Locked

Views: 251,324

Results 401 to 420 of 1,126
This thread is locked. New replies are disabled.
11 Jan 2008, 9:29 AM
#401
philip24 avatar

philip24

New Zenner

Join Date:
Jan 2008
Posts:
36
Plugin Contributions:
0

Stocks by attributes

kuroi:

You already have the patch installed. The error message is simply telling you that it can't add the same switch a second time.

Many thanks kuroi.

I thought I saw the error the first time I installed the patch but obviously not!

Philip

18 Jan 2008, 11:36 AM
#402
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

cherry_red_boutique:

Is there a way to set up "add on" attributes?

I would like to offer gift wrapping for an extra charge, but I don't want to define different quantitiesThere is a separate gift wrapping mod, but I'm afraid I know nothing about it, or how nicely it plays with this mod.

8 Feb 2008, 8:27 PM
#403
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

If this has already been covered in this thread--I apologize. I have searched but can't find info on it.

I want to be able to show the quantity available for each attribute. As it is, it only shows if someone tries to put too much in their cart. I read the wiki article about it:

" How can I show the amount of stock available next to each attribute on the product information page?

This is relatively straightforward if you have only a single attribute such as size of color for each product. Code for this is proposed in this archive thread[1]. Seek out post #110 by Grayson, and her correction in #132 and apply the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php "

I did what those posts said to do, but my quantities still aren't showing up next to my attributes. Any ideas?

Here's the product I'm experimenting with:
http://www.tracibunkers.com/zen/index.php?main_page=product_info&cPath=82_83_85&products_id=230

EDIT: It shows if I switch to radio boxes instead of drop down, but it says:
"4 TEXT_ATTRIBUTES_PIECES" How do I get rid of the "TEXT_ATTRIBUTES_PIECES"?

8 Feb 2008, 9:09 PM
#404
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

tracib:

EDIT: It shows if I switch to radio boxes instead of drop down, but it says:
"4 TEXT_ATTRIBUTES_PIECES" How do I get rid of the "TEXT_ATTRIBUTES_PIECES"?

I figured it out. In the attributes file, search for 3 instances of "TEXT_ATTRIBUTES_PIECES" and change to units or whatever you want it to say.

9 Feb 2008, 1:45 PM
#405
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

I keep seeing people asking, but not sure of the answer.
I wanted to know if there was a way to display to the users how much
of each size I have.

Cinderella Dress:

Option Sizes (Drop down box)
Small (0)
Medium (4)
Large (2)

Is there a way to make this possible???

9 Feb 2008, 1:48 PM
#406
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

milobloom:

I keep seeing people asking, but not sure of the answer.
I wanted to know if there was a way to display to the users how much
of each size I have.Directions to an approach for this can be found in the wiki.

9 Feb 2008, 2:10 PM
#407
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

Thanks for that.

I looked at post #110 (As did 132)

It referred to a file main_template_vars_attributes.php
in /public_html/includes/modules/pages/product_info

The thing is. I looked into my directory and did not see that file.
Which gets me a little worried. I am thinking I have a different version of this mod.
But seemed to be working fine (Without the modifications I need.)

But I also looked at the new file in the download section and the file was not in that one either.
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310

What do I need to do?

9 Feb 2008, 2:14 PM
#408
kuroi avatar

kuroi

Totally Zenned

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

Re: Stocks by attributes

milobloom:

I looked at post #110 (As did 132)

It referred to a file main_template_vars_attributes.php
in /public_html/includes/modules/pages/product_info

The thing is. I looked into my directory and did not see that file.

What do I need to do?

Grayson's method was constructed for Zen Cart 1.2. The file structure changed for 1.3, but if you keep following the thread, that's explained. Sorry, I can't be more specific. I've never implemented this change myself.

9 Feb 2008, 10:20 PM
#409
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

Still looking for the solution.

If there is anyone who figured it out, please let us know. There are
alot of people interested in this tread. Just look at all the posts asking for the help.
It seems like the obvious step for this mod.

I will put up a perfect how to if I figure it out first.

9 Feb 2008, 10:56 PM
#410
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

I was googling around and saw this post on a forum. Now I am not a programer, So I thought perhaps someone can get a clue how to put the qty next to the attribute names from this post here:

http://damonparker.org/blog/2006/06/12/zencart-simple-attributes-stock-tracking/

It showed an example of a site using it.

http://www.pimpcostumes.com/costumes/Hos-########-Shoes/########-Heels-Orbit-Red/643,139

Now they put " ** " next to products that might be low in stock.

The files in the download modify files that are in the current install of zen,
however I think if I edit these files would interfere with this mod. If I had it say at least " Sold Out " Next to the attribute name that would work too.

My other thought is, If QTY was 0, Would there be a way for the attribute not to show up at all???

11 Feb 2008, 4:24 AM
#411
jaybay avatar

jaybay

New Zenner

Join Date:
Feb 2008
Location:
San Anselmo, CA
Posts:
5
Plugin Contributions:
0

Re: Stocks by attributes

I've been searching through the forums to find the answer to the following question and haven't figured it out. If there is an answer in a previous post, feel free to redirect me.

I have downloaded Kuroi's Stock by Attributes mod v4.6 to my Zen Cart version 1.3.7.1.

I sell clothing mainly, and each product's attributes include both the size and color of the piece of clothing. I was able to stock a particular product's attributes, so that say, Red, XS has 2 in stock; Red, S has 5 in stock; Red M has 5 in stock, and Red L has 2 in stock.

The cart is allowing me to put up to 14 Red, XS into my shopping cart--as in the total number of the product in stock. A warning comes up if I try to put 15 into my cart. But in reality, a warning should come up if I try to put 3 Red, XS in my cart.

I have my Stock settings set so that customers are unable to checkout if the products they attempt to put in their cart exceed the amount of products in stock (hence the warning at 15 items and no warning at 14 items).

What am I missing? How do I make sure the cart recongnizes the stock for each individual attribute?

Thank you in advance!

11 Feb 2008, 5:23 AM
#412
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

milobloom:

I keep seeing people asking, but not sure of the answer.
I wanted to know if there was a way to display to the users how much
of each size I have.

Milobloom: I said how to do this in the post right before yours.

11 Feb 2008, 5:28 AM
#413
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

milobloom:

Thanks for that.

I looked at post #110 (As did 132)

It referred to a file main_template_vars_attributes.php
in /public_html/includes/modules/pages/product_info

The thing is. I looked into my directory and did not see that file.

The info in the wiki said to make the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php

11 Feb 2008, 6:19 AM
#414
jaybay avatar

jaybay

New Zenner

Join Date:
Feb 2008
Location:
San Anselmo, CA
Posts:
5
Plugin Contributions:
0

Re: Stocks by attributes

Ok, never mind. We found the solution in the Wiki! Everything works!

11 Feb 2008, 5:24 PM
#415
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

The info in the wiki said to make the changes to the includes/modules/attributes.php file instead of includes/modules/pages/product_info/main_template_vars_attributes.php

Your right, I did a text search but couldnt find a matching string.
But found the locations. Made the changes...
But Zilch. Not working. Like nothing changed.

Does anyone have this working for 1.3.8?
Not sure what to look at next.

11 Feb 2008, 5:30 PM
#416
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

I made the changes that I posted about starting with message #407 so that the available quantity for the attributes show. The problem I'm having is things get wacky if I add a different attribute. For example, one attribute is color, and another attribute is type of back--a pin (for a pin-back button) or a magnet. Nothing shows up in the newest attribute--it it's a pull-down menu, there is only enough room for 2 letters, but it's blank.

It works fine if I undo the modification to show the quantity. BUT, I have the same problem as yellow1912 in post #374
http://www.zen-cart.com/forum/showpost.php?p=482137&postcount=374

even if I add stock quantity for each attribute, I get an error that there isn't enough stock.

When I do this with the mod to show quantity, it mixes both attributes together. I am wanting to have an option where quantity isn't an issue (with the type of back), but with the 2nd attribute (color) for the same product, it is.

Anyone have the same issues? What did you do?

11 Feb 2008, 5:33 PM
#417
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

milobloom:

Your right, I did a text search but couldnt find a matching string.
But found the locations. Made the changes...
But Zilch. Not working. Like nothing changed.

Does anyone have this working for 1.3.8?
Not sure what to look at next.

It only worked for me when I had the option name set up as radio--it doesn't show up in drop-down.

I had trouble finding the matching string because some parts had spaces that didn't show up when searching. So I just selected 1 line of text to search for, then made sure it was the right block of text before replacing with the new one.

11 Feb 2008, 5:48 PM
#418
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Stocks by attributes

I have attached the altered attributes.php file to show the quantity. Be sure to change the name so it is just attributes.php and put in in includes/modules/YOUR TEMPLATE/

also, don't forget to add to includes/languages/english/your_template/product_info.php

define('TEXT_ATTRIBUTES_PIECES','pieces');

Although this change works for showing the quantities if you only have one kind of attribute, it has problems if you have more (like color & size). So I don't know what the solution is for that--at least in the way I am wanting to use it.

The file is over the 19.5k limit to attach . . .

11 Feb 2008, 9:01 PM
#419
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

Re: Stocks by attributes

Thanks tracib!

I sent you a PM on where to send the file.

11 Feb 2008, 11:30 PM
#420
sonyat avatar

sonyat

New Zenner

Join Date:
May 2006
Posts:
83
Plugin Contributions:
0

Re: Stocks by attributes

Ok quick question. I tried to install the Mod but for some odd reason after I install it the store disappears on me. Am I missing a file? Or did I misread and put one in the wrong place? Please someone tell me where I went wrong. This is the last thing I need to do for a client and I really would like to have it done for her.