magento2.4 – Layout with cacheable=”false” doesn’t work in Magento Cloud with Fastly

I am trying to make a whole custom controller not cacheable. In my layout XML I added this:

<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceContainer name="content">
            <block name="welcome.index" class="VendorWelcomeBlockWelcomeIndex" template="Vendor_Welcome::welcome/index.phtml" cacheable="false" />
        </referenceContainer>
    </body>
</page>

In my local, it works fine and the page is not coachable. However, when I upload it to our staging environment in Magento Cloud with Fastly enabled, it doesn’t work and the page is stored in cache showing the info from another customer. Do I need to do something different to make that the cacheable=”false” works with Fastly?

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!

Magento 2 : getting error "class magento doesn’t exist" while compile

while running compile command i am getting "class magento doesn’t exist" error. please 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.

xml – Preço do frete some da página de checkout – MAGENTO 2

Galera boa noite, estou com um problema a respeito do magento 2, eu estava mudando o layout da pagina de carrinho e percebi que se eu alterar qualquer coisa no xml Checkout_cart_index.xml o preço do frete simplesmente para de aparecer. Eu sei que oque traz ele é um código “data-bind=”text: getFormattedPrice(method.price_excl_tax)”. Alguem ja teve esse problema?

inserir a descrição da imagem aqui

Se eu simplesmente adicionar qualquer coisa ou alterar algo no checkout_cart_index o valor do frete some

inserir a descrição da imagem aqui

Como resolver isso ? eu preciso editar esse layout e preciso que o valor conste ao lado do frete

Magento 2.3.5 p1 latest?

Am i on the latest version of Magento? We are on 235p1 and version is community. Are there critical patches available?
Thanks.

magento2.4 – Magento 2.4 – Category Image showing Nan undefined in backend

When I upload category image in backend and save the category, it start reflect on frontend but in backend it is showing broken.

enter image description here

The category image path in frontend /media/catalog/category/image.jpg but in backend, path is showing as https://store.com/media/catalog/category//media/catalog/category/image.jpg.

How to resolve it?

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.