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

Results 1,641 to 1,660 of 3,609
27 Jul 2013, 6:54 PM
#1641
potteryhouse avatar

potteryhouse

Zen Follower

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

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

I made some updates to support our store, new version with these updates has been submitted.
This new version was only tested on Zen Cart 1.5.1.

Updated the files to resolve bugs and to add an ability for showing option values as out of stock on product page, attribute qty on product page, and stock of products without attributes in cart. All setting are controlled by options in the admin under Configuration/Stock. Details of changes are included in the package in the file Updates.txt.

Remember to always test prior to using on your production site.

27 Jul 2013, 11:51 PM
#1642
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

"showing option values as out of stock on product page"
Does that work when theres more than 1 attribute for a product? Say something has 3 colours and 3 sizes for example.

Also you say tested with 1.51 only, but should this version work with 1.39h?

28 Jul 2013, 6:08 AM
#1643
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

Chargin:

"showing option values as out of stock on product page"
Does that work when theres more than 1 attribute for a product? Say something has 3 colours and 3 sizes for example.

Also you say tested with 1.51 only, but should this version work with 1.39h?

It will NOT work with version 1.3x of Zen Cart. It has the newer code structure from 1.5x in it.

I have only tested it with one attribute level (example: Fish wall decor with 4 size attributes 8 in, 12 inch, 24 inch, 28 inch), I expect it might work but I have not tested that. Did not think of the scenario you mentioned, since we do not currently have any product like that.

You can see some of what this does on our site http://www.caribbeanrays.com/ if you look at the product I have one out of stock http://www.caribbeanrays.com/gecko-metal-wall-decor/abbie-the-metal-gecko-decor.
If you add to cart (do not need to login or have an account) then you will see what indication you get in the cart also.

I plan to make another update to fix the 'Catalog/Products with Attributes Stock' entry page, so it will show a smaller number of products to manage at one time (like the products page works). So, I can look at testing your scenario. If you have additional details I should know when setting up the scenario please let me know.

28 Jul 2013, 6:14 AM
#1644
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

Hi, nothing special just products that have more than 1 attribute. Its a known lacking feature and I think you would have had to code specifically for this to work. But test and let me know, thanks.

30 Jul 2013, 4:02 AM
#1645
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

Update for stock_by_attribute version 1.5.1, I found a small display issue with the way I implemented a new feature in the mod.
Until I finish the other things I want to do with the mod, here is the fix, replace one file and add one more option to the configuration table.

Replace the attributes.php with this one [Attachment no longer available] (unzip it).

Add the new option with this sql clip

INSERT INTO configuration (configuration_title, configuration_key, configuration_value,        configuration_description, configuration_group_id, sort_order, 
       last_modified, date_added, use_function, set_function) 
       VALUES ('Show original price struck through', 'STOCK_SHOW_ORIGINAL_PRICE_STRUCK', 'false', 
               'Show the original price (strike through) on product info page with attributes:',
               '9',
               '6',
               NULL,
               now(),
               NULL,
               'zen_cfg_select_option(array(\'true\', \'false\'),'
       )
13 Aug 2013, 12:48 AM
#1646
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

How can I have a "cutdown" version of this plugin?
I find its really slow to use now, we have a few hundred products and each has about 40 or so attribute combinations. Particularly tedious when we have to edit a dozen or more stock levels for a particular product, each submit send you back to the list of all of the attribute stock levels.
Theres no pagination so the mod loads everything on the page at once.
All I want is the base page to only show the search function. That way I can edit the product I want and not load all the others.

Perhaps a way of using it as it is now as well, but I would be happy even just using 2 files and renaming one if I need the entire list.

I looked at the code but couldnt see an easy way of just deleting the part that lists everything.

13 Aug 2013, 4:36 AM
#1647
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

Chargin:

How can I have a "cutdown" version of this plugin?
I find its really slow to use now, we have a few hundred products and each has about 40 or so attribute combinations. Particularly tedious when we have to edit a dozen or more stock levels for a particular product, each submit send you back to the list of all of the attribute stock levels.
Theres no pagination so the mod loads everything on the page at once.
All I want is the base page to only show the search function. That way I can edit the product I want and not load all the others.

Perhaps a way of using it as it is now as well, but I would be happy even just using 2 files and renaming one if I need the entire list.

I looked at the code but couldnt see an easy way of just deleting the part that lists everything.

The attached file is a "Quick Fix", please test it to see if it does what you want before using on an active site.
The file will replace: stock_by_attribute\admin\includes\classes\products_with_attributes_stock.php
I suggest you back up before using this.
It will give you a search box, no product listing, and you must know the product ID number or product name to search for it (I commented out the model number as it gave me too many returns, you can change it back if you like, it is still in the file on line 115). [Attachment no longer available]

Let me know how it goes please.

FYI, I have been trying to get pagination working with no good results as of yet.

13 Aug 2013, 4:41 AM
#1648
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

AWESOME :) thanks.
I will be sure to provide feedback within a couple of days.

potteryhouse:

The attached file is a "Quick Fix", please test it to see if it does what you want before using on an active site.
The file will replace: stock_by_attribute\admin\includes\classes\products_with_attributes_stock.php
I suggest you back up before using this.
It will give you a search box, no product listing, and you must know the product ID number or product name to search for it (I commented out the model number as it gave me too many returns, you can change it back if you like, it is still in the file on line 115). [Attachment no longer available]

Let me know how it goes please.

FYI, I have been trying to get pagination working with no good results as of yet.

13 Aug 2013, 5:30 AM
#1649
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

Oh my god I just found out I have an issue after installing this attribute module.

here is my website: http://www.minicoboutique.com
ZC version: 1.3.9.h

I have 2 types of products, the first one is no attributes needed, the second one is attributes needed. So I installed this Stock by Attribute module.

But I just realized only the products with attributes shows can be ordered, the products without attributes can't be ordered neither show detail.

Example:
With attributes: http://www.minicoboutique.com/index.php?main_page=product_info&cPath=1&products_id=92
Without attributes: http://www.minicoboutique.com/index.php?main_page=product_info&cPath=1&products_id=87

Looks like the products without attributes will be counted as 0 quantity even through I added quantity on product/category pages!? How can I fix it??

Thanks!!! :(

13 Aug 2013, 3:18 PM
#1650
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

Which version of the MOD did you install?
For Zen Cart 1.3.x you should have used Stock by Attributes - Version: 1.4.14
This is noted on the download page and in the installation instructions.

You may need to check your setting under Configuration/Stock
In there you have an option to allow checkout with low and out of stock items, this may need to be set to true.

Remember to ALWAYS test mods out on a local test server before putting them onto an active store, all too often mods will conflict with other mods you have installed. Because of the large number of mods available we seldom know of a problem until someone runs into it.

13 Aug 2013, 7:39 PM
#1651
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

potteryhouse:

Which version of the MOD did you install?
For Zen Cart 1.3.x you should have used Stock by Attributes - Version: 1.4.14
This is noted on the download page and in the installation instructions.

You may need to check your setting under Configuration/Stock
In there you have an option to allow checkout with low and out of stock items, this may need to be set to true.

Remember to ALWAYS test mods out on a local test server before putting them onto an active store, all too often mods will conflict with other mods you have installed. Because of the large number of mods available we seldom know of a problem until someone runs into it.

Thank you for reply sir.

I checked the mod version is 1.4.14, Allow checkout is set as TRUE in Configuration/Stock. Do I still miss something?

Thanks... :(

14 Aug 2013, 12:54 AM
#1652
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

maishane:

I checked the mod version is 1.4.14, Allow checkout is set as TRUE in Configuration/Stock. Do I still miss something?

You might also set "Configuration/Stock/Check stock level" to false
Just to see if that is causing the problem.

14 Aug 2013, 1:59 AM
#1653
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

potteryhouse:

You might also set "Configuration/Stock/Check stock level" to false
Just to see if that is causing the problem.

Just turned it to FALSE, doesn't improve...

:no:

14 Aug 2013, 1:07 PM
#1654
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

maishane:

Just turned it to FALSE, doesn't improve...

:no:

I have taken a few minutes today to create (merged/update) a Zen Cart 1.3.9h version of the mod I updated for Zen Cart 1.5.1.
BUT, I have not yet tested it as I do not have a stable setup of the older zen cart store (we moved onto the 1.5.1 version), if anyone has a TEST store to try this on I can provide them with the test version. It should provide all the newer options and fix a couple of bugs, but needs to be tested prior to use on any active store.

14 Aug 2013, 2:34 PM
#1655
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

potteryhouse:

I have taken a few minutes today to create (merged/update) a Zen Cart 1.3.9h version of the mod I updated for Zen Cart 1.5.1.
BUT, I have not yet tested it as I do not have a stable setup of the older zen cart store (we moved onto the 1.5.1 version), if anyone has a TEST store to try this on I can provide them with the test version. It should provide all the newer options and fix a couple of bugs, but needs to be tested prior to use on any active store.

I think I do have a 1.3.9h site ok for testing, will message you later. :)

14 Aug 2013, 5:31 PM
#1656
rbranden avatar

rbranden

New Zenner

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

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

After install I am getting a blank admin page.
Below is the error in cache.

[14-Aug-2013 12:20:12] PHP Fatal error: Call to undefined function zen_draw_admin_box() in /home/naweoa/public_html/naweoastore/admin/includes/boxes/catalog_dhtml.php on line 44

replacing the
admin/includes/function/general.php file with the old file gets the page up again but without the Stock by Attribute function of course.

I have changed the name of my admin folder for security. I have also changed the name of my admin folder to match in this post error message.

14 Aug 2013, 6:27 PM
#1657
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

rbranden:

After install I am getting a blank admin page.
Below is the error in cache.

[14-Aug-2013 12:20:12] PHP Fatal error: Call to undefined function zen_draw_admin_box() in /home/naweoa/public_html/naweoastore/admin/includes/boxes/catalog_dhtml.php on line 44

replacing the
admin/includes/function/general.php file with the old file gets the page up again but without the Stock by Attribute function of course.

I have changed the name of my admin folder for security. I have also changed the name of my admin folder to match in this post error message.

Based on what you said, I assume you are using Zen Cart version 1.3.9 and the mod version 1.4.14, would that be correct??
(Note that The "zen_draw_admin_box" function is not a part of Zen Cart 1.5 and that the "dhtml.php" is no longer used in 1.5).

15 Aug 2013, 4:22 AM
#1658
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

potteryhouse:

I have taken a few minutes today to create (merged/update) a Zen Cart 1.3.9h version of the mod I updated for Zen Cart 1.5.1.
BUT, I have not yet tested it as I do not have a stable setup of the older zen cart store (we moved onto the 1.5.1 version), if anyone has a TEST store to try this on I can provide them with the test version. It should provide all the newer options and fix a couple of bugs, but needs to be tested prior to use on any active store.

Now I try to install the 1.4.14 ver of mod to Zen 1.3.9.h (Not the test site), I overwrite all files and execute the sql file but get this error:

1062 Duplicate entry 'STOCK_SHOW_LOW_IN_CART' for key 'unq_config_key_zen'
in:
[INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('Show available stock level in cart when less than order', 'STOCK_SHOW_LOW_IN_CART', 'false', 'When customer places more items in cart than are available, show the available amount on the shopping cart page:', '9', '6', NULL, now(), NULL, "zen_cfg_select_option(array('true', 'false')," ), ('Display Images in Admin', 'STOCK_SHOW_IMAGE', 'false', 'Display image thumbnails on Products With Attributes Stock page? (warning, setting this to true can severly slow the loading of this page):', '9', '6', NULL, now(), NULL, "zen_cfg_select_option(array('true', 'false')," );]
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 can't remember if I upload this sql file before but I think I never gotten this message. Will this cause the issue? How can I fix this??

15 Aug 2013, 4:56 AM
#1659
maishane avatar

maishane

New Zenner

Join Date:
Aug 2012
Posts:
21
Plugin Contributions:
0

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

Sir I like to inform you that I fix the issue. I made so stupid mistake when I changed tpl_product_info_display.php, I put an extra } mark right after the attribute part so the template can't load product info properly.

I deeply appreciate your help and wish you the best. Thank you so very much :D

15 Aug 2013, 6:50 AM
#1660
chargin avatar

chargin

Zen Follower

Join Date:
Sep 2011
Posts:
136
Plugin Contributions:
0

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

potteryhouse:

The attached file is a "Quick Fix", please test it to see if it does what you want before using on an active site.
The file will replace: stock_by_attribute\admin\includes\classes\products_with_attributes_stock.php
I suggest you back up before using this.
It will give you a search box, no product listing, and you must know the product ID number or product name to search for it (I commented out the model number as it gave me too many returns, you can change it back if you like, it is still in the file on line 115). [Attachment no longer available]

Let me know how it goes please.

FYI, I have been trying to get pagination working with no good results as of yet.

This had worked out great for me, the stock edits are way faster now, love it.

The only feature I could see as being handy would be after editing or adding a stock level and hitting save, the page loaded next could show that product and its stock/attribute levels. That might be tricky though I dont know.

Thanks for this update, Im using it on a live site with no problems.