WebSite X5Help Center

 
Juergen S.
Juergen S.
User

Picture is lost in the shopping basket  en

Auteur : Juergen S.
Visité 2044, Followers 1, Partagé 0  
Mots-clés :: basket,image,img,shopping

It took me some time to integrate an image-tag with a table for Prices into the advertisment, but if cou click the buy-option, the Picture will be lost in the Shopping basket. Looking at the code there's no sign why, but - and maybe that's the reason - there are " (quotes) now in the code. Please solve. 8:o(

Posté le
2 RéPONSES - 1 UTILES - 1 CORRECT
Juergen S.
Juergen S.
User
Auteur

I just copied the missing pics from images directory to the directory  http://127.0.0.1:8080/cart/images/by hand. It works.

But cannot be the solution, I hope?   8;o(

Lire plus
Posté le de Juergen S.
Incomedia
Claudio D.
Incomedia

Hello Juergen,

If you add custom html code and this refers to a subfolder the browser will always search the image in a subfolder. If the code is automatically created by the program then it will adjust automatically but since it's written by you you will need to check the image is always reachable also from another directory and in this case I wouls suggest you to add as source not the relative path files/image.jpg but the absolute path http://www.yourwebsite.com/files/image.jpg so it will always be visible also if you are in /cart/

Many thanks!

Lire plus
Posté le de Claudio D.