Questions tagged [convert]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer
1k views

Fixer.io Currency Converter Not Working

Magento offers an out-of-the-box integration to the third party currency conversion api Fixer.io. Having acquired a free api key I have attempted to update the currency rates on my magento build to be ...
Richard Parnaby-King's user avatar
0 votes
0 answers
157 views

get result from phtml file to html

I have below code (which is at .phtml page) which echo store view selected and i want to take that value which is echo by below code and display it in an html page. please help how to do that. thanks. ...
nkosinathi nxele's user avatar
0 votes
1 answer
217 views

Magento 2.3.0 | How to convert custom popup into PDF and Download

I am having an Custom popup code which appears on the product page, I need to download this as PDF, I tried with dumpdf but couldn't succeeded. My code is following: <?php $prodArr = $this->...
user9386912's user avatar
0 votes
1 answer
107 views

Changing Dropdown attribute to text in magento 1.9 without changing data

In Magento 1.9, I am going to convert my drop-down attributes to text field without changing my current data Below is the image of current attribute set
J.Dev's user avatar
  • 1
0 votes
1 answer
4k views

Convert Base64 to Image file and save file directory : Magento 2

How to convert base 64 image format to image file and save image in local file directory in magento 2 public function setProfileImage($customerId, $base64) { if ($customerId)...
Shafeel Sha's user avatar
  • 1,385
0 votes
0 answers
429 views

Convert Object to Array

I try to convert my custom Object to Array. Here my Object : Namespace\Project\Model\Custom\Object Object ( [attr1:protected] => value1 [attr2:protected] => value2 [attr3:protected]...
Kozame's user avatar
  • 964
0 votes
1 answer
2k views

array convert into Magento 2 collection

I have 2 collection 1 is $bestsalecollection that show in dashboard . second is product collection. After filter collection when i return it generate error Call to a member function isLoaded() on ...
HaFiz Umer's user avatar
  • 1,641
2 votes
0 answers
785 views

Magento2: How to convert weight unit to grams from kg?

I have a website in Magento2. Mageto2 provides product weight unit in KG, how an I convert it into unit Gram. I want to change the product weight unit from KG to Gram how it is possible ?.
MehulKanjariya's user avatar
2 votes
1 answer
2k views

How custom attribute of "sales_order_item" table will be save also in "sales_order"

I am using plugin for converting "quote_item" to "sales_order_item" from below give code it work. public function aroundConvert( \Magento\Quote\Model\Quote\Item\ToOrderItem $subject, \...
HaFiz Umer's user avatar
  • 1,641
4 votes
2 answers
4k views

Magento 2 : how to convert custom quote field to order field

I added a new field "management_fee" on table "quote" properly. I add this field on "sales_order" field too. I would like to update this field on sales_order table while quote is converting to order. ...
th0r1eif's user avatar
  • 154
3 votes
4 answers
10k views

Magento-2 How to convert price from current currency to base currency

I want to convert product price from the current currency to base currency. For Example, if the product price is 5000 INR. I want to convert 5000 INR to USD. I don't know which core function will be ...
Suresh Chikani's user avatar
0 votes
0 answers
78 views

Convert latin to cyrillic in Magento

Is there any plugin (free or commercial) which can translate latin into cyrillic? So plugin would work like this I would uplod data for news, products etc. in Magento Admin panel in Latin letters - ...
DaniKR's user avatar
  • 115
0 votes
1 answer
448 views

Magento Convert timezone

I have an input array data containing time in 'Y-m-d h:i:s' format and the gmt timezone data like this: $time = array( "time" => "2017-11-01 12:00:12" "gmt" => "+7" ...
Shell Suite's user avatar
  • 1,702
2 votes
1 answer
8k views

Magento2: Collection to SearchCriteria

How to convert $products = $this->_catalogSearchAdvanced ->getProductCollection() ->addStoreFilter($storeId) ->setCurPage($page) ->setPageSize($...
Miguel's user avatar
  • 549
1 vote
1 answer
759 views

magento 2 varien_file_csv

I have a script from Magento 1 that I ned to convert to Magento 2. The script uses Varien_File_Csv that I can't find in Magento 2, and so can't the Magento 2. Where is this file in Magento 2 found? Or,...
Vladimir Despotovic's user avatar
2 votes
0 answers
684 views

I am trying to convert DIV to Image without HTML2CANVAS [closed]

I am recently trying to convert html to image in magento 1.9.2.4. so i have used Html2canvas.js. But It conflict with Magento Default prototype.js. So now i need to convert div to image without canvas....
Ajay Patel's user avatar
  • 1,513
1 vote
1 answer
2k views

Best way to convert configurable products to simple products

A client has a lot of configurable products which contain just one simple product. The thinking behind this is that it will be easier to add products when the manufacturer ads new variants of the ...
SiteRefresh's user avatar
-1 votes
1 answer
56 views

Convert response to readable form

I am posting request to paypal using curl. Please check following code $url = 'https://api-3t.sandbox.paypal.com/nvp'; $request = array(); $request['USER'] = 'username' ; --- sending other ...
Krupali Mehta's user avatar
2 votes
2 answers
232 views

`copyFieldset` one source property to multiple target properties

I'm tasked converting quotes into a custom data type, and using Mage_Core_Helper_Data::copyFieldset was working really well until I had two target properties that had to be set to the same source ...
mpw's user avatar
  • 1,050
1 vote
1 answer
492 views

Two prices on one product. Cant find info how

i have a different request my price should look like.Its only because my country is currently in currency changing period. So i need to price look like this It doesn't matter in what currency but i ...
Mantas Rimkevicius's user avatar
1 vote
1 answer
1k views

Regarding currency conversion error INR and USD

I have a problem with currency convert, my base currency is Indian Rupee and i mapped Indian Rupee and [USD] to the site. Currency rates also given correctly. While i changed INR to USD its showing ...
Anil's user avatar
  • 11
0 votes
1 answer
4k views

How to filter collection by OR condition?

I have two 'Yes/No' attributes created for products in my store. I want to get the product collection of products whose at least one attribute is set to yes. I've searched the web, but many websites ...
Sukeshini's user avatar
  • 9,935