I am developing a shipping restriction plugin for magento 2, looking at the documentation I found the detailed information of the initial creation process. One of the validations I need is: Depending on the name of the store, enable or disable a type of delivery, in the red box I […]
Magento
I’m struggling to fully understand how .bind(this) works within this code? Removing the bind causes the time not to update. It’s kind of frying my brain trying to understand the bind method. Apologies if it’s a n00b question. return uiComponent.extend({ defaults: { template: "Vendor_UiComponent/clock", }, _currentTime: ko.observable("Loading the time, hang […]
My base currency is USD, but if display currency is EUR then user should be able to pay in EUR rather than USD. I know such extension is available but is a ‘paid’ extension. I am trying to overcome this problem by writing the code myself but I am stuck […]
I’ve got some third party code here that loads a larger product collection. It takes around 9 minutes to load on decent hardware. We have some 150000 SKU in the database. Collection: SQL is: SELECT DISTINCT `e`.*, IF(at_status.value_id > 0, at_status.value, at_status_default.value) AS `status`, IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) AS […]
I have imported the configurable product along with its variations and they have imported successfully. When I edit that configurable product on the admin, the respective configurable variations are not showing. I exported that configurable product but on the export file I see the configurable variations value as “sku=REBF9BILLET-ARB-35-PH,warehouse=Phoenix AZ|sku=REBF9BILLET-ARB-35-WJ,warehouse=West […]
Actually I created a banner module can anybody how can i create custom shortcode. I see some product and also tried but don’t wrok.
To create shipment by Rest API, I am using it and it is working fine. {base_url}/rest/V1/order/15/ship Parameter 15 is order_id. I want to create shipment by order increment id. Is there any way to do it?
Forgive me for my naivete but I’m modifying a custom extension and I see this variable: $mediaPath = $fileSystem->getDirectoryRead(MagentoFrameworkAppFilesystemDirectoryList::MEDIA)->getAbsolutePath(); I went through MagentoFrameworkAppFilesystemDirectoryList but can’t find any mention of ::MEDIA. Can someone please clue me in? Thank you! I’m new to M2.
I’m trying to add a price field into a custom entity I’ve created but the digit disapeared and it’s rounded. How to keep 2 digits ? ->addColumn( 'price_ht', Table::TYPE_FLOAT, null, [ Table::OPTION_SCALE => 2 ], 'Price HT' ); This is interpreted as 10,0 in the database instead of (10,2) which […]