magento2 – Magneto2 is facing issue in data migrate process M1 to M2

I have data migated orders, products and customers using migration tools form M1 to M2 then some products are deleted from backend. Home page design also distarct after migration process and addition attribute created from backend as well.

How can i resolve this issue?

Any one give the solution about this error.

Magento2 Ajax change store currency and refresh total on Checkout page while change address

I want to change the current store currency by ajax and refresh the total when changing the address on the checkout page. I have successfully changed store currency by below code:

$this->storeManager->getStore()->setCurrentCurrencyCode($currencyCode);

But problem is that when I am trying to refresh the total then the amount converted as per currency successfully but the currency symbol not changed. Below is the js code of refresh total:

cartCache.set('totals',null);
defaultTotal.estimateTotals(); 

magento2 – Magento 2 how to use step navigator of checkout in a custom template?

I’m trying to use the checkout step navigator bar in another template.

I tried this but did not work, it just shows buttons:

in phtml.

<div id="steps" data-bind="scope:'steps'">
    <!-- ko template: getTemplate() --><!-- /ko -->
  </div>

<script type="text/x-magento-init">
    {
 
        "#steps": {
            "Magento_Ui/js/core/app": {
               "components": {
                    "steps": {
                        "component": "Vendor_Application/js/steps"
                    }
                }
            }
        }
    }
    </script>

Js component:

define((
    'ko',
    'uiComponent',
    'underscore',
    'Magento_Checkout/js/model/step-navigator'
), function (ko, Component, _, stepNavigator) {
    'use strict';

    return Component.extend({
        defaults: {
            template: 'Vendor_Application/mystep'
        },

        // add here your logic to display step,
        isVisible: ko.observable(true),

        /**
         * @returns {*}
         */
        initialize: function () {
            this._super();

            // register your step
            stepNavigator.registerStep(
                // step code will be used as step content id in the component template
                'step_1',
                // step alias
                null,
                // step title value
                'Step One',
                // observable property with logic when display step or hide step
                this.isVisible,

                _.bind(this.navigate, this),

                /**
                 * sort order value
                 * 'sort order value' < 10: step displays before shipping step;
                 * 10 < 'sort order value' < 20 : step displays between shipping and payment step
                 * 'sort order value' > 20 : step displays after payment step
                 */
                15
            );

            stepNavigator.registerStep(
                // step code will be used as step content id in the component template
                'step_2',
                // step alias
                null,
                // step title value
                'Step Two',
                // observable property with logic when display step or hide step
                this.isVisible,

                _.bind(this.navigate, this),

                /**
                 * sort order value
                 * 'sort order value' < 10: step displays before shipping step;
                 * 10 < 'sort order value' < 20 : step displays between shipping and payment step
                 * 'sort order value' > 20 : step displays after payment step
                 */
                20
            );

            return this;
        },

        /**
         * The navigate() method is responsible for navigation between checkout steps
         * during checkout. You can add custom logic, for example some conditions
         * for switching to your custom step
         * When the user navigates to the custom step via url anchor or back button we_must show step manually here
         */
        navigate: function () {
            this.isVisible(true);
        },

        /**
         * @returns void
         */
        navigateToNextStep: function () {
            stepNavigator.next();
        }
    });
});

HTML Template

<li id="step_1" data-bind="fadeVisible: isVisible">
    <div class="step-title" data-bind="i18n: 'Step One'" data-role="title"></div>
    <div id="checkout-step-title"
         class="step-content"
         data-role="content">

        <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
            <div class="actions-toolbar">
                <div class="primary">
                    <button data-role="opc-continue" type="submit" class="button action continue primary">
                        <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
                    </button>
                </div>
            </div>
        </form>
    </div>
</li>

<li id="step_2" data-bind="fadeVisible: isVisible">
    <div class="step-title" data-bind="i18n: 'Step Two'" data-role="title"></div>
    <div id="checkout-step-title"
         class="step-content"
         data-role="content">

        <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
            <div class="actions-toolbar">
                <div class="primary">
                    <button data-role="opc-continue" type="submit" class="button action continue primary">
                        <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
                    </button>
                </div>
            </div>
        </form>
    </div>
</li>

Any ideas? or where can I find the template of the step navigator, maybe I can just copy it and assign as template to my js component.
Thanks!

magento2 – Magento 2 REST-API

I’m new to Magento (Version 2) and am a bit confused by the variables for the calls in the API-Documentation (https://magento.redoc.ly/). As you might know there’s not much explanation about what they stand for or possible values besides the datatype. Until now I could construct most calls with the help of this and other forums, but am now stuck on the call to get orders based on certain criteria, e.g. “new” orders, orders from the last n days (What does searchCriteria(filterGroups)(0)(filters)(0)(field) mean? What could be possible values???). Since this probably won’t be the last call causing me such headaches I was wondering if there might be a document I didn’t find yet, where there are further explanations.

Thank you very much for your help!

magento2 – Shipping price disappearing magento 2.3

when changing anything in the xml of the checkout cart index.xml file, the price next to the freight stops appearing in magento 2.3.5. I’m trying to organize the layout of the content but in any case the price of freight simply disappears when changing anything. Has anyone had this problem? I tried to replace the Magento_checkout folder in: vendor / magento / module-checkout / view / frontend / layout / checkout_cart_index.html, for: app / design / frontent / / / Magento_Checkout / layout / checkout_cart_index. html, But even so when trying to edit the checkout_cart_index file, the value that is next to the freight disappears. I do not know what to do. Help me please.

magento2 – Magento 2.3 | Found 2 elements with non-unique id #fulltext

Getting following errors at admin->order->grid, under console:

Found 2 elements with non-unique id #fulltext
Found 2 elements with non-unique id #sales_order_grid.sales_order_grid.listing_top.listing_paging_sizes

Above errors, making browser comparability issues while printing invoices on IE and safari.

magento2 – Don’t Sort by Name when have Mysql Search Engine Magento 2.4.1

I installed the Weltpixel AjaxLayeredNavigation extension and with the Swissup extension of Mysql Legacy Search Engine, having both activated when I want to sort by name gives me the following SQL error: Column not found: 1054 Unknown column ‘nameasc’ in ‘order clause’

If someone has gone through a similar error please it would be of great help.

magento2 – Advanced Reporting always shows 404

I have configured Advanced reporting in Magento 2.3.4 and in 2.3.5-p1. I have followed all the given steps to configure Advanced reporting in Magento, even my subscription is showing “Enabled” status. But still it shows me 404.

Not sure what I did wrong or what could be the settings other that need to add.

Can you please provide solution on this?

magento2 – How to create my custom visual swatch color attribute in my own module Vendor/Module/Setup/Patch/Data/MyOwnColorAttribute?

I take from https://github.com/magento/magento2/blob/2.3/dev/tests/integration/testsuite/Magento/Swatches/_files/product_visual_swatch_attribute.php like example, but my own color attribute patch didn’t create any options if I add those parameters. This is my code:

<?php 
namespace VendorModuleSetupPatchData;

use MagentoCatalogModelProduct;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
use MagentoEavModelEntityAttributeSourceTable;
use MagentoEavSetupEavSetupFactory;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoFrameworkSetupPatchDataPatchInterface;
use VendorModuleModelAttributeBackendColor as Backend;
use VendorModuleModelAttributeFrontendColor as Frontend;

class AddColorAttribute implements DataPatchInterface
{
    /**
     * @var ModuleDataSetupInterface
     */
    private $moduleDataSetup;

    /**
     * @var EavSetupFactory
     */
    private $eavSetupFactory;

    /**
     * @param ModuleDataSetupInterface $moduleDataSetup
     * @param EavSetupFactory $eavSetupFactory
     */
    public function __construct(
        ModuleDataSetupInterface $moduleDataSetup,
        EavSetupFactory $eavSetupFactory,
    ) {
        $this->moduleDataSetup = $moduleDataSetup;
        $this->eavSetupFactory = $eavSetupFactory;
    }

    /**
     * @inheritdoc
     */
    public function apply()
    {
        $this->moduleDataSetup->startSetup();
        $eavSetup = $this->eavSetupFactory->create();
        $eavSetup->addAttribute(Product::ENTITY, 'visual_swatch_color_attribute', (
            'type' => 'int',
            'label' => 'Visual Swatch Color Attribute',
            'input' => 'select',
            'frontend' => Frontend::class,
            'backend' => Backend::class,
            'source' => Table::class,
            'required' => false,
            'global' => ScopedAttributeInterface::SCOPE_GLOBAL,
            'visible' => true,
            'is_used_in_grid' => true,
            'is_visible_in_grid' => true,
            'is_filterable_in_grid' => true,
            'user_defined' => true,
            'searchable' => true,
            'filterable' => true,
            'comparable' => true,
            'visible_on_front' => true,
            'used_in_product_listing' => true,
            'is_html_alowed_on_front' => true,
            'unique' => false,
            'swatch_input_type' => 'visual',
            'swatchvisual' => (
                'value' => (
                    'Obsidian' => '#3a322d',
                    'Pure' => '#0000ff',
                    'Crimson' => '#dc143c',
                    'Emerald' => '#50c878',
                    'Ametyst' => '#9966cc',
                ),
            ),
            'optionvisual' => (
                'values' => (
                    'Obsidian' => ('Obsidian'),
                    'Pure' => ('Pure'),
                    'Crimson' => ('Crimson'),
                    'Emerald' => ('Emerald'),
                    'Ametyst' => ('Ametyst'),
                ),
            ),
            'default' => '1'
        ));

        $eavSetup->addAttributeToGroup(
            MagentoCatalogModelProduct::ENTITY,
            'Default',
            'Product Details',
            'visual_swatch_color_attribute',
            18
        );
        $this->moduleDataSetup->endSetup();
    }

    /**
     * @inheritdoc
     */
    public static function getDependencies(): array
    {
        return ();
    }

    /**
     * @inheritdoc
     */
    public function getAliases(): array
    {
        return ();
    }
}

magento2 – Apple pay and Google pay not able to see in Magento 2 using Stripe

I have configured Stripe account and in that I have enabled Apple Pay and Google Pay after configuring on stripe i even enabled from Magento backend but it seems I could not see any Apple Pay and Google Pay button.

Can you please provide any solution?