Forums / All Other Contributions/Addons / Additional product images - file non existant???

Additional product images - file non existant???

Results 1 to 12 of 12
05 Mar 2010, 04:26
#1
australian_caching avatar

australian_caching

Zen Follower

Join Date:
Feb 2010
Posts:
106
Plugin Contributions:
0

Additional product images - file non existant???

I am trying to install "Additional Product Images"
it is asking to modify "tpl_product_info_default.php", but this file is non existant.

"3, Then copy the below code to your tpl_product_info_default.php file which is located in includes/templates/YOUR_TEMPLATE/templates/ (YOUR_TEMPLATE is your template name) or includes/templates/template_default/templates/ to the location you want the Additional Images to display.

<?php require($template->get_template_dir('/tpl_modules_additional_imagess.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_imagess.php'); ?>'

ANY IDEAS anyone??
05 Mar 2010, 07:03
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Additional product images - file non existant???

I expect that was a typo for tpl_product_info_display.php, which is what additional images relate to.

And insert the given code in a copy of the file in
/includes/templates/your_template/templates/; never edit the original in /template_default/.
05 Mar 2010, 07:15
#3
australian_caching avatar

australian_caching

Zen Follower

Join Date:
Feb 2010
Posts:
106
Plugin Contributions:
0

Re: Additional product images - file non existant???

Works great, exactly what I was looking for, but can images be bigger?, they are thumbnail size.

Guy

gjh42:

I expect that was a typo for tpl_product_info_display.php, which is what additional images relate to.

And insert the given code in a copy of the file in
/includes/templates/your_template/templates/; never edit the original in /template_default/.
05 Mar 2010, 09:20
#4
ravi_gulhane avatar

ravi_gulhane

New Zenner

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

Re: Additional product images - file non existant???

yes the images can be bigger, you will have to set the size of the images from the admin panel. options Image - Additional Image Height, and Image - Additional Image Width and added in configuration->images, just set those..
12 Mar 2011, 18:07
#5
emmettc avatar

emmettc

New Zenner

Join Date:
Mar 2007
Posts:
2
Plugin Contributions:
0

Re: Additional product images - file non existant???

One thing not clear (to me) is where to put the code in the tpl_products_info_display.php file. Should it be added in main image:
/**
* display the main product image
*/
*new code*

Or should it replace the code there?

Emmett
21 Apr 2011, 23:51
#6
caguy avatar

caguy

New Zenner

Join Date:
Apr 2011
Posts:
34
Plugin Contributions:
0

Re: Additional product images - file non existant???

Australian Caching:

I am trying to install "Additional Product Images"
it is asking to modify "tpl_product_info_default.php", but this file is non existant.

"3, Then copy the below code to your tpl_product_info_default.php file which is located in includes/templates/YOUR_TEMPLATE/templates/ (YOUR_TEMPLATE is your template name) or includes/templates/template_default/templates/ to the location you want the Additional Images to display.

<?php require($template->get_template_dir('/tpl_modules_additional_imagess.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_imagess.php'); ?>'

ANY IDEAS anyone??


and this is confusing too:

includes/templates/YOUR_TEMPLATE/templates/ (YOUR_TEMPLATE is your template name) or includes/templates/template_default/templates/

Your_template/tempates/ I installed a template called pink something but there is no templates dir in my pink whatever template. There is however, templates/templates in the classic dir
22 Apr 2011, 00:08
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Additional product images - file non existant???

Sounds like your "pink whatever" template is not properly packaged. The instructions quoted are correct.
22 Apr 2011, 00:10
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Additional product images - file non existant???

A custom template can have any folders that /template_default/ has (but doesn't *need* them if there are not customized files to go in them).
22 Apr 2011, 04:55
#9
caguy avatar

caguy

New Zenner

Join Date:
Apr 2011
Posts:
34
Plugin Contributions:
0

Re: Additional product images - file non existant???

gjh42:

A custom template can have any folders that /template_default/ has (but doesn't *need* them if there are not customized files to go in them).


Does it matter where the code goes in the tpl_products_info_display.php file and are you saying to put this file in the pretty in pink template folder?

Please don't get me wrong but I wish I could get clear instructions.

If it doesn't *need* them, how can I put the line of code in the file if it doesn't exist? If I need to place the tpl_products_info_display.php or any other files in with my custom template, please say so. The instructions that came with the download wasn't very clear like most.

Thanks for the help thus far :cool:
22 Apr 2011, 05:10
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Additional product images - file non existant???

are you saying to put this file in the pretty in pink template folder?

how can I put the line of code in the file if it doesn't exist?

Take the time to read the tutorials and understand the template override system

https://www.zen-cart.com/tutorials/index.php?article=36
https://www.zen-cart.com/tutorials/index.php?article=346
The instructions that came with the download wasn't very clear like most.

They should be clearer after you understand
22 Apr 2011, 10:00
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Additional product images - file non existant???

"doesn't *need* them" might be better explained as "doesn't need them *all* ... ie: only needs to replicate the folders/files that you're customizing"

Again, as kobra said, the tutorial articles explain it in much more detail.
22 Apr 2011, 12:32
#12
caguy avatar

caguy

New Zenner

Join Date:
Apr 2011
Posts:
34
Plugin Contributions:
0

Re: Additional product images - file non existant???

kobra:

Take the time to read the tutorials and understand the template override system

https://www.zen-cart.com/tutorials/index.php?article=36
https://www.zen-cart.com/tutorials/index.php?article=346

They should be clearer after you understand


Now that's the answer I needed. :clap:

It gets a little frustrating at times when you're a total newbie to this sort of thing. I think sometimes others forget that the simple things such as knowing what the name of things are makes it more difficult to understand what needs to be done.

Thank you for the links!