chrometweaks.org

What is a good iPage web host with a website maker?

Click Here To View All Answers...


First of all What is a good iPage web host with a website maker? Looking forward for any answer. My 2nd question... How to make a space between the words.

Like.

Earth music-by3513.

Hk$620.00..

Comments (28)

I'm stumped. I'm not so sure what is the answer. I'll do some Googling and get back to you if I got an good answer. You should email the people at iPage as they probably know..

Comment #1

Oops.

Try in file catalog/includes/modules/new_products.php.

Add one more BR tag between $new_products['products_name'] and.

$currencies->display_price.

Like this.

'text' => '<a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'tep_image(DIR_WS_IMAGES$new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)'</a><br><a href="'tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='$new_products['products_id'])'">'$new_products['products_name']'</a><br><br>'$currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])));..

Comment #2

Sorry, that pictures is not locate at new_products.php.

The pictures is locate at index.php.

Like this.

Http://www.oscommerce.com/osCommerce22ms2/...1864a2c19488b4c.

->>Matrox G200 MMS.

$299.99.

I want change to...

>>Matrox G200 MMS.

$299.99.

But I can't find the answer in the index.php code.

Thanks..

Comment #3

You need a <br> tag in after the echo statement for product model. Dunt know where though, find that and add the tag and it will work..

Comment #4

Yes , I know how to add the tag now.

Thank you very much!!.

But I don't know where to add..

Comment #5

How to make a space between the words.

Like.

Earth music-by3513.

Hk$620.00..

Comment #6

Look at my file.

Catalog/includes/classes/curencies.php.

Compare it with yours , the difference is very small..

This make whitespace between $ and price. On the left side and right side,.

It is not will make whitespace between HK and $, but I sure you can change that..

May be have another way to do this, because if you do my way , the whitespace will be on all pages and all places, where have $PRICE..

<?php.

/*.

 $Id: currencies.php,v 1.16 2003/06/05 23:16:46 hpdl Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2003 osCommerce.

 Released under the GNU General Public License.

*/.

////.

// Class to handle currencies.

// TABLES: currencies.

 class currencies {.

   var $currencies;.

// class constructor.

   function currencies() {.

     $this->currencies = array();.

     $currencies_query = tep_db_query("select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from "TABLE_CURRENCIES);.

     while ($currencies = tep_db_fetch_array($currencies_query)) {.

       $this->currencies[$currencies['code']] = array('title' => $currencies['title'],.

                                                      'symbol_left' => $currencies['symbol_left'],.

                                                      'symbol_right' => $currencies['symbol_right'],.

                                                      'decimal_point' => $currencies['decimal_point'],.

                                                      'thousands_point' => $currencies['thousands_point'],.

                                                      'decimal_places' => $currencies['decimal_places'],.

                                                      'value' => $currencies['value']);.

     }.

   }.

// class methods.

   function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {.

     global $currency;.

     if (empty($currency_type)) $currency_type = $currency;.

     if ($calculate_currency_value == true) {.

       $rate = (tep_not_null($currency_value)) ? $currency_value : $this->currencies[$currency_type]['value'];.

       $format_string = $this->currencies[$currency_type]['symbol_left']' 'number_format(tep_round($number * $rate, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point'])' '$this->currencies[$currency_type]['symbol_right'];.

// if the selected currency is in the european euro-conversion and the default currency is euro,.

// the currency will displayed in the national currency and euro currency.

       if ( (DEFAULT_CURRENCY == 'EUR') && ($currency_type == 'DEM' || $currency_type == 'BEF' || $currency_type == 'LUF' || $currency_type == 'ESP' || $currency_type == 'FRF' || $currency_type == 'IEP' || $currency_type == 'ITL' || $currency_type == 'NLG' || $currency_type == 'ATS' || $currency_type == 'PTE' || $currency_type == 'FIM' || $currency_type == 'GRD') ) {.

         $format_string .= ' <small>['$this->format($number, true, 'EUR')']</small>';.

       }.

     } else {.

       $format_string = $this->currencies[$currency_type]['symbol_left']' 'number_format(tep_round($number, $this->currencies[$currency_type]['decimal_places']), $this->currencies[$currency_type]['decimal_places'], $this->currencies[$currency_type]['decimal_point'], $this->currencies[$currency_type]['thousands_point'])' '$this->currencies[$currency_type]['symbol_right'];.

     }.

     return $format_string;.

   }.

   function is_set($code) {.

     if (isset($this->currencies[$code]) && tep_not_null($this->currencies[$code])) {.

       return true;.

     } else {.

       return false;.

     }.

   }.

   function get_value($code) {.

     return $this->currencies[$code]['value'];.

   }.

   function get_decimal_places($code) {.

     return $this->currencies[$code]['decimal_places'];.

   }.

   function display_price($products_price, $products_tax, $quantity = 1) {.

     return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);.

   }.

 }.

?>.

The difference looks like this.

' '..

Comment #7


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