I am trying to achieve website switch for my site but i am getting error , i followed some code but getting error here is my module structure app/code/Rgswitch/switcher/etc/frontend/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <preference for="MagentoStoreViewModelSwitcherUrlProvider" type="RgswitchswitcherViewModelStoreSwitchModel" /> </config> /app/code/Rgswitch/switcher/ViewModel/StoreSwitchModel.php <?php namespace RgswitchswitcherViewModel; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoFrameworkLocaleTranslatedLists; use MagentoFrameworkUrlEncoderInterface; use […]
Magento
as per my requirement, the state and country in the cart page should be a default of US and Washington. I found a configuration for the default of country but I wasn’t able to find any for the state. I research and found only for checkout page.
When I try to add to card any item via REST API I get this error: "{"message":""%fieldName" is required. Enter and try again.","parameters":{"fieldName":"quoteId"}}" First time I get the cart id calling this “rest/V1/carts/mine” than I call “rest/V1/carts/mine/items” with this data: { "cartItem": { "sku": "24-WG080", "qty": 1, "quote_id": cartID } […]
we need to change the repo that a magento cloud project uses. Like if we were migrating from GitHub to BitBucket. How could we do that?
BNPL (Buy Now Pay Later) COD (Cash on Delivery) BACKSTORY: I want to add two new payment methods to my website called “BNPL COD (Pay in 2 Installments)” and “BNPL COD (Pay in 3 Installments)” and I want a totally separate order statuses journey in addition to two custom order […]
I want to extend the cataloginventory_stock_item with one more column, so that I would be able to show this data in a Catalog Products grid. I’ve read that in order to properly extend the core Magento tables we need to create a new table and join the data. I’ve added […]
No errors during update after lowering composer back down from 2.2.3 to 2.1.4 but site/backend results in 500 error. Stack trace: #0 /home/user/web/domain.com/public_html/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject() #1 /home/user/web/domain.com/public_html/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create() #2 /home/user/web/domain.com/public_html/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): MagentoFrameworkObjectManagerFactoryCompiled->get() #3 /home/user/web/domain.com/public_html/magento/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): MagentoFrameworkObjectManagerFactoryCompiled->create() #4 /home/user/web/domain.com/pu” while reading response header from upstream, client: 192.168.12.12, server: domain.com, request: “GET / HTTP/1.1”, upstream: […]