Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
Dragon718
Thank you very much for your support after removing everything I uploaded. I uploaded the newest version everything working fine.
Welcome, glad it woked out. I had even set up a new site with ths plugn, just to verify functionalty. While it worked I did find a few more places to add some checks for full installation in the event it takes a while to install the sql portion of the plugin ao as not to interfere with visitor's shoppng while installing. I'll be updating the code soon. I've also iidentified all of the files that are shared with ZC and those that are newly added. Have to figure out how best to present that whether a new version, all as one version or keep them separate as they are now...
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Im having problem to install the Stock by Attribute v 1.5.3 When I run the run the install get this error:
PHP Catchable fatal error: Object of class queryFactoryResult could not be converted to string in admin/stock_by_attr_install.php on line 125
I cannot find the fix anywhere. Could you please help? I have ZenCart 1.5.3 and PHP 5.5
Thank in advance
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
maxpayne381
Im having problem to install the Stock by Attribute v 1.5.3 When I run the run the install get this error:
PHP Catchable fatal error: Object of class queryFactoryResult could not be converted to string in admin/stock_by_attr_install.php on line 125
I cannot find the fix anywhere. Could you please help? I have ZenCart 1.5.3 and PHP 5.5
Thank in advance
Should be trying to install Stock By Attribute v1.5.4 on a ZC 1.5.3 version...
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Just fixed my problem updating Stock Attribute 1.5.3 to 1.5.4
https://github.com/potteryhouse/stoc...ttribute_1.5.4
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
maxpayne381
Good to hear!
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Experience an issue in SBA 1.5.4 version as well. It works fine with one attribute but Im using 2 (color - read only, size - dropdown).
As soon as the color is set for product the size is not showing / working. Same for the color this attribute is not shown on product info page at all.
Im wondering if its the settings issue or something in the code. Please help, thank you.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
maxpayne381
Experience an issue in SBA 1.5.4 version as well. It works fine with one attribute but Im using 2 (color - read only, size - dropdown).
As soon as the color is set for product the size is not showing / working. Same for the color this attribute is not shown on product info page at all.
Im wondering if its the settings issue or something in the code. Please help, thank you.
My guess is that there are html validation issues with the template. Javascript is used and in this area if there are validation issues then the javascript (subsequent set of values) do not work... Or stock may not be entered correctly ie out of stock but other notifications are turned off... Although I can't help deeply at the moment with review of the source code, but there are online tools that can identify discrepancies.
What's the website?
Ohhh, and read-only isn't yet captured... What's the reason for having a read-only attribute of color instead of a selectable color?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Thanks for your reply. The read only attributes work fine until I add SBA then it disappear. I want to have read only as our products have only one color each. The attribute should be there so it can be working with dynamic filters on listing page.
The aim is to have attribute which doesnt have to be selected but can be picked by dynamic filter. Any ideas how to do this?
We can have color in selection box but would be better if its selected... now it says First Select Color.
One more issue I have is to show Out of stock... If I select show quantities the Out of Stock works fine = is not able to select but I can see the quantities per other attributes which is not good. If I turn this off then I cannot see the stock but Out of Stock is there and able to select and put into shopping bag. Is there any fix or setting for this or do I need to find and change in the code?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Quote:
Originally Posted by
maxpayne381
Thanks for your reply. The read only attributes work fine until I add SBA then it disappear. I want to have read only as our products have only one color each. The attribute should be there so it can be working with dynamic filters on listing page.
The aim is to have attribute which doesnt have to be selected but can be picked by dynamic filter. Any ideas how to do this?
We can have color in selection box but would be better if its selected... now it says First Select Color.
One more issue I have is to show Out of stock... If I select show quantities the Out of Stock works fine = is not able to select but I can see the quantities per other attributes which is not good. If I turn this off then I cannot see the stock but Out of Stock is there and able to select and put into shopping bag. Is there any fix or setting for this or do I need to find and change in the code?
So let me try to explain how all this fits together... Stock quantities for a multiple attribute combination can not be shown without using something like javascript at least if a change in one selection has an effect on the other(s)... It is possible to show each/all attributes without using the dynamic dropdown option(s); however, then the attribute quantity will not be shown if the item is considered to have multiple attributes... The dynamic dropdown code has not yet been written to properly incorporate read only attributes.. At this time it expects one to "select" the read only attribute which isn't selectable. The other thing not discussed here is how are the variants entered... There are a number of variables to the setup including the discussion of the above in regards to out-of-stock, quantities displayed, etc... It is some of this complexity that I see is one reason it has not yet been incorporated into ZC as a base feature...
So, then there is the issue of the read-only attribute... Have you tried swapping the sort order of them for one? Also there is a setting at least in ZC 1.5.4 associated with how read-only attributes are treated when adding to the cart, haven't tried it yet, but supposedly it would treat the read-only attribute as a hard item against the stock check... Another thought is that if there is only one color to be "chosen" then make it a dropdown attribute by itself (meaning could make it default, and have no other option value in the list. It will/would force selection when using dynamic dropdowns and sure be an "extra" step, but it would be work under the current arrangement of the plugin.
There is a goal and work being done to incorporate read-only attributes to be used in any/all ways that seem to be applicable; however, this is being supported on an as able basis at this time with other projects having a priority based on commitment...
You might be able to make changes to the includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php file, or includes/modules/YOUR_TEMPLATE/attributes.php or one of the dynamic dropdown class files in includes/classes with the filename format of pad_*_dropdown*.php or radioset...
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
Since installed SBA other option types not working e.g. checkbox, drop down etc.
When click on "add to cart" item add to cart but shopping cart page shows error "WARNING: An Error occurred, please refresh the page and try again."
Error log shows
Code:
[05-Nov-2015 22:51:59 America/New_York] PHP Warning: mysqli_query(): Empty query in /home/---/public_html/includes/classes/db/mysql/query_factory.php on line 43
[05-Nov-2015 22:51:59 America/New_York] PHP Fatal error: 0: :: ==> (as called by) /home/---/public_html/includes/functions/extra_functions/products_with_attributes.php on line 155 <== in /home/---/public_html/includes/classes/db/mysql/query_factory.php on line 155
any idea how to use checkbox as some product have only 1 attribute (optional addition) for customers and want to display with checkbox so they can select it per their choice.