Jump to content

Search the Community

Showing results for tags 'round'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Addons
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 17 results

  1. Hola, necesito poner porcentajes condecimales en los precios para conseguir el precio final que quiero, con precios psicológicos cómo 11.95 por ejemplo. Para ello tengo que aplicar porcentajes de 39.96356. El hecho de querer poner un porcentaje en vez del precio final es poruq equiero que salga en las "flags" sobre la foto del producto en el listado de producto en la categoría. He conseguido quitar el decimal con {round($product.discount_percentage_absolute) %} pero no redondea al alza, solo quita los decimales. En la configuración de prestashop tengo que redondee al alza cuando pase de la mitad, pero no está funcionando para este caso. Veo en la documentación de Symfony y el redondeo al alza se hace con un round_up o round_half_up pero si lo uso en el archivo product-prices.tpl se genera un error que deja la pantalla en blanco. ¿Alquien sabe cómo hacer este redodeo? Gracias
  2. How many decimal places do you use for your prestashop store prices?
  3. Witam, mam Prestashop 1.7.1.1 i błędnie zaokrągla mi ceny, np.: 77,40000000000001 zamiast 77.40, to samo dzieje się w koszyku, raz jest dobrze, a raz jak wybierze się innego dostawcy co ma inną cenę robi się podobnie, tyle cyfr po przecinku. Poniżej przesyłam screeny, by pokazać dokładnie o co chodzi. Pokazany screen z produktem, innym niż ten screen co pokazuje produkt, a dla strony produktu dołączyłem screen z edycja produktu, jak to tam wygląda i z tej ceny jest zniżka -10%. Czy ktoś pomoże? Czy jestem skazany na aktualizację Prestashop?
  4. No es posible redondear el precio unitario en la venta minorista, quisiera poderlo cambiar pero en los ajustes de redondeo de prestashop 1.7.6 tengo puesto los 2 decimales. Me gustaría hacerlo por Smarty, ya que prefiero no tener que depender de no poder actualizar la página.
  5. Hi, I need to have the total price in my shop checkout rounded to whole number (in case of the screen to 206). I do need to have 2 decimal places with products, and only the total checkout price as whole number. I've tried all rounding settings at general settings, but it does not affect this value. Does anybody know how to do this? I'm using 1.7.3.3.
  6. Hello, I need to round the product prices and I don't know whether I can use a Prestashop function or I have to modify the database. I have the following product price: $8.001 (thousand separator is dot ".", with no decimals) I want to change it like this: $8.000 Thank you
  7. Ahoj, mám problém se zaokrouhlování jednotlivých produktů v konečném kroku objednávky. Všude jinde se zdá být v pořádku včetně výsledné ceny, pouze v tomto kroku je to špatně(produkty). Mám nastaveno zaokrouhlení na jedno desetinné místo. Řešil někdo? Děkuji.
  8. Hi! I'm testing the web-site to sell the product from Swiss to Japanese customer. There is a problem when I set the default currency to Swiss Franc (CHF), and in the setting of payment "Currency restrictions" I choose " customer's currency" to paypal module. I want to make our site possible to purchase in currency of JPY in paypal, but there is a problem of decimal, (JPY is no decimal currency) and paypal doesn't work. I found a solution by changing Cart.php. (via : http://www.prestashop.com/forums/topic/169541-help-paypal-rejection-error-due-to-rounding-non-decimal-currency/ ) before $total_price = Tools::ps_round($total_price + $total_ecotax, 2); to $total_price = Tools::ps_round($total_price + $total_ecotax, 0); After that, paypal works in the currency of JPY, it's good, but on the other hand, when the customer want to purchase in CHF, the price will be incorrect ( the product of "20,5 CHF" will be "20 CHF" in the shopping cart... ) So now I'm looking for a way to switch some codes of "Cart.php" depends on the customer's currency. I'm not a programer, not familiar with PHP... Please your help! Thank you in advance.
  9. Hi, I am experiencing an issue with the back office orders. All the math is exact (tax incl., tax excl., etc.) so I can add products, add discounts (I created an ad hoc field), change quantity, etc. and everything is working. But, as soon as I click the finalize button, I got strange results. For example, if I add a 8,90€ item, I have a tax excluded price at 7,293082. If I click finalize the tax excl. field just a moment before leaving the page and going to the finalized order page turns to be 7.3 and 8,90 turns consequently to 8,91 and all the invoices are not correct. I had a look at all files possible, Order.php, Cart.php, SpecificPrice.php and admin controllers as well. But nothing... Obviously I have only price rounded at 6 for tax excluded or 2 for tax included and classical round. Does anybody know what is going on? I'm on PS 1.6.0.6 Thanks Fabio
  10. Hello, when I use a discount on the product, get a price with decimals (eg. 716.00> 15%> 608.80), but when I turned off decimals, it shows (608), but the acquisition of two product, show the final price in 1213 instead of 1212. Also, does not change anything if I set the rounding up or down. PS v. 1.6.0.5 Any ideas? All help greatly appreciated...
  11. Hi everybody, I recently 'upgraded' a Prestashop to use a new theme. Since that update some prices aren't being rounded correctly (see screenshot, should be 38.00, not 38.01). I have contacted the developers of the theme but they weren't able to figure it out, neither can I. The code in product.tpl doesn't seem to be wrong and as you can see the error only happens after being converted/rounded (data-price echos the correct price). <span id="our_price_display" itemprop="price" data-price="{$productPrice}"> {convertPrice price=$productPrice} </span> which delivers: <span id="our_price_display" itemprop="price" data-price="38">CHF 38.01</span> Any ideas? Help would be very much appreciated!! Thank you, Meinhard
  12. Hola a todos, Tengo un problema con el sistema de redondeo en Prestashop, ya que no me redondea ningun producto, es decir, si un producto tiene como precio base 56.60, su precio final me muestra 45.28 $. y Yo quiero que me muestre solo 45 $ o por lo menos en 45,30 $. Sera que me podrian ayudar por favor... Gracias!!!!
  13. Hi, I have set the default currency of my shop to 'Indian Rs.'. {But have set the default currency of all countries to 'Us $' - in 'Localizations'->'Countries'} So all clients can only see Dollar prices. Now, I need to round of shipping totals to 0 decimal places. {For the products it is ok that it is rounding to 2 decimal places. This should remain same} Only shipping has to be rounded to 0 decimals. I have tried editing this function in classes/carrier.php public function getDeliveryPriceByWeight($total_weight, $id_zone) but it calculates the shipping in indian rupees, then rounds of to '0' decimal places - and then converts the total to US $ {with 2 decimal places rounding}. So my issue remains same... Anyone can help please... Thankls in advance. Prestashop 1.5.6.2
  14. Hallo I have a problem rounding my prices. Since you will never find someone selling stuff for 5.23€ or 6.24€, (that is with the second decimal different from 0) but rather 5.20, 6.20, etc. I don't understand why PS (I am on 1.4.11) has not this feature. I read a lot of posts dealing with this problem, but not a real answer. Now, I know perfectly that this weird two decimals come from whatever calculation there is (especially when taxes are there) but is there a way to have the last decimal always set to 0? I thought on some simple solutions: - round prices to two decimals and wherever they are shown, replace the last digit with 0 - round prices to one decimal and append a "0" to the price Althogh I could do it with jQuery, I have no idea on how many files should I put this transformation. However, my questions: - in which files should I apply the transformations I was talking about? Do you think it is just possbile? i see prices everywhere! - am I going into the right direction or is there another way, which I am missing? Thank you very much Fabio
  15. Hello, Heads up for 1.4.11 users (since development has stopped): There's a major bug in PS 1.4.11 which causes price calculation errors if you display prices with tax. When calculating price with tax, taxes are added to the already rounded tax-free price. (This causes erroneus prices in i.a. order confirmations and invoices) Solution: /classes/Order.php switch line #446 and #447 i.e. $row['product_price_wt'] = Tools::ps_round($row['product_price'] * (1 + $row['tax_rate'] / 100), 2); $row['product_price'] = Tools::ps_round($row['product_price'], 2);
  16. The total product isn´t correct. Can you help me? Thanks,
  17. Bonjour à tous, Je sais que cette version de PS est plutot vieille, mais si ca peut servir. Le bug provoque le plantage du calcul des taxes dans le process d'achat : valeur "inf" au lieu de la somme normale. Après recherche, j'ai (je pense) trouvé l'origine du problème. Dans le fichier /classes/cart.php, ligne 658, l'appel à la fonction d'arrondi "ps_round" utlise l'ID de l'adresse du client $this->id_address_delivery comme précision d'arrondi . Cela dans le cas ou $this->_taxCalculationMethod == PS_TAX_EXC Alors que dans l'autre cas, la précision se fait sur 2 (ligne 666) ou 0 (ligne 668) L'exemple chez mon client donnait : round(52.624, 307) => INF Cette valeur INF se retrouvait aussi dans le BO, section Paniers clients N'ayant pas trouvé de cas similaire, j'ouvre donc ce topic François
×
×
  • Create New...