Changeset 3136496
- Timestamp:
- 08/16/2024 09:40:45 AM (20 months ago)
- Location:
- pdf-for-woocommerce/trunk
- Files:
-
- 3 edited
-
pdf-for-woocommerce.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
woocommerce/shortcodes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdf-for-woocommerce/trunk/pdf-for-woocommerce.php
r3135227 r3136496 6 6 * Text Domain: pdf-for-woocommerce 7 7 * Domain Path: /languages 8 * Version: 2.3. 48 * Version: 2.3.5 9 9 * Requires PHP: 5.6 10 10 * Author: add-ons.org -
pdf-for-woocommerce/trunk/readme.txt
r3135227 r3136496 4 4 Requires at least: 2.0 5 5 Tested up to: 6.6.1 6 Stable tag: 2.3. 46 Stable tag: 2.3.5 7 7 Requires PHP: 5.6 8 8 License: GPLv2 or later … … 72 72 73 73 == Changelog == 74 = 2.3.5 = 75 - Added: shortcode total Price in Words ( Change format) 76 74 77 = 2.3.4 = 75 78 - Added: shortcode total Price in Words -
pdf-for-woocommerce/trunk/woocommerce/shortcodes.php
r3135227 r3136496 470 470 function convert_number_to_words($number) { 471 471 472 $hyphen = ' -';472 $hyphen = ' '; 473 473 $conjunction = ' and '; 474 474 $separator = ', '; … … 567 567 break; 568 568 } 569 570 569 if (null !== $fraction && is_numeric($fraction)) { 571 $string .= $decimal; 572 $words = array(); 573 foreach (str_split((string) $fraction) as $number) { 574 $words[] = $dictionary[$number]; 570 if($fraction != 0){ 571 $string .= $decimal; 572 $words = array(); 573 foreach (str_split((string) $fraction) as $number) { 574 $words[] = $dictionary[$number]; 575 } 576 $string .= implode(' ', $words); 575 577 } 576 $string .= implode(' ', $words);578 577 579 } 578 580
Note: See TracChangeset
for help on using the changeset viewer.