![]() |
Change Detailed Image Background Color? How? Please
Hello Group
I did not want to tag on staggerd image section. What I wanted to know is how to make that page black instead of white? The page is: File: /modules/Detailed_Product_Images/product_images.tpl it starts out with: {* $Id: product_images.tpl,v 1.10 2003/08/11 10:45:10 svowl Exp $ *} {if $images ne ""} {capture name=dialog} <div align=center> {section name=image loop=$images} My guess is that we must be in a table. However, where is the start of this table so I can set the background to black? I added some text above <div align=center> and it shows up above the image so I know I have part of the page. I do not know where the previous section ends. That is where I think the background color may be changed? |
look in customer/main/product.tpl
Tpl files aren't always pages. A page in X-cart is usually made up of several template files. Try using Webmaster mode to see a grahical "tree" type representation of which templates are embedded in which. |
Hello adpboss
I used webmaster mode to find the page. I also deleted the page to make sure I had the coorect one. It is the correct page. I could not find it following the tree. It must be there? Maybe someone who has found it can give us the good word. |
if your looking to just make the detailed images box have a black background do this for v3.5.x
Code:
{* $Id: product_images.tpl,v 1.10 2003/08/11 10:45:10 svowl Exp $ *} all middle sections have the dialog.tpl file wrapped around them so adjusting that file will adjust all of them |
Hello
That did not do the trick. But it sure change things. It put everything out of whack. It put part of the detail section in black but not the whole thing. There has to be a table somewhere or maybe it is a row. |
I think I understand now.
If you haven't modded your product page very much, detailed images appear at the bottom of the Product Detailed Page. That area is NOT in a table. The table ends where the Product form ends. Code:
</form> You would have to enclose Code:
{if $active_modules.Detailed_Product_Images ne ""} in a table to be able to manipulate the background for that area only. If you go to Webmaster mode, browse to the front end and go to a product detail page, it will show you that the product_images.tpl is called from customer/main/product.tpl. Once you have that it is easy to browse through product.tpl to see where the detailed images section is and whether or not it is in a table. I hope this helps you , even a little. :-) |
Hello All Great Ones
As my signature suggest I am quit ignorant with xcart. In all the <tr> I tried putting <tr bgcolor="#000000"> in the following file: File: /customer/main/product.tpl I do not think the detailed image section is there. It did change the detail section but not where the detail image is When I have the detail image showing below the order description I want the backgorund of the detailed image to be black. At this site it is a 100% non modified site. So, how do you get the detailed image section that is now white to a black bacground? There is a section that is embedded with something else. All I need to do is find it!!!!!!!!!!!!!! Below is a URL of the detaied image background I would like to have black http://www.amaurydiaz.com/artwork/customer/product.php?productid=16133&cat=248&page=1 |
Please post the code of your product.tpl file here between <code> tags.
We'll look it over for you. |
Hello adpboss & Group
This is 100% original Code:
{* $Id: product.tpl,v 1.78.2.2 2003/12/16 12:13:32 svowl Exp $ *} It is like looking for a needle in a hay stack if you do not know where that section is comming from. I thank you very much for looking at this and taken your time to help me out. |
Caucus,
It is coming from exactly where I should you. Towards the end of the product.tpl, it says include product_images.tpl. So you either need to make the change in product.tpl, or product_images.tpl. One file calls the other. That is how they are displayed. Can you post your product_images.tpl here as well please? |
Hello Again
This is from: File: /modules/Detailed_Product_Images/product_images.tpl If you add text just above teh <div align=center> tag it shows up just above the image. Or if you delete this page nothing shows up for detailed image. So this is what displays the image but where do I put the <td bgcolor="#000000"> If I go like the following <td bgcolor="#000000"> <div align=center> A white column remains the width of deta of the detail Image section. However the rest of the picture backgorund is black. So it has to be the page that loads before this, I think? Take a look at http://www.amaurydiaz.com/artwork/customer/product.php?productid=16133&cat=248&page=1 Code:
{* $Id: product_images.tpl,v 1.10 2003/08/11 10:45:10 svowl Exp $ *} |
You can't use TD because you are not in the product detail table anymore. You need to create a new table that holds only the detailed images.
Shan's mod didn't work? The more I look at it, the more it looks like the answer. |
Hello adpboss & Group
I will try it one more time, maybe I missed somthing and then I will post the links with the results. |
Hello Group
It is close: http://www.amaurydiaz.com/artwork/customer/product.php?productid=16133&cat=248&page=1 That is very clever one has the black around the wite edges. I think I missed a closing tag the first time. It is amazing one cannot make all of the white in the detail section black. Do you think that would look better? You can look at the images on complete black at: http://www.amaurydiaz.com/gallery/gallery02.htm and click on one of the images. I thought all black sharpens the image. |
All times are GMT -8. The time now is 08:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.