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 filter section show when page load?

I have set one grid in frontend using Uicomponent. I want to filter section expand when page load, after customer filter any value that it will close.
I try using below code.

$(document).ajaxComplete(function(){ 
trigger code for expand
});

but its every time expand.

Magento 2 : Install & configure , use redis in custom script

How to (install,configure) & use redis cache in magento 2 custom script ?

magento2 – Why are prices rounded in magento 2.3 administration?

I have a product that on the website has a price of 15.5 USD but when I go to consult it in the sales reports the price of that product is rounded up to 16USD.

Can someone help me so that the prices are not rounded in the administrator, thank you very much !

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.3.4 – Magento 2: Verify email address with Third-party API

I have to validate the email address before adding into the website for the below areas. Verification will be by some API like
https://www.zerobounce.net/docs/email-validation-api-quickstart/

  1. Register
  2. Newsletter subscribe
  3. Checkout

Also, need to get from where this email address is added, for example, Registration form, Checkout, Newsletter form, etc

Please give me some suggestions regarding this.

addtocart – Magento 2.4 – How to enable ajax for add-to-cart button and wishlist button of product widgets on homepage?


Your privacy


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.




magento2.4 – product details page is featured attribute yes show attribute in magento 2.4

This attribute only show Is Featured Yes for attribute in product details page in magento 2.4

app/design/frontend/Magento/Theme/Magento_Catalog/templates/product/view/attributes.phtml

<?php
  $_helper = $this->helper(MagentoCatalogHelperOutput::class);
  $_product = $block->getProduct();
?>
<ul class="mb">
<?php if($_product->getAttributeText("test")): ?>
    <li>
        <span class="primary-c"><?= $_product->getResource()->getAttribute("test")->getStoreLabel() ?>:&nbsp;</span>
        <span><?= $_product->getAttributeText("test") ?></span>
    </li>
<?php endif; ?>

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.