New answers tagged

0

Magento by default uses order css attribute to position components, you can manipulate order attribute in media queries to accomplish this.


0

I already found the solution and posted it on this question: After upgrade to Magento 2.3 - js error in arrays.js in cart and checkout Hope it might be useful for some people.


0

I had the same problem, and I finally found out how to fix it. The problem is that the "Instant Purchase" is enabled. So you need to go to: Stores -> Configuration -> Sales -> Sales -> Instant Purchase -> Enabled (set this to NO) And that's it. I had been looking on how to fix this for 4 days without any luck. So I decided to go ...


0

This feature isn't implemented by Magento yet. But it can be done with MSI Customer Source Selector extension that does the trick.


0

With the help of @AmitSaini i figured out. I am currently using Magento 2.3.6 How to "add to cart" a product with custom input field and save it to Database? Follow this link and check Renon Stewart answer. If you get in Product View this error: {"message":"Unable to unserialize value. Error: Syntax error"} or if you get the ...


0

You can change mini_cart_product_thumbnail in the view.xml file


0

Hey, hope you are doing well! Magento 2 provides you with the possibility to create shopping cart price rules and offer your customers a discount. Let’s consider how to set up a new rule. Say, you need a rule that will give 10% off with the coupon SECRET_DISCOUNT for everyone who has this coupon or you can use it as for specific product as you want. Step 1. ...


0

Have you solved your problem ? If so, I'm interessted to know how. Thanks


0

In programming, everything is possible :) You must search for <your_module_dir>/view/frontend/layout/checkout_index_index.xml From there, you may edit the view as per your necessities. If you decide to install the one step checkout extension, make sure the extension has the feature of allowing admin to change the orders as per your above necessity. ...


0

put log in the file vendor\magento\module-checkout\Model\Session\SuccessValidator.php it seems like issue with the set value of last quote id and order id


0

I don't know what is your goal, but you try using checkoutSession to do this. Here an untested example: <?php declare(strict_types = 1); namespace Vendor\Module\Controller\Demo; class Demo extends \Magento\Framework\App\Action\Action { protected $_checkoutSession; public function __construct( \Magento\Checkout\Model\Session $...


0

This is a reported bug with Magento. It appears to have been around since v2.3.5 https://github.com/magento/magento2/issues/29248 Javascript expects a unique ID to be passed to know which payment method on the page to expand (think multiple vaulted cards for the one customer). But that is passed to PHP despite PHP expecting a more generic payment method ...


1

I also had the same issues, actually i had added some third party extension and that was getting conflicted so i have removed that and i have run the command. php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:static-...


0

Modal has events for which you can bind a listener: https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/widgets/widget_modal.html#modal_events Inside a function body add your code for selecting checkbox.


0

There is an easier way to do this, overriding in your theme just the templates file for the payment; for example, override vendor/magento/module-purchase-order/view/frontend/web/template/payment/purchaseorder-form.html in your theme and add where you want the button to appear: <div data-bind="scope: 'checkout.progressBar'"> &...


1

observer and event.xml /** * @var \Magento\Checkout\Model\Session */ protected $_checkoutSession; public function __construct( \Magento\Checkout\Model\Session $checkoutSession ) { $this->_checkoutSession = $checkoutSession; } /** * @param Observer $observer * * @return void */ ...


1

Possible look into the class \Magento\Checkout\Model\DefaultConfigProvider::getConfig() https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Checkout/Model/DefaultConfigProvider.php#L291 \Magento\Checkout\Model\DefaultConfigProvider::getCustomerData() https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Checkout/Model/...


0

use Magento\Framework\App\Request\Http; class EmailCc implements \Magento\Framework\Event\ObserverInterface { private $request; public function __construct( Http $request ) { $this->request = $request; } public function execute(\Magento\Framework\Event\Observer $observer) { $emailCCfrontend = $this->request->getParam('...


0

You cant add any product to cart if the quantity is zero without backorders being enabled. you can go to catalog->products->manage products->select the particular product ->advanced inventory->and set backorders to Allow quantity below 0. Then clear cache using php bin/magento c:f and php bin/magento c:c after that run indexing using php bin/...


Top 50 recent answers are included