Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add text to the popup_image window

Add text to the popup_image window

Locked

Views: 1,472

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Apr 2007, 6:43 PM
#1
pjb923 avatar

pjb923

Zen Follower

Join Date:
Jan 2005
Location:
NY
Posts:
135
Plugin Contributions:
0

Add text to the popup_image window

I am trying to add some text to the larger image popup window.
For example, if I wanted to display the product name under the image:

I tried using the syntax from the tpl_product_info_display.php file by adding

<!--bof Product Name--> <p id="productName" class="style2"><?php echo $products_name; ?></p> <!--eof Product Name--> to the /popup_image/tpl_main_page.php file, but I can't get the value to display.

Is there a function that I can use to display this value in the popup window?

Thanks in advance for the help.

24 Dec 2007, 5:43 PM
#2
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Add text to the popup_image window

I subscribed to this thread a long time ago, hoping to see an answer. But nothing yet.

Does anyone know how to do this?

TIA

Rob

24 Dec 2007, 7:59 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,608
Plugin Contributions:
0

Re: Add text to the popup_image window

Copy the includes/templates/template_default/popup_image directory to your custom template. Modify the tpl_main_page.php inside to your heart's content .

26 Dec 2007, 2:45 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Add text to the popup_image window

Thanks again Kim, I'm starting to fiddle with that now.

One question: what's the difference between the popup_image_additional folder and the popup_image folder? Both contain the same file -- tpl_main_page.php -- but the contents of that file are a little different. When I temporarily dropped the tpl_main_page.php file from the _additional folder into the other folder, all that happened was that the large pop-up image window contained only a thumbnail.

Rob