Categories
CMS Magento Mastering Development

Magento 2.3.5p2 – PayPal Error – PayPal NVP gateway errors: A successful transaction has already been completed for this token

After recently upgrading to 2.3.5p2 EE, we encountered an error when a customer placed two magento orders in close time proximity to each other. The first order worked fine, and Magneto recorded both a correlation id and an transaction id, but for the second order Magento completed the order, but there was only a correlation […]

Categories
CMS Magento Mastering Development

REST API: Consumer is not authorized to access %resources

I’m in the middle of finishing a Magento 2 store for a client. The last I had on my to-do list, was connect Magento to their accounting software through the REST API. However, apparently there’s some serious issue when it comes to the REST API in the Magento installation. No matter what I do I’m […]

Categories
CMS Magento Mastering Development

How can i import bulk products with CSV having 1 lakh in PHP

tried with below code and saved only 10k records, how can i import with batch size? if(isset($_POST["Import"])){ $filename=$_FILES["file"]["tmp_name"]; if($_FILES["file"]["size"] > 0) { $file = fopen($filename, "r"); while (($getData = fgetcsv($file, 100000, ",")) !== FALSE) { $sql = "INSERT into employeeinfo (emp_id,firstname,lastname,email,reg_date) values (‘".$getData[0]."’,’".$getData[1]."’,’".$getData[2]."’,’".$getData[3]."’,’".$getData[4]."’)"; $result = mysqli_query($con, $sql); if(!isset($result)) { echo "<script type=\"text/javascript\"> alert(\"Invalid File:Please Upload […]

Categories
CMS Magento Mastering Development

How can i use the api in c#

I want to make api calls from a c# script but i have no idea where to start. Can somebody please help me? I searched and found this: https://github.com/nickvane/Magento-RestApi but i dont think it works with magento 2.

Categories
CMS Magento Mastering Development

This is not implemented, as it is not possible to implement Argon2i with acceptable performance in pure-PHP

I am using xampp and it’s php version is 7.3.27. I am trying to install magento version-2.4.2 in ubuntu linux. But i am facing this problem. I have found several solution to install libosodium extension on internet to solve this problem. But it is not clear, how to install it in xampp php folder, not […]

Categories
CMS Magento Mastering Development

Double shipment confirmation sent Magento 2.3

We currently have Magento 2.3 and Mailchimp. Every time a customer buys something, the customer gets 2 sets of the same email every confirmation sent out. So now we have been put on a blacklist of some sort for spamming. How can we stop this from happening? Any help is appreciated.

Categories
CMS Magento Mastering Development

Argument 1 passed to Magento\Framework\View\Page\Config\Renderer::canTypeBeFont() must be of the type string

I’m getting this error while changing stylesheet. This is the only thing that shows up on the screen. How do I begin to debug this? Reverting doesn’t do anything. I’ve tried cache flush and setup upgrade also deleted var/cache/* var/generation/* var/page_cache/* var/view_preprocessed/* generated/* pub/static and rebuilt. Same error Fatal error: Uncaught TypeError: Argument 1 passed […]

Categories
CMS Magento Mastering Development

Magento2 display header compare link after custom block in header

Magento2 move header compare link after custom block in the header I have added custom block in header as follows <referenceContainer name="header.topcontent"> <block class="Magento\Cms\Block\Block" name="Blockname" after="-"> <arguments> <argument name="home_page_top_content_block" xsi:type="string">home_page_top_content_block</argument> </arguments> </block> </referenceContainer> I need to display this block catalog.compare.link after my custom block

Categories
CMS Magento Mastering Development

PHP Fatal error: Uncaught Error: Class ‘Locale’ not found in /opt/lampp/htdocs/magento-2.4.2/vendor/magento/framework/Locale/Bundle/DataBundle.php:64

I am using xampp and it’s version is 7.4.15-0 and php version is 7.4.3. I am trying to install magento version-2.4.2 in ubuntu linux and it’s always say’s Locale not Found. I have enable the extension=php_intl.dll extension by removing the comment, but it still gives the same error. How should i solve it?

Categories
CMS Magento Mastering Development

How long does it take to make amendments to an already uploaded and approved magento 2 extension

For example I am developing a payment method module for magento 2. Suppose I have submitted the module for review. All the tests pass, my module is approved, up and running. Some magento websites already use my extension. Now i want to make changes to the module. How is the process carried out? is it […]