chrometweaks.org

How do I replace my iWeb design on iPage with my new Adobe Flash design?

Click Here To View All Answers...


Got a question... How do I replace my iWeb design on iPage with my new Adobe Flash design? Thanks for any answer. 2nd question I got is.. HI Gangs,.

Please tell me how to list the price of a product in pop-up window?.

Thanks..

Comments (58)

I would like to know the answer too. Anyone here know what is the right answer. I'll do some poking around and get back to you if I bump into an anything. You should email the people at iPage as they probably could give you an answer..

Comment #1

Easy "cheater" way would be to just append the price to the end of the pop-up window link..

I.E. -> popup_viewer.php?id=image_name&price=34.00.

Then in the window code have the image.

<?php.

Echo "<img src="$id" border=0>";.

Echo "<br><br>";.

Echo "Price: $ "$price;.

?>.

The above is not EXACTLY what you need, but pretty close. Just append the product price to the php link, then grab it in the popup window..

This post has been edited by.

Westkoast.

: 01 April 2004, 00:14..

Comment #2

Hi westkoast, I followed your instruction and it's not working!.

By default we have catalog/popup_image.php and how do I list the price in there?.

I think OceanRanch is right, but don't know how to do everythign he said..some one please help..

Comment #3

<?php.

 require('includes/application_top.php');.

 $navigation->remove_current_page();.

 $products_query = tep_db_query("select pd.products_name, p.products_price, p.products_image from "TABLE_PRODUCTS" p left join "TABLE_PRODUCTS_DESCRIPTION" pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '"(int)$HTTP_GET_VARS['pID']"' and pd.language_id = '"(int)$languages_id"'");.

 $products = tep_db_fetch_array($products_query);.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo $products['products_name']; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<script language="javascript"><!.

Var i=0;.

Function resize() {.

 if (navigator.appName == 'Netscape') i=40;.

 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);.

 self.focus();.

}.

//></script>.

</head>.

<body onload="resize();">.

 <div align="center">.

 <?php echo tep_image(DIR_WS_IMAGES$products['products_image'], $products['products_name']); ?><br>.

 <?php echo $products['products_price']; ?></div>.

</body>.

</html>.

<?php require('includes/application_bottom.php'); ?>.

Can you try that?..

Comment #4

Ok, I forgot something, you're gonna need to add some extra pixels to the window size..

I.E..

Function resize() {.

If (navigator.appName == 'Netscape') i=40;.

If (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);.

Self.focus();.

}.

Height + 90 or something, so that it makes room for the price...

Comment #5

HI Gangs,.

Please tell me how to list the price of a product in pop-up window?.

Thanks..

Comment #6

Speed, as I recall you have STS installed so I don't know if this applies..

You'll need to change catalog/popup_image.php..

Add the price to the $products_query SQL..

Then at the bottom in the <body> section where the image is displayed you'll probably want to add a table with the image in one row and the price in the next..

I don't have the code and really am busy right now, but I'm sure your up to a little experimenting on your own..

Good Luck.

Tom..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.