Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

COlumn settings
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: COlumn settings
#55213
COlumn settings 8 Years, 9 Months ago Karma: 0
How do i change column settings in a sql table like this:

order_item_ref order_price order_date

4657586 675.76000 2015-07-07 11:19:10

to:

Ref. Price. Date

4657586 675.76 $ 2015/07/07
The administrator has disabled public write access.
 
#55214
Re:COlumn settings 8 Years, 9 Months ago Karma: 747
Hello,

Open module settings page and set "Columns settings -> ID" parameter to order_item_ref value and "Columns settings -> Alias" parameter to Ref. value. Set "Columns settings -> ID" parameter to order_price value, "Columns settings -> Alias" parameter to Price. value and "Columns settings -> Format" parameter to the following value:

Code:


{$value|number_format:2} $



Set "Columns settings -> ID" parameter to order_date value, "Columns settings -> Alias" parameter to Date value and "Columns settings -> Format" parameter to the following value:

Code:


{$value|date_format:Y/m/d}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#55220
Re:COlumn settings 8 Years, 9 Months ago Karma: 0
Thanks so much
Works great
The administrator has disabled public write access.
 
#55965
Re:COlumn settings 8 Years, 6 Months ago Karma: 0
Where can I find all valid values for the formats?

{$value|number_format:2}
--> What is 2? What else is possible?

{$value|date_format:Y/m/d}
...

I need the german number representation:
2.000,00 for the number two thousand.

Thanks!
The administrator has disabled public write access.
 
#55966
Re:COlumn settings 8 Years, 6 Months ago Karma: 747
Hello,

"number_format" formatter is a wrapper for number_format and it accepts the same parameters. In your case use the following code:

{$value|number_format:2:,:.}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#55967
Re:COlumn settings 8 Years, 6 Months ago Karma: 0
thank you, it works!
The administrator has disabled public write access.
 
Go to topPage: 1