Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Quote:
Originally Posted by
jeking
The current version of SBA available from this site is not compatible with Zen Cart 1.5.3. A new version is in testing but has not been released yet.
Ok, thanks for the information.
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Quote:
Originally Posted by
P.M.
I'm using the latest version of Stock by Attribute on my newly upgraded version of Zencart 1.5.3 from 1.5.1
Some of my drop down menus are not working correctly, allowing you to select "out of stock" items.
This product's drop down menu is working correctly, not allowing your mouse pointer to select "out of "stock" sizes.
http://vaultofdriedbones.com/shop/in...oducts_id=1590
However, this product as well as others allows you to select "out of stock" sizes and add them to your shopping cart. The items are out of stock and once added to the shopping cart you cannot proceed with the order until you remove the products with 0 quantities available.
http://vaultofdriedbones.com/shop/in...oducts_id=1577
I go through the same steps for each product when creating the products id, the products attributes and then setting the SBA quantities.
Has anyone encountered this problem, and do you know how to fix it?
Quote:
Originally Posted by
jeking
The current version of SBA available from this site is not compatible with Zen Cart 1.5.3. A new version is in testing but has not been released yet.
It may not be the version that is the issue. If you notice the difference in the working/not working versions, the one that is "working has the option values greyed out and the text, while the one that is not working has the text only. What is the difference in option name types between the two? My guess is that the one "not working" is a standard dropdown, while the one "working" has the SBA added dropdown type that allows html control.
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Quote:
Originally Posted by
mc12345678
It may not be the version that is the issue. If you notice the difference in the working/not working versions, the one that is "working has the option values greyed out and the text, while the one that is not working has the text only. What is the difference in option name types between the two? My guess is that the one "not working" is a standard dropdown, while the one "working" has the SBA added dropdown type that allows html control.
Thanks for the guess mc12345678, there is only one option name, SIZE, and it looks like I selected "dropdown" in option names and not "SBA select list".
I'm updating the products in "option name" and it is now working correctly. Thank you for your help and time!
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Hi Jeking - fab module but I am looking for the 1.5.3 version - can I use from github or is it still BETA testing only?
Quote:
Originally Posted by
jeking
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
All code on GitHub should be considered as BETA. You're welcome to use it and provide any feedback. Take the necessary precautions, backup or install on a development cart first.
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Quote:
Originally Posted by
jeking
All code on GitHub should be considered as BETA. You're welcome to use it and provide any feedback. Take the necessary precautions, backup or install on a development cart first.
Agree with this fully and ask to take a look at the additional branches off of the master and provide input as well. I've uploaded some additional coding to expand on the functionality/ensure that default zC functionality is not lost for non-SBA tracked product. Awaiting feedback to merge into the master branch.
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
I'm testing it on a zencart 1.5.4 install.(development version)
On line 47 includes/classes/order.php there is a typo i think :
if ($this->queryReturnFlag === TRUE) return;
But so far so good. I also use super orders, edit orders and COWOA so it took some merging, because they all change this file.
Only thing i cant seem to get to work is editing directly in "Quantity in stock" field, although the "hint" says its possible.
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Quote:
Originally Posted by
karinvd
I'm testing it on a zencart 1.5.4 install.(development version)
On line 47 includes/classes/order.php there is a typo i think :
if ($this->queryReturnFlag === TRUE) return;
But so far so good. I also use super orders, edit orders and COWOA so it took some merging, because they all change this file.
Only thing i cant seem to get to work is editing directly in "Quantity in stock" field, although the "hint" says its possible.
No type, that's a PHP construct (===) that means "exactly equal to". The return will be taken if and only if the queryReturnFlag value is TRUE -- not 1, not 'true'. If the statement was coded as
Code:
if ($this->queryReturnFlag == TRUE) return;
then the return would occur if queryReturnFlag was true or 1 or '1' or 'true' or 'false'. It's a construct used mostly when a variable can contain a "mixed" value (i.e. the value could be true or 1 or 'true').
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
Oke thanks, i did not know, i thought == meant exactly equal to. I learned something today :-)
Re: Stock by Attribute v1.5.3 addon for Zen-Cart v1.5.1
I had a problem with combination of zen-colorbox2 and SBA. When i used an attribute with a drop down menu, the image did not load. On line 42 of includes\functions\extra_functions\products_with_attributes.php i found the next code which showed on a product page when i used a drop down menu, if i used a check box or a radio button it did not show and zen-colorbox2 worked fine. So i comment this line out.
Wil i get problems with?
Code:
$field = '<script src="'.DIR_WS_TEMPLATES . $template_dir . '/jscript/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("#attrib-'.$tmp_attribID.'").on("click", function(){
$("#SBA_ProductImage").attr("src", $(this).find(":selected").attr("data-src"));
});
});
</script>';