We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

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

Additional product images - file non existant???

Started by australian_caching on 5 Mar 2010, 4:26 AM · Views: 2,097

Results 1 to 12 of 12
5 Mar 2010, 4:26 AM
#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??

5 Mar 2010, 7:03 AM
#2
gjh42 avatar

gjh42

Black Belt

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

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/.

5 Mar 2010, 7:15 AM
#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/.

5 Mar 2010, 9:20 AM
#4
ravi_gulhane avatar

ravi_gulhane

New Zenner

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

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, 6:07 PM
#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, 11:51 PM
#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, 12:08 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

Sounds like your "pink whatever" template is not properly packaged. The instructions quoted are correct.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Apr 2011, 12:10 AM
#8
gjh42 avatar

gjh42

Black Belt

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

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, 4:55 AM
#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, 5:10 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
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

Zen-Venom Get Bitten

22 Apr 2011, 10:00 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Apr 2011, 12:32 PM
#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!