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.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
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.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
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
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').Code:if ($this->queryReturnFlag == TRUE) return;
Oke thanks, i did not know, i thought == meant exactly equal to. I learned something today :-)
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>';
Bookmarks