Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / 2 issues additional images and previous next button

2 issues additional images and previous next button

Locked

Views: 1,129

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
10 Jan 2009, 7:11 PM
#1
mireia avatar

mireia

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

2 issues additional images and previous next button

Hello
I'm using Zen cart 3.8 version. Some of my additional images show and others won't show. I've tried with Firefox, Seamonkey and IE. I've compared the tpl_productsInfo.php and all the other php it calls in the default and the custom folders and as far as I can see they are the same.

This one won't show:
http://www.filateliaestudifilatelic.com/index.php?main_page=product_info&cPath=253_322&products_id=1406
This one shows:
http://www.filateliaestudifilatelic.com/index.php?main_page=product_info&cPath=255_317&products_id=1403

And the other issue is that when I click the next or previous button in product info pages, the system doesn't find any products.

Do you have any clues?

Mireia

10 Jan 2009, 7:20 PM
#2
kobra avatar

kobra

Black Belt

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

Re: 2 issues additional images and previous next button

The images issue is a naming convention
So the one that does not display - what are the names of your images and where do you have them stored?
https://www.zen-cart.com/tutorials/index.php?article=58

10 Jan 2009, 9:14 PM
#3
mireia avatar

mireia

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: 2 issues additional images and previous next button

Thank you Kobra for your answer.
Yes I had read this tutorial. I load my images via the image handler and the names are
mon lucilaaugusta164dc.jpg and
mon lucilaaugusta164dc_1.jpg
for this instance that doesn't show. I load the first image to the main directory and for the additional, the image handler doesn't ask. I assume it puts it in the same place.
Mireia

10 Jan 2009, 9:30 PM
#4
kobra avatar

kobra

Black Belt

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

Re: 2 issues additional images and previous next button

Mireia:

the image handler doesn't ask. I assume it puts it in the same place.
Emphasis is mine
Tutorial:

Now you use your FTP program to upload additional images

Going to filateliaestudifilatelic.com/images/mon%20lucilaaugusta164dc.jpg displays your image

But filateliaestudifilatelic.com/images/mon%20lucilaaugusta164dc_1.jpg produces a 404 not found
This indicates that it is not there

11 Jan 2009, 6:25 PM
#5
mireia avatar

mireia

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: 2 issues additional images and previous next button

Thank you Kobra for your reply. I looked at the /images folder in the server and it was already there next to the main image. I don't understand. I uploaded it again and it still refuses to show. Grrrr.

And what about the previous/next issue? Any clues?

Mireia

16 Jan 2009, 6:53 PM
#6
mireia avatar

mireia

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: 2 issues additional images and previous next button

Hello again,
Ok. While reading a more recent post, I found the solution for the additional image not showing. I've never realized that the main image had a .jpg extension and the additional image had a .JPG one. Now they are both there as .jpg. Sorry Cobra, it's the first thing you told me, but I checked the first part of the name, not the extension...

The other issue is still haunting me. In any product info page, the previous/next buttons don't work. "The product wasn't found", it says. It's very annoying because some categories have long lists of products and it's very tedious to go back to the main list while navigating between products. I configured them in admin to be sorted by model. Anyone could please help me?
Mireia

16 Jan 2009, 11:36 PM
#7
kobra avatar

kobra

Black Belt

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

Re: 2 issues additional images and previous next button

In any product info page, the previous/next buttons don't work. "The product wasn't found"
While from here I can not determine why, I can point out what is happening and this is not normal/default (Spaces are mine)

Going to
http: //www.filateliaestudifilatelic.com/index.php?main_page=product_info&cPath=170_330&products_id=1469
and select next produces this

index.php?main_page=product_info&cPath=170_330&products_id=1466

When it should produce this

index.php?main_page=product_info&cPath=170_330&products_id=1466

I would check any mods or edits you have made that affect the files as there is some error adding the offending text causing this

20 Jan 2009, 3:12 PM
#8
mireia avatar

mireia

New Zenner

Join Date:
Jan 2009
Posts:
5
Plugin Contributions:
0

Re: 2 issues additional images and previous next button

Aaaaaah, thanks a lot again Kobra.
I found this amp thing in the instructions included in the tpl_products_next_previous.php which is located in the includes/templates/custom/templates. I deleted the amp in the next and previous instructions and bingo! It solved the problem!
I really appreciate your help.
Mireia