ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I'm updating SbyA with the most recent github files (downloaded today, Aug 22 2016) and I threw in the change in the autoinstall from a few posts back.
I am currently using zc 1.5.5a and ResponsiveSheffiledBlue adapted to 1.5.5a with changes suggested by rbarbour, drB and others.
There are two files: admin/incl/init_incl/initzc154compatability and admin/autoinstallers/config154compatability.
Do I/should I keep those two files, or remove - ie are they applicable only to 1.5.4 or "1.5.4 and later"
Actually, neither. :) they are to provide compatibility of older ZC versions to work (at least in part) with software written for plugins to be compatible with ZC 1.5.4 and higherto less than ZC 1.5. that use functionality that was added in ZC 1.5.4 (admin database change logging). In other words, they are non-essential for plugins running on ZC 1.5.4 and above and can be safely removed from a store that includes all of the functionality of an existing ZC 1.5.4 store (or higher).
Last edited by mc12345678; 23 Aug 2016 at 04:04 AM.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I've got SBA Version 1.5.4 for Zen Cart Version 1.5.4 and it's been running fine for months.
Today, I've added a downloadable product but can't add it to the shopping cart. I get 'Your shopping cart is empty'. Error log says:
PHP Warning: Missing argument 1 for queryFactoryResult::__construct(), called in /home/ACCOUNT_NAME/public_html/includes/templates/herbally/templates/tpl_modules_attributes.php on line 28 and defined in /home/ACCOUNT_NAME/public_html/includes/classes/db/mysql/query_factory.php on line 550
I've checked the product is set-up correctly for a downloadable product.
I was a little unclear if the option value needed to get set to Read Only or not, so tried both.
Suggest trying one of the updated versions of the file which can be found in the main install. The file in question is as reported: includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php. That file was updated in April of this year to address that particular error. At least as things appear in the history for that file and that line number... Though not entirely sure how that error plays into the adding of the product to the cart. Further, think would need more information about how things are setup in order to advise further on a downloadable only product, especially with having an older version of the file(s).
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
Well, I would actually say that something else is installed that is interfering.
Reason is, the error shown on the previous post at line 28 of includes/templates/YOUR_TEMPLATE/templates/tpl_modules_attributes.php for the version of the file between April and about June of this year began passing the database credentials for generation of the queryfactoryresult class variable. This only became necessary in ZC 1.5.5 because of changes made to includes/classes/db/mysql/query_factory.php. In previous versions of ZC, that variable was not needed, and in fact if it was passed to the function, would be ignored by a default install because it would be an excess parameter that is/was not handled by ZC and therefore would not cause a problem. If though, that zc file were replaced by some other plugin, the additional variable may become necessary and if the template file of the current set was used, it would attempt to pass it properly and not through an error.
That said and as questioned, the line 28 code would only be run if the product for any of many different reasons was not to be displayed as a SBA tracked product, one that matters specifically to adding the product to the shopping cart is whether the products_id is listed at all in the products_with_attributes_stock table (all such entries appear in the admin control screen for SBA under the catalog dropdown).
Now, the other thing, which was an issue with ZC 1.5.4, is that there are error messages not pushed to the screen when there is a problem with adding product to the cart. Unfortunately I don't recall the specific work around that was necessary, but it may be addressed in the known issues with ZC 1.5.4. I do know that Ajeh had weighed in on the matter in one of the past/previous threads.
Beyond that, SBA doesn't evaluate any of the settings shown in the previous images in relation to non-SBA tracked product (products_id not identified in the PWAS table), so the issue would not specifically be with SBA processing, but instead something else that has been done/installed and that a file modified by SBA is showing the result of that other change.
It is something I have wanted to remove so that code like what is found on your version of the template file is no longer "necessary" as it was added at one point to make the file "easier" to follow and require less alternate/additional code. Now it just seems to complicate modification and be seen as the reason for some other mistake unrelated to SBA.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
While I was using SBA Version 1.5.4, it was an older version of that version. It was one of the early versions from GitHub. I've updated the installed version to the current one from GitHub and problem solved. I never bothered to update it as everything was working fine. You know, "if it ain't broke, don't fix it". Hope it helps someone else.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I'm sorry if this has been asked already, but I'm getting duplication of attribute options on the frontend. Not sure why this is happening. I attached some images for you to check out. It also says GREY with any size is out of stock which is not how I have it set up. Let me know if anything is set up wrong. Running ZC 1.5.4. Thanks!
![]()
Bookmarks