Zen Cart Logo
Forums / Addon Admin Tools / Additional Product Images addon

Additional Product Images addon

Views: 36,161

Results 81 to 100 of 114
12 Sep 2014, 12:37 AM
#81
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Additional Product Images addon

I haven't used this additional images mod myself, so you know more than me about its usage methods. If you have found ways that make it work, you should stick with them. I take it from your comments that uploading additional images with the mod without naming them like *_1.jpg etc. did not work?

30 Sep 2014, 6:57 PM
#82
vescera avatar

vescera

New Zenner

Join Date:
Sep 2010
Posts:
24
Plugin Contributions:
0

Re: Additional Product Images addon

How can I set additional images in 3 rows they are all in one vertical line.
Number of Additional Images per Row set to 3 dont work. Please help

30 Sep 2014, 10:58 PM
#83
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Additional Product Images addon

vescera:

How can I set additional images in 3 rows they are all in one vertical line.
Number of Additional Images per Row set to 3 dont work. Please help

Add these 2 line to your stylesheet.css. I added this module to one of my clients site a while back and had the same problem.

#productAdditionalImages{display:inline;float:left;margin:0 auto;width:200px}
#productAdditionalImages img{margin-left:5px;margin-right:5px;display:inline;float:right}

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

1 Oct 2014, 7:18 PM
#84
vescera avatar

vescera

New Zenner

Join Date:
Sep 2010
Posts:
24
Plugin Contributions:
0

Re: Additional Product Images addon

countrycharm:

Add these 2 line to your stylesheet.css. I added this module to one of my clients site a while back and had the same problem.

#productAdditionalImages{display:inline;float:left;margin:0 auto;width:200px}
#productAdditionalImages img{margin-left:5px;margin-right:5px;display:inline;float:right}

Thanx for info for me this give me more or less good result

.additional-images {float: left; margin-right: 0.1em;}

.navNextPrevWrapper {clear: both;}

2 Oct 2014, 1:57 AM
#85
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Additional Product Images addon

vescera:

Thanx for info for me this give me more or less good result

Whatever worked for you..... :)
I know others had problems too getting it to show in rows so I wanted to share....

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

29 Oct 2014, 2:37 PM
#86
vescera avatar

vescera

New Zenner

Join Date:
Sep 2010
Posts:
24
Plugin Contributions:
0

Re: Additional Product Images addon

ianhg:

Have you tried looking into this:
Add to tpl_modules_additional_images.php thanks to Brandon Walters

require(DIR_WS_MODULES . zen_get_module_directory('additional_images.php'));
?>

<?php if ($additional->RecordCount() > 0) { ?> <div id="productAdditionalImages"> <!-- Fix for broken click to enlarge - Brandon Walters <http://www.bwaltdesigns.com> --> <?php while(!$additional->EOF) { echo '<div class="additional-images"><a href="images/' .$additional->fields['additional_image']. '" rel="lightbox">'.zen_image(DIR_WS_IMAGES . $additional->fields['additional_image'], '', ADDITIONAL_SMALL_IMAGE_WIDTH, ADDITIONAL_SMALL_IMAGE_HEIGHT).'</a></div><br/>'; $additional->MoveNext(); } ?> </div> <?php } ?>

This working great but is there solution for next/previous button on additional images? THANX

30 Oct 2014, 12:52 AM
#87
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Additional Product Images addon

vescera:

This working great but is there solution for next/previous button on additional images? THANX

A link to your site would be great to see what going on.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

25 Sep 2015, 9:08 PM
#88
sweetmade avatar

sweetmade

New Zenner

Join Date:
Jan 2008
Posts:
22
Plugin Contributions:
0

Re: Additional Product Images addon

I WISH i had read here before INSTALLING THIS MOD, I can not uninstall it as it brakes my product page, and description vanishes of my product. sigh, and when i install image handler on top of it it also doesn't work :( sigh i don't know what to do, i am stuck with these non clickable images, seems like the creator of the plugin gave up on helping :(

9 May 2017, 7:28 PM
#89
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Additional Product Images addon

countrycharm:

Add these 2 line to your stylesheet.css. I added this module to one of my clients site a while back and had the same problem.

#productAdditionalImages{display:inline;float:left;margin:0 auto;width:200px}
#productAdditionalImages img{margin-left:5px;margin-right:5px;display:inline;float:right}

This is still showing vertical for me even though I have set the number per row in admin. Any ideas?

Doh sorted it now. How do I delete this reply?

24 May 2017, 11:13 PM
#90
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Additional Product Images addon

Help! I installed this mod and it never worked. So I uninstalled and removed the files. Now I got this error:

#1 require() called at [/xxxx/xxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php:13]
#2 require(/xxx/xxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php) called at [/xxxx/xxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/templates/tpl_product_info_display.php:83]
#3 require(/xxxx/xxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/templates/tpl_product_info_display.php) called at [/xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/modules/pages/product_info/main_template_vars.php:178]
#4 require(/xxxx/xxxxx/public_html/morrisgiftshop.biz/includes/modules/pages/product_info/main_template_vars.php) called at [/xxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#5 require(/xxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [/xxxx/xxxx/public_html/morrisgiftshop.biz/index.php:97]

[24-May-2017 17:57:28 America/Chicago] PHP Warning: require(includes/modules/additional_images.php): failed to open stream: No such file or directory in /xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php on line 13
[24-May-2017 17:57:28 America/Chicago] Request URI: /victorian-verdigris-wind-chimes-p-185, IP address: 50.26.26.88
#1 require() called at [/xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php:13]
#2 require(/xxxx/xxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php) called at [/xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/templates/tpl_product_info_display.php:83]
#3 require(/xxxxxx/xxxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/templates/tpl_product_info_display.php) called at [/xxxxxx/xxxxxx/public_html/morrisgiftshop.biz/includes/modules/pages/product_info/main_template_vars.php:178]
#4 require(/xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/modules/pages/product_info/main_template_vars.php) called at [/xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php:251]
#5 require(xxxxx/xxxxxx/public_html/morrisgiftshop.biz/includes/templates/responsive_sheffield_blue/common/tpl_main_page.php) called at [xxxxx/xxxxxxx/public_html/morrisgiftshop.biz/index.php:97]

[24-May-2017 17:57:28 America/Chicago] PHP Warning: require(includes/modules/additional_images.php): failed to open stream: No such file or directory in /xxxxx/xxxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php on line 13
[24-May-2017 17:57:28 America/Chicago] PHP Fatal error: require(): Failed opening required 'includes/modules/additional_images.php' (include_path='.:/opt/php70/lib/php') in /xxxxx/xxxxxx/public_html/morrisgiftshop.biz/includes/templates/template_default/templates/tpl_modules_additional_images.php on line 13

Missing my Product Info Pages and my right side column. I am using Responsive Sheffield Blue Template. Please Help

24 May 2017, 11:30 PM
#91
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Additional Product Images addon

wmorris:

PHP Warning: require(includes/modules/additional_images.php): failed to open stream: No such file or directory

I am using Responsive Sheffield Blue Template.

includes/modules/additional_images.php

Re-upload the above file using either the original in Responsive Sheffield Blue Template or from default Zen Cart.

The learning is in the doing.

Potent Products

17 Sep 2017, 6:38 PM
#92
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Additional Product Images addon

How can we display additional upload on edit/create product page so additional images can be uploaded when creating or updating product?

24 Jan 2018, 6:17 AM
#93
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Additional Product Images addon

jsarwar:

How can we display additional upload on edit/create product page so additional images can be uploaded when creating or updating product?

Yes! I have created a brand new plugin to perform this exact function which will be available shortly.

Twitch Additional Product Images Admin for Mobile/Tablet/Desktop Upload

Please refer to the new module thread:
https://www.zen-cart.com/showthread.php?223468-Twitch-Additional-Product-Images-Admin-for-Mobile-Tablet-Desktop-Upload&highlight=twitch+additional+images

**Please note: ** The new module is **NOT **based on the module being discussed in this thread. I simply did not see a point in continuing with the original coding structure in this addon so, I started from scratch. If this Additional Product Images addon has features you want/need please continue to support further development.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

25 Jan 2018, 5:08 AM
#94
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Additional Product Images addon

I'd forgotten that a little while ago I was asked to update this module for ZC 1.5.5 partially because in communication it took a little while to be notified of satisfaction of the changes. Anyways, just uploaded version 2.1 of the plugin:

What's new in Version 2.1:
Modified only the ZC 1.5.x portion:

  • Added an auto-installer.
  • Moved majority of code to an observer.
  • Supports presentation using the layout of the existing ZC template instead of what was previously developed.
  • Modified plugin to support using the images of this plugin in addition to the additional images normally loaded through ZC, not just one or the other so now images of this plugin can be shown in addition to the standard additional images, instead of the additional images. The standard method is still available which means that the standard additional images will be displayed in the "html format" that was originally used.
  • The sequence of the images can be altered such that the images of this plugin can be shown first or after other additional images of the plugin.

Once reviewed and approved it should be available here.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 Feb 2018, 7:42 PM
#95
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Additional Product Images addon

mc12345678:

I'd forgotten that a little while ago I was asked to update this module for ZC 1.5.5 partially because in communication it took a little while to be notified of satisfaction of the changes. Anyways, just uploaded version 2.1 of the plugin:

Once reviewed and approved it should be available here.
Version 2.1 has been reviewed and posted. It is available from here.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Feb 2018, 12:54 PM
#96
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Additional Product Images addon

mc12345678:

Version 2.1 has been reviewed and posted. It is available from here.

For users that have upgraded to version 2.1.0, be advised that although the confirmation email of submitting the plugin does not identify what version designation I entered, I believe I submitted the plugin's version to include a v as a prefix. Regardless, because the v is currently present as the first character, currently when checking for an updated version the software is incorrectly reporting that a more up-to-date version is available.

I am requesting that the version information returned be modified to remove the v from the prefix of the version response to correct this. I will also be adding some notes into the installer as a reminder for anyone submitting an updated version when using that installer process on how to enter the information for future submissions...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 Mar 2019, 4:57 PM
#97
juvar avatar

juvar

New Zenner

Join Date:
Jun 2009
Posts:
7
Plugin Contributions:
0

Re: Additional Product Images addon

Fatal bug found: I installed this addon, but it does not worked. I have Zen Cart version 1.5.5. Error was in database. "Field 'category_id' doesn't have a default value". I changed it to null and now it works. Went many days to find the fault because Zen Card does not display error messages.

7 Mar 2019, 6:11 PM
#98
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Additional Product Images addon

juvar:

Fatal bug found: I installed this addon, but it does not worked. I have Zen Cart version 1.5.5. Error was in database. "Field 'category_id' doesn't have a default value". I changed it to null and now it works. Went many days to find the fault because Zen Card does not display error messages.
Mind identifying under what server configuration this issue was found?

Note, the category_id field doesn't even appear to be used; however, it does appear that it may have been added to possibly include the ability to add additional images to a category view. If so, that code didn't make it into the distribution.

As to the lack of "display" of error logs, that is correct error logs are not displayed by a vanilla install of Zen Cart, though if they are being generated they can be made available in the admin by the plugin display logs or can be seen by ftp to the server and review of the logs folder. If they are not being generated, then recommend beginning a new thread as that issue is not pertinent to this plugin.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Mar 2019, 4:57 AM
#99
juvar avatar

juvar

New Zenner

Join Date:
Jun 2009
Posts:
7
Plugin Contributions:
0

Re: Additional Product Images addon

mc12345678:

Mind identifying under what server configuration this issue was found?

As to the lack of "display" of error logs, that is correct error logs are not displayed by a vanilla install of Zen Cart, though if they are being generated they can be made available in the admin by the plugin display logs or can be seen by ftp to the server and review of the logs folder. If they are not being generated, then recommend beginning a new thread as that issue is not pertinent to this plugin.

That is good to know. Thanks. Server information:

Apache Version: 2.4.37
PHP Version: 7.2.14
MySQL Version: 5.6.41
Architecture: x86_64
Operating System: linux

This is not only bug that needs to solve because this addon does not work at all. Second fatal bug is in additional_products_image.php on line 82. This line is wrong:

echo zen_draw_products_pull_down('products_id', 'size="10"', '', true, $_GET['products_filter'], true, true);

For some unknown reason there is extra parameters and that is why it does not render at all. It needs to be like this:

echo zen_draw_products_pull_down('products_id','',$_GET['products_filter']);

Here is reference for that:
https://www.zen-cart.com/docs/phpdoc-1-5-5/packages/functions.html#function_zen_draw_products_pull_down

Now I continue hard work and try to get my Zen Cart to work. This seems to be a part of normal workflow with Zen Cart. It is very buggy software... Anything does not work as expected. Good side is that it's easy to edit source code.

8 Mar 2019, 6:34 AM
#100
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Additional Product Images addon

juvar:

That is good to know. Thanks. Server information:

Apache Version: 2.4.37
PHP Version: 7.2.14
MySQL Version: 5.6.41
Architecture: x86_64
Operating System: linux

This is not only bug that needs to solve because this addon does not work at all. Second fatal bug is in additional_products_image.php on line 82. This line is wrong:

echo zen_draw_products_pull_down('products_id', 'size="10"', '', true, $_GET['products_filter'], true, true);

> 
> For some unknown reason there is extra parameters and that is why it does not render at all. It needs to be like this:
> 
> ```
echo zen_draw_products_pull_down('products_id','',$_GET['products_filter']);

Here is reference for that:
https://www.zen-cart.com/docs/phpdoc-1-5-5/packages/functions.html#function_zen_draw_products_pull_down

Now I continue hard work and try to get my Zen Cart to work. This seems to be a part of normal workflow with Zen Cart. It is very buggy software... Anything does not work as expected. Good side is that it's easy to edit source code.
You might want to check your software installation as the file admin/additional_product_images.php uses the admin function zen_draw_products_pull_down that is located in admin/includes/functions/general.php which is defined as:

zen_draw_products_pull_down($name, $parameters = '', $exclude = '', $show_id = false, $set_selected = false, $show_model = false, $show_current_category = false) {

Don't know why it has been modified in your admin side.

Also, extra parameters do not cause a function to fail, having the wrong parameters lined up to the wrong inputs can cause a problem.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...