Skip to content

magento2.3

Auto Added by WPeMatico

How to use external js for the phtml files in magento 2

my phtml file <div class=”home-del-days-main-cont”> <div class=”hof-changeoutletcontent”> <div class=”h-find-de-day”> <h2><?php echo __(“Enter your postcode to find delivery days “);?></h2> <div> <p style=”text-align: center;”><?php // echo __(“Please enter a delivery postcode to see delivery days.”);?></p> </div> </div> </div> <div> <div class=”h-news-frm”>… Read More »How to use external js for the phtml files in magento 2

Magento 2: Including External JS – Uncaught Error: Mismatched anonymous define() module

Trying to include an external JS file on a specific page. Currently using the following in my layout: <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <head> <script src=”https://js.braintreegateway.com/web/dropin/1.14.1/js/dropin.min.js” src_type=”url”/> </head> </page> I see the script included in the head of my page… Read More »Magento 2: Including External JS – Uncaught Error: Mismatched anonymous define() module

Magento2.4.3: Error while instaling Sample Data?

I’m getting error after deploying sample data when i run setup:upgrade command i get this error, any idea? Unable to apply data patch MagentoGroupedProductSampleDataSetupPatchDataInstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exception message: Rolled back transaction has not been completed correctly

Magento 2 – I’m upgrading magento 2.1 to 2.3.5 but compile command returning error

I’m trying to upgrade magento 2 version to the latest version by following commands php bin/magento maintenance:enable composer require magento/product-community-edition 2.3.5 –no-update composer update rm -rf var/cache/* rm -rf var/page_cache/* rm -rf var/generation/* php bin/magento setup:upgrade Above commands executed successfully.… Read More »Magento 2 – I’m upgrading magento 2.1 to 2.3.5 but compile command returning error

Knockout template : how to provide function parameter/s for looped object, also function call ‘is not defined’

I am trying to edit an existing payment method module template: This is a looped object option (which is information about the current loop iteration payment method). The original template loop: <ul class=”types”> <!– ko foreach: { data: JSON.parse(getPaymentTypesList()), as:… Read More »Knockout template : how to provide function parameter/s for looped object, also function call ‘is not defined’