mito0930:
Thank you for your reply. I've reinstalled Zen Cart again just in case it wasn't any plugins I forgot to uninstall clashing, but the problem still persists even after following all instructions and reinstalling the plugin.
When I switch to show with the plugin to the original display style, all the product details and 'add to cart' box disappears, so I'm using the default ZC display option. I haven't added any additional images through FTP, just with the plugin.
Here's what the latest log has
--> PHP Warning: Use of undefined constant PRODUCTS_OPTIONS_TYPE_SELECT_SBA - assumed 'PRODUCTS_OPTIONS_TYPE_SELECT_SBA' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 280.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ATTRIB_LEVEL_STOCK - assumed 'STOCK_SHOW_ATTRIB_LEVEL_STOCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 319.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ATTRIB_LEVEL_STOCK - assumed 'STOCK_SHOW_ATTRIB_LEVEL_STOCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 328.
--> PHP Warning: Use of undefined constant PRODUCTS_OPTIONS_TYPE_SELECT_SBA - assumed 'PRODUCTS_OPTIONS_TYPE_SELECT_SBA' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 416.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ORIGINAL_PRICE_STRUCK - assumed 'STOCK_SHOW_ORIGINAL_PRICE_STRUCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 430.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
--> PHP Warning: Use of undefined constant PRODUCTS_OPTIONS_TYPE_SELECT_SBA - assumed 'PRODUCTS_OPTIONS_TYPE_SELECT_SBA' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 280.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ATTRIB_LEVEL_STOCK - assumed 'STOCK_SHOW_ATTRIB_LEVEL_STOCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 319.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ATTRIB_LEVEL_STOCK - assumed 'STOCK_SHOW_ATTRIB_LEVEL_STOCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 328.
--> PHP Warning: Use of undefined constant PRODUCTS_OPTIONS_TYPE_SELECT_SBA - assumed 'PRODUCTS_OPTIONS_TYPE_SELECT_SBA' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 416.
--> PHP Warning: Use of undefined constant STOCK_SHOW_ORIGINAL_PRICE_STRUCK - assumed 'STOCK_SHOW_ORIGINAL_PRICE_STRUCK' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 430.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
--> PHP Warning: Use of undefined constant PRODINFO_ATTRIBUTE_DYNAMIC_STATUS - assumed 'PRODINFO_ATTRIBUTE_DYNAMIC_STATUS' (this will throw an Error in a future version of PHP) in
/includes/classes/observers/class.products_with_attributes_stock.php on line 455.
> Based on what the logs are telling me the Stock By Attributes plugin I added on is giving me errors. Is there a way to fix this or should I uninstall Additional Images and upload additional images through FTP?
The above log info is a result of two things, one not running the install and two apparently that portion of code isn't written to be loaded to the server without executing the install. Either way that log is appears unrelated to the internal issue with additional images, though would suggest to complete the install of SBA and then test again.
> **mito0930:**
>
> Forgot to put in the script code I mentioned that's in html_header.php
> ```
<script type="text/javascript">
$(document).ready(function() {
var origsrc = $("#productMainImage a img").attr("src");
$("#productAdditionalImages .additionalImages a img").hover(
function () {
$("#productMainImage a img").attr('src', this.src);
},
function () {
$("#productMainImage a img").attr('src', origsrc);
}
);
});
</script>
Ahh, that script code. Well, that's not causing the absence of all code between the opening and closing comments of the additional images section.
So let's go back to the basics. What version of Zen Cart, what plugins are installed? It sounds like it was working before, but then something changed, what changed? How was it restored? If used a backup/restore utility, then likely files that had been added between the last backup and current restore were not removed, but files that had been modified or deleted were restored...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...