When I go to compile I get this error- php bin/magento setup:di:compile Compilation was started. Area configuration aggregation... 5/9 [===============>------------] 55% 40 secs 517.0 MiB In ClassReader.php line 45: Impossible to process constructor argument Parameter #1 [ <required> AmastyBaseModelFilesystemProvider $filesystemP rovider ] of AmastyBaseHelperDeploy class In ClassReader.php line 34: Class […]
Magento
Magento 2.4.2-p1 Smartwave Porto theme extensions from Amasty We switched to Magento 2.4.2-p1 and the order of the Address fields during check-out is: First Name Middle Name/Initial Last Name Company Street Address Street Address: Line 1 Country State/Province City Zip/Postal Code Phone number Why is that? I’ve travelled around the […]
I created a page testPage and use $pageExist = $this->getUrl('testPage') ?> so i could render an a block if it exist like so if ($pageExist) BUT when i go from amdin panel and set page from enabled to disabled, clear cache, the $pageExist is till true, or what i assume, […]
I recently noticed the line $this->registry->register with register striked through. Mouseover displayed a message saying Register is deprecated. Could you please direct me to what is the alternative to this now? Thank you all. I am using the code below in the custom module. case "stripe_payments": // We need to […]
I have a product for which another product needs to be added in the cart. For this I need to check if the quantity of said product is changed in order to change the number of associated products. I wrote a Plugin on the SetQty function in order to get […]
This is my component field <field name="is_campaign_plp" formElement="checkbox"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="component" xsi:type="string">Cpy_Cms/js/form/element/plp-campaign</item> <item name="source" xsi:type="string">plp</item> <item name="default" xsi:type="number">0</item> </item> </argument> <settings> <dataType>boolean</dataType> <label translate="true">Used for Campaign only</label> <dataScope>is_campaign_plp</dataScope> </settings> <formElements> <checkbox> <settings> <valueMap> <map name="false" xsi:type="number">0</map> <map name="true" xsi:type="number">1</map> </valueMap> <prefer>toggle</prefer> </settings> </checkbox> </formElements> </field> […]
We are fetching layered navigation filters as follows: $layer = $layerResolver->get(); $layer->setCurrentCategory(2); $productCollection = $layer->getProductCollection(); $productCollection->addAttributeToFilter($attributeCode,$attributeValue1); $layer->setProductCollection($productCollection); $filters = $filterList->getFilters($layer); But the above filters are coming from the default store id and incorrect filter names. We have multiple store views and would like to get filters based on store id.
Never worked with Paypal PayLater before but on a Magento 2.4.3 build, we’ve got it enabled and set to display in frontend but nothing appears at all in frontend… Our client has completed the sign-up on Paypal’s website but of course we’ve got no idea what’s actually involved with that […]
Whats the right place for custom config path constants? const XML_PATH_ .... In Magento they are spread over different classes. Blocks. Models. Helpers. It seems they are set, where they are used, but it looks inconsitent. Isn’t it best kept in SomeModuleHelperData?