Questions tagged [format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 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
25 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
0answers
45 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://...
2
votes
0answers
105 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
0answers
14 views

Change Decimal Symbol for Price in Admin

I have installed magento 2 and by default decimal symbol is ',' coming everywhere in Admin and Frontend. When I add product price 17 it saving 17,00. And when I save 170,00 then it's saving 17,000,...
0
votes
1answer
66 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
191 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
68 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
0answers
25 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 ...
3
votes
4answers
136 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> ...
1
vote
2answers
798 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
1answer
755 views

Changing price format

I need to change price format from "10,00" to "10,-" . I have tried to find info, but all what i saw is: How to change "," to "." like this How to change currency format in Magento 2? (and btw it's ...
0
votes
1answer
35 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('...
4
votes
2answers
1k 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: ...
1
vote
3answers
2k 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
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. ...
0
votes
0answers
149 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
vote
1answer
645 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
0answers
373 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
840 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 ...
5
votes
3answers
14k 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 ...
9
votes
1answer
6k 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 ...
5
votes
1answer
3k 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
votes
0answers
89 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
0answers
877 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
360 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
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\...
9
votes
1answer
672 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 ...
1
vote
1answer
172 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
2answers
7k 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')->...
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.
0
votes
1answer
77 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
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 ...
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 ...
0
votes
2answers
40 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
6answers
13k 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->...
1
vote
0answers
3k 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
1answer
176 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 ...
2
votes
1answer
568 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 ...
0
votes
1answer
696 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 ...
2
votes
2answers
428 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 ...
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 ...