chrometweaks.org

What Web iPage hosting services offer video streaming on your website?

Click Here To View All Answers...


Question I have... What Web iPage hosting services offer video streaming on your website? Looking forward for any answer or 2. Second question.. How can I add a info button on the product_listing.php.

I see this code:.

Switch ($column_list[$col]) {.

Case 'PRODUCT_LIST_MODEL':.

$lc_align = '';.

$lc_text = ' '$listing['products_model']' ';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$lc_align = '';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'$listing['products_name']'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'$listing['products_name']'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$lc_align = '';.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$listing['manufacturers_id'])'">'$listing['manufacturers_name']'</a>&nbsp;';.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$lc_align = 'right';.

If (tep_not_null($listing['specials_new_products_price'])) {.

$lc_text = '&nbsp;<s>'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</s>&nbsp;&nbsp;<span class="productSpecialPrice">'$currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</span>&nbsp;';.

} else {.

$lc_text = '&nbsp;'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_quantity']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_weight']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$lc_align = 'center';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_BUY_NOW':.

$lc_align = 'center';.

$lc_text = '<a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing['products_id'])'">'tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW)'</a>&nbsp;';.

Break;.

But do not know how to add a "more info" button either next to or above the "buy now" button..

This post has been edited by.

Davejones.

: 06 July 2004, 18:10..

Comments (97)

That's a good question. I'm not sure what is the answer to that question. I'll do some investigation and get back to you if I find an useful answer. You should email the people at iPage as they probably could assist you..

Comment #1

I assume you're referring to the 'More info' link as in product_info?.

If so, you need to query the 'products_url' field in the $listing query if it hasn't already been queried in that file..

Then in your new column add:.

<?php if (tep_not_null($listing['products_url'])) { echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto='urlencode($listing['products_url']), 'NONSSL', true, false)); } ?>.

You can of course replace TEXT_MORE_INFORMATION with a button as youmentioned above..

Oh and if you want it by the BN button, you can try tying it to that case and seeing how it looks..

This post has been edited by.

Acheron.

: 07 July 2004, 09:50..

Comment #2

NEW COLUMN - How do I define a new column in the product listing..

This is the current product listing:.

And I want to change it to (the image was done in photoshop for explanational purposes):..

Comment #3

Honestly I've never looked into it, never had the need. If you simply want to add the button to the same column, do something like ....

Change this:.

          $lc_text = '<a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing['products_id'])'">'tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW)'</a>&nbsp;';.

          break;.

To ....

          $lc_text = (code for more info)'<br><a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing['products_id'])'">'tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW)'</a>&nbsp;';.

          break;.

Now I'm not sure if that will affect the functionality of the BN button so as always, backup first..

You don't need to define the image anywhere. Simply place it in the directory with the other buttons. The IMAGE_BUTTON_BUY_NOW is simply the alt text label which you can repalce with 'More Info' for your new button...

Comment #4

How can I add a info button on the product_listing.php.

I see this code:.

Switch ($column_list[$col]) {.

Case 'PRODUCT_LIST_MODEL':.

$lc_align = '';.

$lc_text = '&nbsp;'$listing['products_model']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$lc_align = '';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'$listing['products_name']'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'$listing['products_name']'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$lc_align = '';.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='$listing['manufacturers_id'])'">'$listing['manufacturers_name']'</a>&nbsp;';.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$lc_align = 'right';.

If (tep_not_null($listing['specials_new_products_price'])) {.

$lc_text = '&nbsp;<s>'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</s>&nbsp;&nbsp;<span class="productSpecialPrice">'$currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'</span>&nbsp;';.

} else {.

$lc_text = '&nbsp;'$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']))'&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_quantity']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$lc_align = 'right';.

$lc_text = '&nbsp;'$listing['products_weight']'&nbsp;';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$lc_align = 'center';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$lc_text = '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id='$HTTP_GET_VARS['manufacturers_id']'&products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>';.

} else {.

$lc_text = '&nbsp;<a href="'tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath='$cPath'&' : '')'products_id='$listing['products_id'])'">'tep_image(DIR_WS_IMAGES$listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a>&nbsp;';.

}.

Break;.

Case 'PRODUCT_LIST_BUY_NOW':.

$lc_align = 'center';.

$lc_text = '<a href="'tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))'action=buy_now&products_id='$listing['products_id'])'">'tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW)'</a>&nbsp;';.

Break;.

But do not know how to add a "more info" button either next to or above the "buy now" button..

This post has been edited by.

Davejones.

: 06 July 2004, 18:10..

Comment #5

How would I define a info button in the code?..

Comment #6


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