The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [convert]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
14 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->...
0
votes
1answer
14 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
0
votes
1answer
93 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)...
0
votes
0answers
23 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]...
0
votes
1answer
59 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 ...
2
votes
0answers
216 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 ?.
2
votes
1answer
279 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, \...
0
votes
2answers
1k 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. ...
2
votes
2answers
2k 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 ...
0
votes
0answers
36 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 - ...
0
votes
1answer
374 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" ...
1
vote
1answer
2k views

Magento2: Collection to SearchCriteria

How to convert $products = $this->_catalogSearchAdvanced ->getProductCollection() ->addStoreFilter($storeId) ->setCurPage($page) ->setPageSize($...
1
vote
1answer
481 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,...
2
votes
0answers
480 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....
1
vote
1answer
986 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 ...
-1
votes
1answer
47 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 ...
2
votes
2answers
207 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 ...
1
vote
1answer
490 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 ...
1
vote
1answer
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 ...
0
votes
1answer
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 ...