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

Results 281 to 300 of 3,609
22 Sep 2007, 10:06 PM
#281
big_woody avatar

big_woody

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

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

kuroi:

@Big_Woody

Stock by Attribute allows to you attach a stock level to each combination of attributes for a given product.

If that product has attributes that have stock of their own, they are probably not really attributes of the original product, but rather products in their own right.

You might be better off treating them as products and using one the three or four cross-sell modules available from the downloads area. There's also a hide categories add-in that you may be able to use to prevent them from being listed elsewhere.

Thanks for that have installed Cross Sell and Cross Sell Adnvanced no having problems with Cross Sell Advanced so have post on that thread :(

6 Oct 2007, 5:56 AM
#282
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

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

I have this mod installed and aside from a problem when I delete an item from my inventory, it is working fine. But I have items which are one of items. Handcrafted necklaces and I just want to add an option for buyers to include a free gift bag or extension chain if they reuire it. But because of this mod it will show that there are 2 items available s opposed to only 1 because of the gift bag and extension chain option. But if I add it to my cart with those 2 options ticked it says there in ot enough stock.

Is ther a way around this? Thank you.

6 Oct 2007, 8:19 AM
#283
big_woody avatar

big_woody

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

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

vivaraquel:

I have this mod installed and aside from a problem when I delete an item from my inventory, it is working fine. But I have items which are one of items. Handcrafted necklaces and I just want to add an option for buyers to include a free gift bag or extension chain if they reuire it. But because of this mod it will show that there are 2 items available s opposed to only 1 because of the gift bag and extension chain option. But if I add it to my cart with those 2 options ticked it says there in ot enough stock.

Is ther a way around this? Thank you.

Sound just like my problem ... i need a way of have some attributes so they can be of value 0

I like you some items which i only have 1 in stock but wish to give customers options to go with this item , 6 or 6 items , but when i use Stock By Attributes it then wants to add each item so i can end up with it thinking i have 6 of the main items in stock. Searched and searched for the answer nop joy so if you find it please make it public.

6 Oct 2007, 10:39 PM
#284
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

@vivaraquel

Let's step back a bit here. The options that you want to offer as additions to products are not attributes in the sense of variations in the intrinsic nature of your products (such as size, color or style) but rather are distinct products with their own (even if you don't intend to sell them separately). So the way to solve your problem is to treat them as such, setting them up as products, but giving them a price of zero if needed, and hiding them from the listings if necessary, and then offer them for the specific products to which they apply by way of the cross-sell add-in. You may also wish to add a check in "extra cart actions" to ensure that nobody tries to put one of your special offers in their cart without one of the products to which it applies.

@Big_Woody

I'm not sure whether the above also answers your issue. If not could you provide more details of the situation with which you are trying to cope.

7 Oct 2007, 12:38 AM
#285
bigmom avatar

bigmom

New Zenner

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

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

Hello I have 2 questions:

  1. When is ZenCart version 1.4 expected to be released? :)

  2. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
    I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
    For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.

Thank you for any help!

Liz

7 Oct 2007, 8:41 AM
#286
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

bigmom:

  1. When is ZenCart version 1.4 expected to be released?The Zen Cart team don't give out dates for future releases. They have to fit them around their other work and would rather deliver software that works than meet a deadline.

bigmom:

  1. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
    I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
    For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.I'm afraid that I've never actually installed this solution myself, but there are posts in this and other stock attribute threads from people who have explaining what problems they faced and how they overcome them.
8 Oct 2007, 8:48 AM
#287
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

bigmom:

Hello I have 2 questions:

  1. When is ZenCart version 1.4 expected to be released? :)

  2. I have installed Kuroi's Stock By Attribute 4.5 into my zencart 1.3.7.1 successfully. I then wanted to be able to show stock quantities in the product page. I only have one attribute for my products: colour. I am using a drop-down list with my colours. I would really like to see stock quantities listed alongside each colour value, eg. red (3 in stock), blue (12 in stock)....
    I followed Kuroi's suggestion and went to the #1 FAQ in the Wiki for Stock By Attributes, and followed the instructions for Grayson's mod.
    For some reason, nothing has changed! Help! I still don't see any stock quantities by attribute (even though I have entered them). I do see the global "you have 20 items in stock" for the entire product line, but not for each individual attribute.

Thank you for any help!

Liz
Isn't Grayson's mod intended for use when you have only one attribute per product?

8 Oct 2007, 5:38 PM
#288
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

I hope this is the correct place for this. I am using stock_by_attributes_v4_5
with Zen Cart 1.3.7.1.

I have colors as attributes (added as colors) and facts as attributes (added as features)

When I try to assign a stock level ( for example 12 red) it wants me to choose from a second dropdown that lists the features (for example plastic, made in China, etc)

Every red product is plastic AND made in China, however I can only pick plastic OR made in China. I don't wish to choose any of this, I just need to be able to choose red.

Then when I pick red and plastic, the item shows as out of stock even if this is not the case.

What am I missing here, should I be using a different add on, not listing plastic and made in China as features or what.

My site is on a local server, so I can't post a link. Anyone out there who can point out my error?

Thank you

9 Oct 2007, 9:21 AM
#289
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

member:

I hope this is the correct place for this. I am using stock_by_attributes_v4_5
with Zen Cart 1.3.7.1.

I have colors as attributes (added as colors) and facts as attributes (added as features)

When I try to assign a stock level ( for example 12 red) it wants me to choose from a second dropdown that lists the features (for example plastic, made in China, etc)

Every red product is plastic AND made in China, however I can only pick plastic OR made in China. I don't wish to choose any of this, I just need to be able to choose red.

Then when I pick red and plastic, the item shows as out of stock even if this is not the case.

What am I missing here, should I be using a different add on, not listing plastic and made in China as features or what.

My site is on a local server, so I can't post a link. Anyone out there who can point out my error?

Thank you
To get your preferences to work, you would have to further refine the attributes that you have deignated features. You need to separate these into two (or maybe more depending on the 'range' of features) attributes, one being 'Material' and the other being 'Country of Manufacture' and thereafter assign these attributes to the product. (You can create new attribute types in Zen Cart)

The point of an attribute is to further define the product, therefore each attribute allows only one item to be selected at a time.
But why bother with assigning attributes to a product where is no alternative attribute for 'Country of Manufacture' or 'Material', why not include it it the description of the Product? (OIf course if every blue product isn't plastic, or isn't made in china then you have a slightly different problem)

10 Oct 2007, 12:15 AM
#290
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

I wanted to choose the appropriate descriptons for each product because it would be faster than using the description area in html, for describing a large quanity of similar items.

I could use the three or four descriptions that apply for each particular item (for example some products are metal instead of plastic).

I thought that was what features were. I just don't understand why stock by attributes even cares what the features are. I just want it to know I have 12 red, 3 blue, etc.

10 Oct 2007, 10:59 AM
#291
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

member:

I wanted to choose the appropriate descriptons for each product because it would be faster than using the description area in html, for describing a large quanity of similar items.

I could use the three or four descriptions that apply for each particular item (for example some products are metal instead of plastic).

I thought that was what features were. I just don't understand why stock by attributes even cares what the features are. I just want it to know I have 12 red, 3 blue, etc.
Hi

I think I understand what it is that you are trying to achieve. You don't want the user to be able to select an alternative for the place of manufacture etc. i.e your 'Features'.

In this case you would need to set the Option Name to be a 'Read Only' option. Or so you would think, wouldn't you? I have tried this, and I don't seem to be able to add Option values to a 'Read Only' Option Type. This would be such a useful feature, if it worked - or maybe it does, but I am not using it correctly.

Even though the Read Only Type for Option Names doesn't appear to work, you can specify as many of the Option Values that you like for a given option Name, but the visitor will be able to select from these option values, because the Option Type will be either 'Dropdown'; 'Check box'; or 'Radio' (button).

This is of course, confusing, but effectively the user appars to be able to select the features as alternatives, and the very nature of the drop down, radio buttons allows only one option value at any time.

I found a clunky workaround: I use the mod short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.

I hope this helps!

10 Oct 2007, 8:41 PM
#292
big_woody avatar

big_woody

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

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

kuroi:

@Big_Woody

I'm not sure whether the above also answers your issue. If not could you provide more details of the situation with which you are trying to cope.
Thanks for taking the time to ask.

What i was trying to do is this.
I sell skateboard parts. The deck is the wooden top piece (sorry if you know dont want to sound like your stupid) well they have griptape fitted tot he top. When we sell one we give free griptae with each order, cheap stuff but free all the same.
What i want to do is have a drop down selection giving the user chance to upgrade there tape at a minimal cost.
SO
Deck <Free Tape Loose
< Free Tape Fitted
< Upgrade Option 1 + £2.50 Fitted
< Upgrade Option 1 + £2.50 Loose
< Upgrade Option 2 +£3.00 Fitted
< Upgrade Option 2 + £3.00 Loose

Now if i use these options in a drop down menu "Stock by Attributes" wants a value for each option making 6 in total but i may only have 1 deck of that type in stock.

Want i need is a way of tell SBA that the option are 0 value does that make sense and is it possible ?

Cheers for taking the time to read this.

10 Oct 2007, 10:42 PM
#293
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

[QUOTE=blag;443833]

I found a clunky workaround: I use the mod short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.
QUOTE]

I used this and it works pretty good except I am getting double of everything when I choose to go into the category page.

I then got to thinking more clearly. I turned off the wysiwyg. I can now list the features with <li> between them without getting dirty html (which is why I was not using the description area).

I added the last line to the stylesheet.css
/.content,/ #productDescription, .shippingEstimatorWrapper {
/font-size: 1.2em;/
line-height: 1.5em;

You could change the color, etc. also if desired. I was so frustrated with the wysiwyg, but if it can be done more cleanly, I think I can live with it. Thanks for getting me thinking correctly. Now my Stock by Attribute works as desired.

11 Oct 2007, 11:33 AM
#294
blag avatar

blag

Zen Follower

Join Date:
May 2007
Location:
Leicester, England
Posts:
165
Plugin Contributions:
0

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

[QUOTE=member;444156]> blag:

I found a clunky workaround: I use the mod short_description_1.1 and have all the 'fixed' unique-option-per-product item preformatted in a list in a text file, which I then edit in the Product's description. If you go to my inactive web site and slect a product you will see that these items appear as a bulleted list sfter the blurb about the product.
QUOTE]

I used this and it works pretty good except I am getting double of everything when I choose to go into the category page.

I then got to thinking more clearly. I turned off the wysiwyg. I can now list the features with <li> between them without getting dirty html (which is why I was not using the description area).

I added the last line to the stylesheet.css
/.content,/ #productDescription, .shippingEstimatorWrapper {
/font-size: 1.2em;/
line-height: 1.5em;

You could change the color, etc. also if desired. I was so frustrated with the wysiwyg, but if it can be done more cleanly, I think I can live with it. Thanks for getting me thinking correctly. Now my Stock by Attribute works as desired.
It's a pleasure to have been of assistance.

16 Oct 2007, 4:00 PM
#295
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

tbrides:

Hello,

I've a solution for adding Sold Out on the attribute if the stock of it is 0.
It works for dropdown boxes, radio buttons and checkboxes.

I've modified kuroi's attributes.php file, adding the suggestions of other people and figuring it out for dropdowns.

  • First you need to add this to:
    includes\languages\english\custom\product_info.php

if product_info.php is not there it will be in
includes\languages\english\product_info.php

Once you have added the below move the file to your custom directory

define('TEXT_ATTRIBUTES_NOT_IN_STOCK',' Sold Out');

> 
> 
> - I've changed the function  "function zen_draw_pull_down_menu"      in includes\functions\html_output.php
> 
> 
> ```php
function zen_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) {
    $field = '<select name="' . zen_output_string($name) . '"';
    $soldout = "";
    if (zen_not_null($parameters)) $field .= ' ' . $parameters;

    $field .= '>' . "\n";

    if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]);

    for ($i=0, $n=sizeof($values); $i<$n; $i++) {
    /* Added by TB on 16/2/2007 */
    /*need to check if Sold Out occurs in the option tag for the dropdown*/
    if(strpos($values[$i]['text'], "Sold Out")) $soldout = 'class ="red bold"';
    else $soldout = "";
      $field .= '  <option '.$soldout.' value="' . zen_output_string($values[$i]['id']) . '"';
      if ($default == $values[$i]['id']) {
        $field .= ' selected="selected"';
      }

      $field .= '>' . zen_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>' . "\n";
    }
    $field .= '</select>' . "\n";

    if ($required == true) $field .= TEXT_FIELD_REQUIRED;

    return $field;
  }
  • Then I modified kuroi's attributes.php file. Located in
    includes\modules\custom\attributes.php.
    See attached. Rename your old one to something like attributes.php-old and upload this one.

  • Then I added the class .red to my stylesheet, which just sets color:red

If anybody cares to try this in a test environment for me after they have installed the stock by attributes module.
Please let me know how it goes. It should work, works for me, but no guarantees.

This was posted in Feburary, I made the changes and it seems to work with Zen Cart 1.3.7.1. I can't get the dropdown to say sold out in red (it says sold out, I just can't get it to be red).

Can anyone explain exactly what the following instructions require.

Then I added the class .red to my stylesheet, which just sets color:red

Someone else asked the same thing and was told

have you added the style to your custom stylesheet and for the radio buttons and check boxes i wrapped TEXT_ATTRIBUTES_NOT_IN_STOCK in attributes.php in span tags with the class red and bold

That is not specific enough could someone post exactly what I need to put in the stylesheet. I am very new to this.

Thanks

16 Oct 2007, 9:38 PM
#296
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

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

member:

This was posted in Feburary, I made the changes and it seems to work with Zen Cart 1.3.7.1. I can't get the dropdown to say sold out in red (it says sold out, I just can't get it to be red).

Can anyone explain exactly what the following instructions require.

Then I added the class .red to my stylesheet, which just sets color:red

Someone else asked the same thing and was told

have you added the style to your custom stylesheet and for the radio buttons and check boxes i wrapped TEXT_ATTRIBUTES_NOT_IN_STOCK in attributes.php in span tags with the class red and bold

That is not specific enough could someone post exactly what I need to put in the stylesheet. I am very new to this.

Thanks

I was wrong, .red {color: #FF0000; } works in the css.

It works if I use checkboxes or radio buttons. The problem only happens for dropdowns. I guess that I misunderstood.

Post #165 says Keep in mind, these fix will only work for products that have one attribute, and product attribute display style is radio buttons or check boxes.

25 Oct 2007, 3:52 PM
#297
jimcrown avatar

jimcrown

New Zenner

Join Date:
Sep 2007
Location:
Illinois
Posts:
16
Plugin Contributions:
0

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

After reading through most of this thread, I'm thinking this may not be the solution I was looking for.
Here's the situation: We are silling motorcycle coasters (kick stand supports) that come in six colors. Customers can order various quantities of the colors to add together to equal our minimum quantity of 250. As I've currently set it up, they have to order each color separately and eventually it will come up to the minimum quantity. However, we also offer less-than-minimum (down to absolute minimum of 125) with a one-time charge of $50.00 additional. I have this LTM set-up as a separate product "Plastic colors - Less than minimum". I would like to be able to switch the customers over to this LTM product if they order under 250 from the main product page. However, I don't want this switch of they are still selecting colors to meet the 250 minimum.
The ideal solution would be to be able to select quantities of each color all on one page to meet the 250 minimum, then if they "Add to Cart" and it's under the minimum they would be shunted to the LTM page.

Any ideas?

21 Nov 2007, 6:21 PM
#298
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

Big_Woody:

Thanks for taking the time to ask.

What i was trying to do is this.
I sell skateboard parts. The deck is the wooden top piece (sorry if you know dont want to sound like your stupid) well they have griptape fitted tot he top. When we sell one we give free griptae with each order, cheap stuff but free all the same.
What i want to do is have a drop down selection giving the user chance to upgrade there tape at a minimal cost.
SO
Deck <Free Tape Loose
< Free Tape Fitted
< Upgrade Option 1 + £2.50 Fitted
< Upgrade Option 1 + £2.50 Loose
< Upgrade Option 2 +£3.00 Fitted
< Upgrade Option 2 + £3.00 Loose

Now if i use these options in a drop down menu "Stock by Attributes" wants a value for each option making 6 in total but i may only have 1 deck of that type in stock.

Want i need is a way of tell SBA that the option are 0 value does that make sense and is it possible ?

Cheers for taking the time to read this.Hi Big_Woody

I may finally have an answer for you, though you will have to work out if it will work for you. Version 4.6 of Stock by Attribute allows you to decide for each individual product whether stock will be managed at product level or attribute level.

In the above case this would mean that you could have stock by attributes installed, but not create stock records for any of the attributes you listed above. This would mean that you would enter the product quantity for the deck as 1 and that's what would be used for calculating stock at checkout.

This does however, assume that you would always have tape available, but since you need tape for all your options, that doesn't seem unreasonable.

21 Nov 2007, 6:30 PM
#299
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

JimCrown:

After reading through most of this thread, I'm thinking this may not be the solution I was looking for.
Here's the situation: We are silling motorcycle coasters (kick stand supports) that come in six colors. Customers can order various quantities of the colors to add together to equal our minimum quantity of 250. As I've currently set it up, they have to order each color separately and eventually it will come up to the minimum quantity. However, we also offer less-than-minimum (down to absolute minimum of 125) with a one-time charge of $50.00 additional. I have this LTM set-up as a separate product "Plastic colors - Less than minimum". I would like to be able to switch the customers over to this LTM product if they order under 250 from the main product page. However, I don't want this switch of they are still selecting colors to meet the 250 minimum.
The ideal solution would be to be able to select quantities of each color all on one page to meet the 250 minimum, then if they "Add to Cart" and it's under the minimum they would be shunted to the LTM page.

Any ideas?This seems to be all about order quantities and very little about stock by attributes. I recommend a forum search on "extra cart actions".

21 Nov 2007, 6:34 PM
#300
big_woody avatar

big_woody

New Zenner

Join Date:
Sep 2007
Posts:
35
Plugin Contributions:
0

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

Sounds interesting ... where do i get this new version its not on the download page ?

thanks