Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10
votes
1answer
9k views

Magento2 - Change standard address format on Magento Frontend

I want to change Magento's standard address format to the one we use in the Netherlands. For those who don't know the address format, it is the method in which we write the address. For example, the ...
9
votes
1answer
787 views

Override locale configuration file to customize price format

To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the ...
6
votes
1answer
4k views

Magento2 - How to use Magento_Catalog/js/price-box to format price in template?

I want to format my price in template, and I find some place told about Magento_Catalog/js/price-box, But I don't know how to use it, Anyone can help me show me how to do.
5
votes
3answers
2k views

What ide or tools use for magento formatting?

I've try netbeans and eclipse with psr2 format configuration but in magento files I've got: public function __construct( \Magento\Framework\App\Helper\Context $context, \Magento\Catalog\Model\...
5
votes
2answers
4k views

Adminhtml form date input type default format wrong

I've managed to create an Adminhtml form extending \Magento\Backend\Block\Widget\Form\Generic. I've added each field inside _prepareForm() method using $fieldset->addField() method. One of the ...
5
votes
3answers
19k views

How to change layout of product detail page?

I've set up a child theme of Luma and want to change the layout of my individual product detail page. What file controls this? I don't see the .phtml file and don't see how changing block order in my ...
4
votes
2answers
2k views

Magento 2 How To Add Custom Text After All Prices

I tried to add custom text after all prices that appears in magento 2. For this I tried to do in 2 ways: 1) I tried to modify function getPrice from module-catalog\Model\Product.php like this: ...
3
votes
6answers
15k views

Change date format

I use a plugin that shows me list of posts and I want to change format of date. This is show me date like this: 24 january 2015 12:20:11 and this is the code of above output: <?php echo $post->...
3
votes
4answers
386 views

Incorrect currency format in product and checkout pages

The store locale is bg_BG. After the product page is opened the price is rendered correctly formatted from the server. When the following JS is executed the format is wrong. <script> ...
3
votes
0answers
96 views

Date format in the customer account dashboard

The date in the customer account dashboard in my Magento store is in the format of mm/dd/yyyy now, that is the date in the recent orders list is in above format. I want it to be displayed in the ...
2
votes
1answer
1k views

Can't find function iconv_strpos after server migration

I just changed my magento 1.9 installation to a dedicated server. I uploaded the file system and the database to the new server. When I try to access my website, the following line appears in my ...
2
votes
2answers
537 views

_formatPrice in Magento is returning “”

I have my own custom block which extends "Mage_Catalog_Block_Product_View_Options_Type_Select" core block. With in one of its function I'm using the following code to get priceStr with currency ...
2
votes
0answers
319 views

Invalid input datetime format of value '1/01/1970'

i am trying to update products and all the products give me the same error and is Invalid input datetime format of value '1/01/1970' can someone help me. thanks
2
votes
0answers
388 views

Date Formatting Options - getCreatedAtFormatter($format)

The new order transactional email template passes in the number "2" and creates the format including the time. I wish to display just the Date. I would like to know what the different format options ...
2
votes
1answer
597 views

How do I customize the Terms and Conditions Page on Magento?

When I go to Sales -> Terms and Conditions -> the page to edit my conditions, there is no WYSIWYG to edit the content. I have a responsive website. If I put unformatted text on the terms and ...
1
vote
3answers
4k views

Format price decimal points

I've displayed item's price (both old price and new price) using this code, <?php echo $_item->getProduct()->getPrice(); ?> But when I see the page, it displays price with 4 decimal ...
1
vote
1answer
3k views

order price format in custom module

I am bit confused magento price data formating is done, I am working on custome module whete I need to display order amount in grid, I done it, its working fine but I am getting 4 places of decimal ...
1
vote
2answers
2k views

Magento2 convert UTC time to IST

Can anyone let me know how to change UTC time from table column to IST(Indian Standard time) programatically with Datetime format? I have currently following date time value available in UTC format ...
1
vote
1answer
233 views

Magento2: How can I format the price with two decimal places in the admin ui form field?

In Magento version 2.3.2 and 2.3.3, in a UI form, I have a field element input, of type price*: <field formElement="input" name="price" sortOrder="60"> <settings> <dataType&...
1
vote
2answers
1k views

Magento 2 - Address format

How can I edit the address format? I know that I can add 3 more lines at Stores/Customers/Customers Configuration/Name and Address Options/Number of Lines in a Street Address. Then I can set as 4. ...
1
vote
1answer
807 views

transactional email totals

Can any tell me how to format the totals at the bottom of the transactional emails... I want them to be to the far right. If I view the mail in the browser the totals are to the left. Thanks Tony
1
vote
1answer
3k views

Magento 2 - How to set format datetime for all system

How to set format datetime for all system ? Such as: date attributes of entity(product, customer etc), import, export etc Anyone know, please show me step by step.
1
vote
0answers
27 views

import date format correct in magento 2

i'm tring to import a date field correct into the special_from_date and special_to_date field of products however for some reason the result is not correct. I have this -<Item> <sku>...
1
vote
1answer
23 views

Magento 2.3 replace the comma in the price with the currency symbol

I want to replace the comma in the price with the currency symbol to display something like this .
1
vote
0answers
126 views

Magento2:Format price

I have a website where currency is displayed in the format xx,xx CHF. I want to it to the format CHF xx.xx I got the solution to position the currency symbol by refering the below link. https://...
1
vote
0answers
32 views

Magento 1.9.2. - Change format of summary in cart page

I would like to change the format of the totals in the summary on the shopping cart page, on the checkout page and also in the email for new order, on the customer's orders list, etc. At the moment ...
1
vote
0answers
1k views

Auto change comma for dot, Spanish language in Magento2

I have a problem with catalog price. If my product price is $1,989.89 I want Magento to auto change , to . and display price this way. My XML for es_MX is: Magento/zendframework1/library/zend/...
1
vote
0answers
439 views

How to stop Magento 2 Escaping HTML in Contact form

I'm hoping someone can help me figure out how to prevent Magento 2 from escaping special chars in the contact form! At the moment, when a message is sent via the standard contact form in Magento 2, ...
1
vote
1answer
197 views

Magento 2, with Bosnian Language: bs_Latn_BA, show wrong price format. How to correct?

I install Magento 2, with Bosnian Language: bs_Latn_BA and I notice that price format is wrong. For example, if price is: 1345.67 Magento show me: KM 1,346 Bosnian correct format is: 1.345,67 KM ...
1
vote
0answers
4k views

Change Magento Calendar date format

How to change in Magento date format for Calendar from mm / dd / yyyy to dd / mm / yyyy ? I have tried change locale, nothing. Also for Calendar.setup change setup setting ifFormat: "%Y-%m-%d", ...
0
votes
2answers
8k views

Adding the Now date/time format in Magento

Maybe someone could help me out here. I'm trying to get the correct date/time for this variable. <?php echo $rma['created_time']; ?> I've tried lots of ways. Mage::getModel('core/date')->...
0
votes
2answers
1k views

Magento export products in Excel format without third party library

I am using Magento CE-1.9.2.x in my website. Now I want Catalog >> Manage Products >> Actions select box to include the Export Products to XLS option, with only a custom controller and ...
0
votes
1answer
63 views

Date format issue to save giftcard Lifetime in Magento 2

I am creating giftcard code programmatically. For this in vendor GiftCardAccount Module, the code is: $model = $this->giftCAFactory->create()->setStatus( \Magento\GiftCardAccount\...
0
votes
1answer
1k views

Magento2: How to Change the price format?

I need to change the price format from "10,00" to "10,-". I have tried to find info, but all that I saw is: How to change "," to "." like this How to change currency format in Magento 2? (and btw ...
0
votes
1answer
81 views

Formatting postcodes / zip codes

When a customer adds a postcode / zip code I would like to complete some PHP formatting. From what I can see there are 3 places were a customer can add an address with a postcode Signup My Account ...
0
votes
1answer
760 views

Problems with getDescription() - how to remove line breaks without breaking the text?

I am having a bit of trouble right now.. I'm trying to create a php file to export products to a csv file and it's working pretty good. My only problem is with the product description. I'm using the ...
0
votes
0answers
14 views

Magento 2.3.4: How to serve images in next generation format?

Web.dev performance metrics suggest "Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which means faster downloads and less data consumption"...
0
votes
0answers
16 views

Magento2 Print Orders in excel format in admin

I want to create my orders in excel format in Magento 2 and also wants to populate fields in excel sheet like DOB , product name , company logo , address ,etc. How to achieve this using custom module....
0
votes
1answer
39 views

Magento 2 - How to format cart item price?

In magento 2, I don't know how to format cart item price. I have a price format like this : £1,522.58 and I want this format £1522,58 I succeed to change the format of the total cart price by ...
0
votes
0answers
12 views

Price format problem in Magento 2 (Frontend and Backend)

I have a problem in how Magento 2.3.2 represents the prices of the products that are currently on the platform. I could not find the reason for the problem and no specific pattern of how the error ...
0
votes
0answers
15 views

Display format of site and admin panel not working

I am pretty new to magento and was trying to update quantity from magento admin. Not sure what went wrong format, css stopped working. Nothing working on Magento Admin also. I can login to admin but ...
0
votes
0answers
22 views

Invalid input datetime format of value in Others locale

Preconditions (*) 1.Magento 2.3.2 2.Japen or China locale Steps to reproduce (*) 1.Create or edit product 2.Change date field for new from to anything 3.Click Save Expected result (*) Product ...
0
votes
1answer
39 views

Magento 1.9 - Product image resolution issue

We are facing an issue while trying to upload product images. The PNG format images looks fine like original image color/ resolution but JPG format images not looks good like the original image. JPG ...
0
votes
1answer
57 views

How to remove hundreds seperator from all prices

All prices on the lv_LV store view is displayed with hundreds separator(space) . Tried to change the <group> </group> to <group></group> in \vendor\magento\zendframework1\...
0
votes
1answer
187 views

Address format checkout page issue in Magento 2.2.3

On the checkout page the address format is not assumed. Customer address format defined in the backend is ignored. This is the format defined in backend {{depend prefix}}{{var prefix}} {{/depend}}{...
0
votes
2answers
369 views

Magento 1.9 - How to get price format in javascript or jquery?

I am trying to get magento price format in php file using jquery / javascript function but facing problem. What I have tried .... <script> var price = 10; var priceFormat = '<?php echo Mage:...
0
votes
1answer
164 views

Magento2: how to display 4 digit prices and tier prices in the admin > catalog?

How to modify Magento 2 in order to be able to show 4 digit prices and tier prices in the admin catalog? I can save 4 digit prices and they go in the database, even when I load a product edit form in ...
0
votes
1answer
67 views

Magento 1.9.2.3

Magento is saving datetime in a wrong format. In form I'm using $dateFormatIso = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT); $fieldset->addField('...
0
votes
0answers
167 views

Print invoice format is not proper in customer dashboard Magento ver. 1.9.2.1

I am getting below format of invoice , when customer Print there invoice form there Dashboard. Which files are responsible for the same. I replaced sales folder under /app/design/frontend/base/...
0
votes
2answers
41 views

Magento Quick View Cart - Content of Cart Product name formar gone Wrong

Anyone have a clue why is this Product name in top right ajax cart quick view LIKE THIS as you can see on the picture?