Jump to content

Inford

Members
  • Posts

    9
  • Joined

  • Last visited

3 Followers

About Inford

  • Birthday 10/20/1989

Contact Methods

Profile Information

  • Location
    Noida sec-10, 201301
  • Activity
    Web development agency

Recent Profile Visitors

183 profile views

Inford's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hello Everyone ! I am using prestashop 1.7.1.1 . and i want to add buy now button on product page, So plz anyone help me how to add buy now button extra Thank's in advance
  2. Same problem as occured. when i update order status "canceled " it shows error. the error like : This page isn’t workingwww.hindhome.com is currently unable to handle this request. HTTP ERROR 500 any ONE CAN HELP ME ? Currently i am using prestashop 1.7.0.3
  3. Hello Sir ! i am using prestashop 1.7 and i have a problem regarding form field in registration form. 1. i want to make at least Social title checked by default 2. and second one is that to add phone no field extra in registration from. so plz help me it's urgent thank's in advance..
  4. Hello sir ! i am using prestashop 1.6.0.14. i am not able to find order.php file to place code, so plz help me... Thank's in advance..
  5. hello everyone ! i have face this error when login our admin panel on prestashop.. You are currently connected under the following domain name domain.com This is different from the domain name set in the "SEO & URLs" tab. If this is your main domain, please change it now. i have check every where in setting and seo & urls tab. but no solution were found.
  6. hello sir ! please reply me that how to add my php converter code i.e., <?php function convert_number_to_words($number) { $hyphen = '-'; $conjunction = ' and '; $separator = ', '; $negative = 'negative '; $decimal = ' point '; $dictionary = array( 0 => 'Zero', 1 => 'One', 2 => 'Two', 3 => 'Three', 4 => 'Four', 5 => 'Five', 6 => 'Six', 7 => 'Seven', 8 => 'Eight', 9 => 'Nine', 10 => 'Ten', 11 => 'Eleven', 12 => 'Twelve', 13 => 'Thirteen', 14 => 'Fourteen', 15 => 'Fifteen', 16 => 'Sixteen', 17 => 'Seventeen', 18 => 'Eighteen', 19 => 'Nineteen', 20 => 'Twenty', 30 => 'Thirty', 40 => 'Fourty', 50 => 'Fifty', 60 => 'Sixty', 70 => 'Seventy', 80 => 'Eighty', 90 => 'Ninety', 100 => 'Hundred', 1000 => 'Thousand', 1000000 => 'Million', 1000000000 => 'Billion', 1000000000000 => 'Trillion', 1000000000000000 => 'Quadrillion', 1000000000000000000 => 'Quintillion' ); if (!is_numeric($number)) { return false; } if (($number >= 0 && (int) $number < 0) || (int) $number < 0 - PHP_INT_MAX) { // overflow trigger_error( 'convert_number_to_words only accepts numbers between -' . PHP_INT_MAX . ' and ' . PHP_INT_MAX, E_USER_WARNING ); return false; } if ($number < 0) { return $negative . convert_number_to_words(abs($number)); } $string = $fraction = null; if (strpos($number, '.') !== false) { list($number, $fraction) = explode('.', $number); } switch (true) { case $number < 21: $string = $dictionary[$number]; break; case $number < 100: $tens = ((int) ($number / 10)) * 10; $units = $number % 10; $string = $dictionary[$tens]; if ($units) { $string .= $hyphen . $dictionary[$units]; } break; case $number < 1000: $hundreds = $number / 100; $remainder = $number % 100; $string = $dictionary[$hundreds] . ' ' . $dictionary[100]; if ($remainder) { $string .= $conjunction . convert_number_to_words($remainder); } break; default: $baseUnit = pow(1000, floor(log($number, 1000))); $numBaseUnits = (int) ($number / $baseUnit); $remainder = $number % $baseUnit; $string = convert_number_to_words($numBaseUnits) . ' ' . $dictionary[$baseUnit]; if ($remainder) { $string .= $remainder < 100 ? $conjunction : $separator; $string .= convert_number_to_words($remainder); } break; } if (null !== $fraction && is_numeric($fraction)) { $string .= $decimal; $words = array(); foreach (str_split((string) $fraction) as $number) { $words[] = $dictionary[$number]; } $string .= implode(' ', $words); } return $string; } ?> ================== how to add this php file into my invoice.tpl file and how to get total amount output into this function.
  7. Thank's for this reply ! But i want to convert amount in words (alphabets) in English not to other language. so please give me suggestion for converting numeric amount in words. e.g., 456 convert to Four Hundred Fifty Six Only.
  8. Please help me anyone to convert invoice total amount into words. convert amount number to words, number to word conversion, prestashop invoice amount convertion from number to words
×
×
  • Create New...