Sort by A-Z Product List Page in Magento 2?
I am adding below code but sort not shwoing in frontend.
Auto Added by WPeMatico
I am adding below code but sort not shwoing in frontend.
Vendor/Extension/Setup/Patch/Data/CustomAttribute.php <?php namespace VendorExtensionSetupPatchData; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupPatchDataPatchInterface; use MagentoCatalogModelCategory; class CreateCustomCategoryAttribute implements DataPatchInterface { private $moduleDataSetup; private $eavSetupFactory; public function __construct(ModuleDataSetupInterface $moduleDataSetup, EavSetupFactory $eavSetupFactory) { $this->moduleDataSetup = $moduleDataSetup; $this->eavSetupFactory = $eavSetupFactory; } /** * {@inheritdoc}… Read More »Magento 2 category attribute value returns null
This is my PLugin : <?php namespace VendorModulePlugin; use MagentoSalesApiDataOrderItemExtensionFactory; use MagentoSalesApiDataOrderItemInterface; use MagentoSalesApiDataOrderItemSearchResultInterface; use MagentoSalesApiOrderItemRepositoryInterface; use MagentoCatalogModelProductFactory; /** * Class OrderItemRepositoryPlugin */ class OrderItemRepositoryPlugin { protected $orderItemExtensionFactory; protected $productFactory; /** * OrderItemRepositoryPlugin constructor * * @param OrderItemExtensionFactory $orderItemExtensionFactory *… Read More »Custom Attribute not saving into the Sales_Order Table
I have created “custom_column” in “sales_order” table and save the data using event observer.After some actions on that order again I need to change the value of my “custom_column” in a controller file. But When I use this code $order… Read More »Magento 2 update custom column value in sales_order table in a controller file
how can we create custom order attribute programatically using data-patch in magento 2.4.6 ? I know how to create this customer attribute for order using install schema but currently I am using magento 2.4.6 version so as per standards I… Read More »how to create custom attribute for order using data-patch in magento 2.4.6?
I’m creating a rest API and I need to add a custom columns to the customer_entity table and save the value in that fields within API request. Сreated new attributes in the customer_entity table using UpgradeSchema: public function upgrade(SchemaSetupInterface $setup,… Read More »Customer custom attributes do not save data to customer_entity table
I create an attribute name [show_on_category_page] with yes/no values if it’s set to yes then the product show on the category page but if its select no, then product not shown on category page. After that in vendor module catalog… Read More »Fetch products on category page according to product`s custom attribute in magento 2.4.6
I have created a module that adds custom attribute “master_id” in checkout summary, I am not sure why the payment method not working it showing no payment method After adding this module the payment functionality not working when i remove… Read More »Magento 2 Custom attribute in checkout summary affects payment method
I have multi website setup and, I have create one Custom Customer Attribute named “mobile_number”, that shows on create account form at frontend. Now the issue is while creating customer in one website and customer registers with “123” mobile_number and… Read More »Magento Customer Attribute Value Multi Website Issue
In a Magento 2 (2.4.5) instance, I created a new section in CUSTOMER > CUSTOMER INFORMATION, after “Customer View” (thanks to the tutorial of @rakeshjesadiya https://www.rakeshjesadiya.com/create-tab-in-admin-customer-edit-page-in-magento-2). Now, I need to create two custom customer attributes: “OFFICE” and “LEVEL”. Each customer… Read More »Magento 2 – Add two custom attributes to customer in a new section