Products is not showing up on Magento2 subcategory

To show the product, check if the product following options: General->Status = Enabled general->Visibility = Catalog,Search Inventory->Qty > 0 Inventory->Stock Availability = In Stock Websites = checking your site Catgories = checking your category. If you want checking product to subcategory, go to Catalog->Manage Categories->Select your category, open tab Display Settings and change option “Is Anchor” to “Yes”. Save… Continue reading Products is not showing up on Magento2 subcategory

Published
Categorized as Magento

Magento 2 set locale programmatically?

If you want to use translation on external php script. You have to initialize translation using following code after $state->setAreaCode(‘frontend’);.

Published
Categorized as Magento

Custom Attribute added for Customer Object not getting saved -magento 2

As you want to add a static attribute. An entity can have some static attributes, whose values are stored in entity main table. So you have to create a column inside the entity main table, here is customer_entity. Vendor/Module/etc/db_schema.xml Vendor/Module/Setup/Patch/Schema/AddCustomerAgreementEndDateColumn.php Vendor/Module/Setup/Patch/Data/AddCustomerAgreementEndDateCustomerAttribute.php

Published
Categorized as Magento