4 votes

Magento 2.4.3 currency symbol not showing on product,cart and checkout page

Its a bug in 2.4.3: src\vendor\magento\module-directory\Model\Currency.php Comment out these lines: if ($this->canUseNumberFormatter($options)) { return $this->formatCurrency($price, $...
user avatar
4 votes
Accepted

Error message "Some of the products are disabled" on checkout

check your magento file vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php the GuestPaymentInformationManagement.php file is updated in magento2.4.4 version. Magento\Checkout\...
user avatar
  • 1,319
3 votes
Accepted

Magento 2.4.4 - Unable to place order: There are no source items with the in stock status

Whenever we will upgrade Magento 2.3.X version to Magento 2.4.3 at that time Multi-Source Inventory Issue happens. To solve that issue need to follow the below steps. Step #1 First Disable all MSI ...
user avatar
3 votes

Uncaught TypeError: Unable to process binding "afterRender: function(){return renderReCaptcha() }" on checkout page

Try This app/code/VendorName/ModuleName/view/frontend requiejs-config.js var config = { config: { mixins: { 'Magento_ReCaptchaFrontendUi/js/reCaptcha' : { '...
user avatar
  • 6,053
2 votes
Accepted

Magento 2.3.5-p2 with Stripe Plugin 3.0.0: New order emails being sent twice

This issue is now solved with the 3.1.1 update https://github.com/stripe/stripe-magento2-releases/blob/master/CHANGELOG.md
user avatar
2 votes
Accepted

How to get Data from system.xml file

You should pass system.xml data to customer by CompositeConfigProvider. define CompositeConfigProvider in your di.xml file app/code/{{Vendorname}}/{Modulename}/etc/frontend/di.xml <?xml version=&...
user avatar
  • 1,319
2 votes

Magento 2 checkout input field remove CSS class

if you want to change or add class in fields then you have to copy the file vendor\magento\module-ui\view\frontend\web\templates\form\field.html and move in your theme app\design\frontend\<vendor&...
user avatar
1 vote

Magento 2: How to make PO number optional using custom module?

You can use requirejs-config.js for overwrite or extend native logic Overwrite: let config = { map: { "*": { "Magento_OfflinePayments/payment/purchaseorder-form....
user avatar
1 vote

How to know which file to make changes in Magento 2

Use template path hint to show the file path. This will show all the .phtml files used on page view. To enable template hints, your environment should be development Note: Do not enable template hint ...
user avatar
  • 8,888
1 vote
Accepted

Get all items from cart

To get Custom Attribute at cart item level, you need to define attribute in Vendor/Module/etc/catalog_attributes.xml. refer below Example. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
user avatar
1 vote

Get all items from cart

Please try Below Code Create a catalog_attributes.xml in Vendor/Module/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
1 vote
Accepted

Exclude Product from cart rules if product have catalog rule discount

Here we have 2 solutions for this task 1 Solution: Move Di.xml from frontend folder to global location like below app/code/[Vendor]/[Module]/etc/di.xml and it will work in both areas like the cart ...
user avatar
1 vote
Accepted

Add dynamic class for product li item in magento2 checkout

You need to override this below file in your theme and replace below code to add class based on condition : File Path : vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items....
user avatar
  • 16.6k
1 vote

Change label for Cart Price Rule

Create a folder in your theme "i18n" and add en_US.csv , with the help of en_US.csv you can change "Discount" string to another string, it's one of the easiest method.
user avatar
1 vote

Magento 2.3.5-p2 with Stripe Plugin 3.0.0: New order emails being sent twice

Update from Stripe Hello, This is a quick update to let you know that the problem has been fixed, and will be included in the next release of the module. We anticipate the next release to be publicly ...
user avatar
1 vote
Accepted

Magento 2 : Disabled product is removed from the cart

Need to create events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
user avatar
1 vote

magento 2.4 change input field based on selcted country in shipping address form

Call a new JS on Checkout shipping address form File Path : Vendor/Module/view/frontend/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
user avatar
1 vote

How to get ordered product count in magento 2.4

Try this <?php $orderItems = $_order->getAllItems(); $productItemcount = 0; $productItemcount = count($orderItems);
user avatar
1 vote
Accepted

Unable to process binding afterRender error return on Checkout Page in Magento 2.4

Create requiejs-config.js file and add this mixin : app/code/Vendor/Module/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_ReCaptchaFrontendUi/...
user avatar
  • 16.6k
1 vote

Magento 2 How to Override Cart/Item/default.phtml file in my Custom module

Check The Below Code <block class="Magento\Checkout\Block\Cart\Item\Renderer" as="simple" template="Vdcstore_QuantityDropdown::cart/item/default.phtml" /> ...
user avatar
1 vote
Accepted

How to get value from quote_address table in Magento2

If you have quote object. You can access quote_address data like: echo $quote->getBillingAddress()->getId(); // billing address id echo $quote->getBillingAddress()->getEmail(); echo $quote-...
user avatar
  • 5,366
1 vote
Accepted

Magento 2.4 - PayPal Smart Button Style

No need to create preference, we can use type create: app/code/Vendor/Extension/etc/di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=&...
user avatar
  • 5,366
1 vote

Get selected country id and region name in class LayoutProcessor of custom module

You cannot reach your goal through LayoutProcessor.php because in this way you define how your field will look like after it is rendered. So in your layout processor you should define the select ...
user avatar
1 vote
Accepted

Magento 2: How to add validation for existing address before Order Place

You can do this via obsever, here is how. on your etc\events.xml <event name="checkout_submit_before"> <observer name="checkout_submit_before" instance="...
user avatar
  • 1,129
1 vote
Accepted

How to update shipping methods on street field input change on checkout page?

Add a mixin for shipping rates validation rules: app/code/Vendor/Module/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_Checkout/js/model/...
user avatar
1 vote

Chekout issue POST/rest/default/V1/carts/mine/set-payment-information-and-get-totals 400

Having a similar issue after upgrading from 2.2.3 to 2.4.3. I have an ancient no longer supported plugin for COD (msp cashondelivery) which causes a 500 error in checkout when selecting it as payment ...
user avatar
1 vote
Accepted

Magento 2 : Extra fee not adding in Paypal Express Checkout

Method is proper but problem is just with amount mismatch. Amount must be same as the amount which is added in subtotal.
user avatar
  • 21
1 vote

How to change payment method title on checkout page?

If you are looking to only change a specific payment method group title the following approach must solve your problem. I used it to change the Vault Payment method group title only. Create a new ...
user avatar
1 vote
Accepted

How to make order summary block in checkout as sticky in magento 2.3.3?

we can able to make order summaries like sticky ones using simple custom CSS. I have added the following CSS in my class. .opc-sidebar.opc-summary-wrapper { margin: 0px 0 0px; position: -webkit-sticky;...
user avatar
1 vote

Magento 2 : We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer your_db_user@% does not exist

Please follow the below steps to fix this issue: mysqldump -uroot -p --triggers --add-drop-trigger --no-create-info --no-data --no-create-db --skip-opt test > /tmp/triggers.sql Open triggers.sql ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible