I’m trying to get product collection of all products that has special_price and their special_to_date is less than today’s date, and they belong to a specific category. I tried the bellow code but it goes through a loop. $products = Mage::getModel('catalog/product') ->getCollection() ->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null) ->addFieldToFilter('category_id', […]
Magento2
I have a very annoying problem on my Magento 2.3.3 installation. The composer doesn’t work properly. I can’t run any composer update, composer require etc. Every-time I try to do that, it gives me this error: Fatal error: Uncaught TypeError: Return value of MagentoInventoryComposerInstallerPlugin::initModuleDeployment() must be an instance of MagentoInventoryComposerInstallervoid, […]
I have a german store, therefore we must calculate 19% tax on every product. I’ve setup every settings to ensure that would happen, but for any reason only 15.97% are calculated. Please take a look at the images below, maybe you guys find something i havent seen… Product price is […]
I have an issue need to help. I want to combine two steps checkout in checkout page into one step (One step checkout). Please give me suggestions to do that. … Thanks for reading!
I need a help on one of the following question : Q – EAV – Static and varchar entity type what is the similar in between this ? Both values can be identical for single sites Both values can be duplicate for multiple sites Can be add from the backend […]
I tried to update the quote table customer_note column type to text using setup script and schema patch. Column type updated after run setup:upgrade but when I run setup:upgrade the second time then column type revert to varchar as previously. This issue because Magento creates a quote table using declarative […]
Is their an interface for using the Bulk API within a Magento2 module? I’m trying to identify how I can programmatically modify large numbers of products.
I get the 503 Backend fetch failed error when I try to connect to my Magento backend that is hosted on a AWS Lightsail Instance – 2 GB RAM, 1 vCPU, 60 GB SSD. I found the general tutorial on how to fix it https://devdocs.magento.com/guides/v2.3/config-guide/varnish/tshoot-varnish-503.html, but the path described there […]
Now I implement the code below use MagentoFrameworkAppHelperAbstractHelper; use MagentoCustomerModelSession; use MagentoFrameworkAppHttpContext as AuthContext; class Customer extends AbstractHelper { /** * @var MagentoFrameworkAppHttpContext */ private $httpContext; private $objectmanager; private $authContext; public function __construct( MagentoFrameworkAppHelperContext $context, MagentoFrameworkAppHttpContext $httpContext, MagentoFrameworkObjectManagerInterface $objectmanager, Session $session, AuthContext $authContext ) { $this->objectmanager = $objectmanager; $this->httpContext = […]