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

Results 1,681 to 1,700 of 3,609
30 Aug 2013, 1:35 AM
#1681
agw911 avatar

agw911

New Zenner

Join Date:
Aug 2013
Location:
Canada
Posts:
2
Plugin Contributions:
0

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

I installed this add-in and I am able to add stock levels by attributes, but when I bring up the product in a browser it shows total stock number for item but each radio button has out of stock written beside it.

Any ideas what I may have done wrong?

1 Sep 2013, 9:34 AM
#1682
johnybravo avatar

johnybravo

Zen Follower

Join Date:
Jun 2011
Posts:
107
Plugin Contributions:
0

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

Hi everyone,

I have installed the products with attributes and dynamic drop downs addons which I love but unfortunately doesn't work with some of my products.
All the dresses on the site are stock items so the addons works perfectly. The problem comes with my corsets which are made to order. The corsets have many variables and unless I state that there is one corset in stock for every variant then it shows out of stock when you get to the check put. If i do this the admin page for products with attributes stock become so slow to load that it fails to load and even if it does the page is too long.

The dresses can be seen working at:
http://www.curvesandcorsets.com/the-...-dress-company

and the corsets at:
http://www.curvesandcorsets.com/made...erbust-corsets

Can any one suggest a way a to make the corsets stock to be ignored?
Thanks in advance,
john

3 Sep 2013, 3:40 AM
#1683
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

New version submitted, 1.5.1.2, I tried to upload it here, but the file size exceeded the allowable limit for uploads.

There have been a number of updates to this version. Most files have been updated, with some significant changes, see the file Updates.txt in the package. A new Users Guide is included that explains installation, configuration, product attribute set-up, and describers new and updated behaviors and functionality in the installation script, it contains the following topics: (Installation| Configuration | Attribute Stock Setup | Optional Update | Optional Export / Import).

This version should resolve most of the comments and questions recently posted to the forum, please read the Users Guide.

I would like to extend Thanks to member Kevin205, Kevin provided valuable suggestions, testing, and especially the work generating the Users Guide, Thank You!

3 Sep 2013, 3:49 AM
#1684
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

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

Thank you **PotteryHouse **for all you've done. Great contribution.

3 Sep 2013, 3:54 AM
#1685
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

potteryhouse:

New version submitted, 1.5.1.2, I tried to upload it here, but the file size exceeded the allowable limit for uploads.
A few questions (actually suggestions for future updates):

  • What did you remove to bring the size down?
  • There's a duplicate image in your instructions subfolder
  • Is there a technical reason for still using jQuery 1.2.6 (from 2011)? (Note that jQuery 1.10 (or worst 1.9) is slated to be included in ZC v1.6.0)
3 Sep 2013, 4:07 AM
#1686
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

DrByte:

A few questions (actually suggestions for future updates):

  • What did you remove to bring the size down?
  • There's a duplicate image in your instructions subfolder
  • Is there a technical reason for still using jQuery 1.2.6 (from 2011)? (Note that jQuery 1.10 (or worst 1.9) is slated to be included in ZC v1.6.0)

Hello,
The size significantly increased due to the addition of the images for the users guide (whent from 132k to 1.4mb, with the images being 1.24mb of that change).
The file Updates.txt in the instructions folder lists the files I modified, moved, and replaced.
The jQuery was working, I did not think to replace it since it worked.

I can replace it in the next version (or this one but I already submitted it) I would just need to know which version is appropriate.

3 Sep 2013, 5:13 AM
#1687
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

potteryhouse:

The size significantly increased due to the addition of the images for the users guide (whent from 132k to 1.4mb, with the images being 1.24mb of that change).The upload has been queued for review.

potteryhouse:

The jQuery was working, I did not think to replace it since it worked.

I can replace it in the next version (or this one but I already submitted it) I would just need to know which version is appropriate.
Well, jQuery went through some compatibility changes between jQuery versions 1.2, 1.4, 1.6, etc.
So the right version is the latest one for which the custom jQuery code used by the plugin actually still works correctly. (Or better yet, is upgraded to be compatible with modern jQuery versions ... since that will definitely be necessary in order to make the next upgrade to ZC v1.6 when it is released. Something to keep in mind as you plan for next updates you're working on.)

6 Sep 2013, 2:10 PM
#1688
therummagehole avatar

therummagehole

New Zenner

Join Date:
May 2012
Location:
Tamworth, United Kingdom
Posts:
24
Plugin Contributions:
0

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

I've got a minor problem. I know it will be an easy fix but just can't seem to find the answer. In my dropdowns, if a product is out of stock, rather than it being bold, it is showing the <b> </b> tags instead. Anyone else come across this?

6 Sep 2013, 6:24 PM
#1689
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

Try this, in the file:
includes\languages\english\extra_definitions\products_with_attributes.php

Remove the <b> and </b> wrapped around the text on line 12.

13 Sep 2013, 2:15 PM
#1690
milobloom avatar

milobloom

Totally Zenned

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

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

I have this Mod installed on my site.
When I had it installed on my old site ( 1.3.8 )
I created a new product and DID NOT add attribute values and it would set it up to unlimited.
Now that I upgraded, (1.5.1) It sets it to default to Out Of Stock

Is there a way to set it the same way I had it?
I am putting in alot of drop shippers and it would be alot easier to add them
in bulk without having to add stock levels to every product.

13 Sep 2013, 2:22 PM
#1691
milobloom avatar

milobloom

Totally Zenned

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

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

I also had another question.

Is there a way to make the option box longer?
I have a product that is in 2 sizes
Extra Large
Standard

The option box only displays the out of stock item (It does say out of stock though)
BUt I would like it to show all the options and they can click on one to bring to the top. Is this possible?

http://www.nothingbutcostumes.com/final-clearence-c-4438/adult-barney-rubble-the-flintstones-costume-p-8394.html

13 Sep 2013, 3:06 PM
#1692
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

milobloom:

I also had another question.

Is there a way to make the option box longer?
I have a product that is in 2 sizes
Extra Large
Standard

The option box only displays the out of stock item (It does say out of stock though)
BUt I would like it to show all the options and they can click on one to bring to the top. Is this possible?

http://www.nothingbutcostumes.com/final-clearence-c-4438/adult-barney-rubble-the-flintstones-costume-p-8394.html

Hi,
I will look at this, as a note, the mod I started with does not seem to have any code that directly supports the drop-down selection lists. The file attributes.php seems to only support Radio Buttons, Checkboxes, and text boxes.

This issue you have seems to me that it should be as simple as setting the style for the lists width to what you need. I will look to see where that is controlled.

I have made another update to this mode (two actually) one I submitted and is under review (I do not know its status) and one I just made updates to last night, that needs some testing, but now should properly support combinations of attributes to a product. Since you are using a Selection list, I was wondering if you have a TEST site that maybe you could try this new TEST ONLY version with and provide some feedback. It should NOT be used on a production site until after proper testing.

The current changes needing tests support the following:
This change allows support of many attribute combinations in the admin stock page.
"Multiple Attribute types in stock_attributes Field (Multiple attribute types per product) i.e, 123,321,234"
"Multiple Attributes selected (One attribute type per product)"
"Single Attribute"
"No Attribute"

Thus far Kevin and I have focused on testing using Radio buttons.

13 Sep 2013, 3:18 PM
#1693
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

milobloom:

I have this Mod installed on my site.
When I had it installed on my old site ( 1.3.8 )
I created a new product and DID NOT add attribute values and it would set it up to unlimited.
Now that I upgraded, (1.5.1) It sets it to default to Out Of Stock

Is there a way to set it the same way I had it?
I am putting in alot of drop shippers and it would be alot easier to add them
in bulk without having to add stock levels to every product.

I will look at this, I think I have an idea but in the mean time you can simply change a setting in the configuration/Stock/Check Stock Level set to false.

13 Sep 2013, 3:49 PM
#1694
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

milobloom:

I also had another question.

Is there a way to make the option box longer?
I have a product that is in 2 sizes
Extra Large
Standard

The option box only displays the out of stock item (It does say out of stock though)
BUt I would like it to show all the options and they can click on one to bring to the top. Is this possible?

http://www.nothingbutcostumes.com/final-clearence-c-4438/adult-barney-rubble-the-flintstones-costume-p-8394.html

I looked at your site, I did not see any style sheet setting for the selection list. Try putting this code into the style sheet used for that page.
I did not need to change anything and was able to display an extremely long text string.

.wrapperAttribsOptions
{
	margin: 0.3em 0em;	
}

This is in the default style sheet but does not seem to be in your templates style sheet.
includes\templates\YourTemplate\css\stylesheet.css

13 Sep 2013, 10:21 PM
#1695
milobloom avatar

milobloom

Totally Zenned

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

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

The only problem I have with that is I am mixing drop shippers with products I carry, 8o(

15 Sep 2013, 1:24 AM
#1696
milobloom avatar

milobloom

Totally Zenned

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

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

I think I may have asked the wrong thing.
I am looking to have the Dropdown box look like this


  • Sold Out - Xlarge *

  • Large *
  • Medium *
    *Small *

So if I click on Small it will go to the top.

15 Sep 2013, 1:26 AM
#1697
milobloom avatar

milobloom

Totally Zenned

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

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

Oh By the way. Yes I will test this on a test site if you would like me too.

15 Sep 2013, 12:23 PM
#1698
milobloom avatar

milobloom

Totally Zenned

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

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

Can I hide the attribute value if stock is Zero instead of saying it is out of stock?

15 Sep 2013, 3:19 PM
#1699
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

milobloom:

I think I may have asked the wrong thing.
I am looking to have the Dropdown box look like this


  • Sold Out - Xlarge *

  • Large *
  • Medium *
    *Small *

So if I click on Small it will go to the top.

A simple solution for the drop-down lists is making a small change in the attributes.php file, add size=3, where the 3 is what you want the list to show, this will affect all drop-down lists that use attributes. it can be made more robust by pre-selecting the list size and inserting that instead of the 3, but this is a quick dirty solution. This will NOT bring the selected item to the top, it is just highlighted.

Find this code near the bottom of the file in the default; block.

$options_menu[] = zen_draw_pull_down_menu('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_array, $selected_attribute, 'size=3 id="' . 'attrib-' . $products_options_names->field

```
15 Sep 2013, 3:24 PM
#1700
potteryhouse avatar

potteryhouse

Zen Follower

Join Date:
Jun 2012
Location:
Florida
Posts:
123
Plugin Contributions:
0

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

milobloom:

Oh By the way. Yes I will test this on a test site if you would like me too.
Need your email address to send the file, probably best to send that in a private message.
I updated the test version to support the out of stock issue you asked about earlier.