View Single Post
  #8  
Old 08-26-2009, 11:35 AM
 
lkrivoshiev lkrivoshiev is offline
 

Member
  
Join Date: Mar 2009
Posts: 16
 

Default Re: How to use superscript in the price?

For example, the "modifier.formatprice.php" file modification can look as follows:
Replacing the following code:
Code:
function smarty_modifier_formatprice($price, $thousand_delim = NULL, $decimal_delim = NULL, $precision = NULL) { return func_format_number($price, $thousand_delim, $decimal_delim, $precision); }

by the following one:

Code:
function smarty_modifier_formatprice($price, $thousand_delim = NULL, $decimal_delim = NULL, $precision = NULL) { $tmp = func_format_number($price, $thousand_delim, $decimal_delim, $precision); $superscriptPrice = explode(".", $tmp); return $superscriptPrice[0] . "<sup>." . $superscriptPrice[1] . '</sup>'; }

It works for me, but appears in all pages. I'd like only in products_list and product .
QT responded this :
Code:
As I wrote before, this is just an example of how to implement the "<sup></sup>" tags in X-Cart prices. Unfortunately, a lot of code should be modified in order to make X-Cart work the way you want and all the necessary changes cannot be provided as a support task. For the necessary changes implementation I would like to suggest ordering our custom development services. Our developers will implement the "<sup>"/"</sup>" tags for your prices the way you want. If you are interested, please confirm and I'll ask the project managers to estimate the customization. You'll find some details about the service at http://www.qualiteam.biz/custom_development.html

We will order this customization in the near future.
__________________
X-cart V4.2.3
X-RMA
X-magnifier
BCSE Product importer
...and many others
Reply With Quote