I’ve tried researching this like crazy, and all I’ve come up with is PHP solutions.. which sadly, our Magento 2 site is managed by Magento Certified third-party, and I don’t have access to play around with the themes or PHP files myself.. (and yes, I know that is technically the […]
Magento
As part of a project I am working on, I need to set the customers postcode using localStorage anywhere on the site to allow other postcode functionality to occur. Part of this is to also autofill the Estimate Shipping and VAT Postcode field so rates are shown straight away. By […]
enter code hereI am created a custom sorting in magento2.4.3p1 but it is not working in the frontend. I am face issues is We can’t find products matching the selection. Toolbar.php <?php namespace Bay20SortingPluginProductProductList; class Toolbar { /** * Plugin * * @param MagentoCatalogBlockProductProductListToolbar $subject * @param Closure $proceed * […]
I have tried to create DI like there (Data and DependentClass) but it doesn’t working for me: “ArgumentCountError: Too few arguments to function DependentClass::__construct(), 0 passed….” What’s wrong?
I am using a Magesuite module to get a product collection, and among other things I want to randomly select a certain number of products, fitting of course some criteria set with filters. The collection used in this case is of class SmileElasticsuiteCatalogModelResourceModelProductFulltextCollection. In this collection type, orderRand() does not […]
I need to update the installation part of one extension from old to declarative schema. Old system looks like: Setup version – 1.0 Adds table vendor_entity entity_id name desciption status Setup version – 2.0 Adds new table vendor_entity_locale entity_locale_id entity_id name desciption store_id with SQL method for moving data from […]
I have a shop developed in Magento 2.2. Now, I did a upgrade to Magento 2.4. I had to upgrade all the external modules in use. Everthing worked ok. But now, sometimes the $.widget called in my x-magento-init are not running, sometimes it runs. I don’t have any error on […]
For Magento 2 we have created an attribute to exclude that product from shipping methods and that product that is excluded will have an individual shipping price on it. For example, we have 2 products in cart A and B, the A product has that attribute set to yes and […]
I have a custom module with named A and db tab is z ok. now question is my: How to add child table? which is already I have done with PK and FK key constrains. How to add data in created child table using model?