Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
22 views

How to downalod the format image in the datafeed

I would like to download the format of the images in my data feed so that I can see which ones are the wrong size. Does anyone know how I can do that?
1 vote
1 answer
314 views

Magento 2.4.2 invalid date format by default, can't change date format in UI component

I would like to specify the date format for a new date field in my CMS page form. I have created a new cms_page_form.xml field which links to a date field in the MySQL database table cms_page. However,...
0 votes
1 answer
161 views

Magento 2.3.5 email template country directive issue

The website has two languages, en_US and de_DE. Both are translated correctly, everything is as it should be. But, when I submit an order, see the attachment below. I've also tried to submit an order ...
1 vote
1 answer
82 views

How to show formatted price according to store wise currency in admin(Custom module)?

I have 2 websites in my magento. I have created one custom extension. In custom extension, i have form to fill which have firstname , last name, product price, store id. Website 1 currency = USD (...
0 votes
1 answer
52 views

Converting this date format 2021-04-26 05:31:38 to 26 Apr, 2021 in magento 2

How can we Convert this date format 2021-04-26 05:31:38 to 26 Apr, 2021 in Magento 2. Please let me know how can I do this.
0 votes
2 answers
164 views

How to format the price on the backend

I have a variable $ customerProductPrices that contains data like this. How to format data (price, special_price, price_value, special_price_value) in a variable That I would get not just a number, ...
  • 138
0 votes
1 answer
192 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 ...
  • 107
0 votes
0 answers
35 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 ...
  • 1
1 vote
0 answers
104 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>...
  • 21
1 vote
1 answer
200 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 .
0 votes
1 answer
201 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\...
  • 1,561
2 votes
1 answer
1k 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&...
  • 2,777
0 votes
1 answer
68 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
1 answer
171 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\...
1 vote
0 answers
306 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,355
3 votes
1 answer
825 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
0 votes
1 answer
386 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
2 answers
537 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:...
  • 119
0 votes
1 answer
340 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 ...
1 vote
0 answers
57 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 ...
  • 487
3 votes
6 answers
1k 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> ...
  • 56
1 vote
2 answers
3k 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 ...
0 votes
1 answer
2k 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
1 answer
139 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('...
  • 867
4 votes
2 answers
3k 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: ...
  • 2,602
2 votes
3 answers
9k 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 ...
  • 561
2 votes
2 answers
2k 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. ...
0 votes
0 answers
193 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/...
  • 1,656
1 vote
1 answer
997 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
2 votes
0 answers
392 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
1 answer
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 ...
7 votes
3 answers
28k 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 ...
  • 131
13 votes
1 answer
14k 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 ...
6 votes
1 answer
6k 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.
  • 3,566
3 votes
0 answers
119 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 ...
1 vote
0 answers
2k 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
0 answers
550 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, ...
5 votes
3 answers
3k 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\...
  • 183
9 votes
1 answer
932 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 ...
  • 186
1 vote
1 answer
234 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 ...
0 votes
2 answers
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')->...
  • 799
1 vote
1 answer
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.
  • 3,566
0 votes
1 answer
82 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 ...
  • 2,469
0 votes
2 answers
2k 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 ...
  • 1,984
5 votes
2 answers
5k 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 ...
0 votes
2 answers
42 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?
3 votes
6 answers
18k 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->...
  • 605
1 vote
0 answers
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", ...
  • 107
0 votes
1 answer
194 views

Date formats interpreting “european” date format DDMMYY for “American” format MMDDYY

Could some one please let me know the reason of this happpening that sometimes European date format is being taken in the customer database instead of American. We have selected the time zone as PST ...
  • 1
2 votes
1 answer
627 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 ...
  • 21