I’m trying to create a custom price type in Magento. And for that I’ve created a custom attribute to a product. And I’ve added this price type to MagentoCatalogPricingPricePool like below in my di.xml file <virtualType name="MagentoCatalogPricingPricePool" type="MagentoFrameworkPricingPricePool"> <arguments> <argument name="prices" xsi:type="array"> <item name="pre_order_price" xsi:type="string">MyVendorPreOrderPricingPricePreOrderPrice</item> </argument> </arguments> </virtualType> After that […]
Magento2
I am using messageManager to show message after redirecting to the controller for adminhtml. It is working fine for the Role Administrator, but the message is not displaying for the website admin users. I tried many solutions over the magento stack but they didn’t help. I am using below code: […]
There is some possibility of putting the mandatory CIF/NIF field depending on whether the client chooses one country or another at checkout. For example, if the client selects Spain NIF/CIF it is not mandatory but if he chooses USA the NIF/CIF field is mandatory. Thank you 🙂
Upon running yarn build on building Venia store for Magento 2, I get this error: ERROR in ./node_modules/photoswipe/dist/photoswipe-lightbox.esm.js 381:24 Module parse failed: Unexpected token (381:24) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | } | […]
I am wanting to add Google Pay Option to my site. I cannot seem to get the information I need to get this setup and installed. Is there any extensions for this? Also do I need to go to Google to setup the payments?
How to add custom text attribute on the product page after price Only if special price. If special price custom text is visible if normal price custom text is not visible. Magento 2.3.6 For example: Product 1 with special price, text “custom text aaa” visible. If product with regular price […]
I am trying to install mailchimp I have 2..4.4 magento running on php 8.1 when running this command in SSH composer require mailchimp/mc-magento2/v103.4.50 I get the following Class "MagentoSetupMvcBootstrapInitParamListener" not found#0 /home/831195.cloudwaysapps.com/yjxddjbsxh/public_html/vendor/magento/framewo rk/Console/Cli.php(78): require() #1 /home/831195.cloudwaysapps.com/yjxddjbsxh/public_html/bin/magento(22): MagentoFrameworkConsoleCli->__construct() #2 {main} I have successfully installed it on my cloned staging app which […]
I know there are solutions for getting one column as an array. $collection->getColumnValues(‘column_name’); And adding limit without setPageSize() and setCurPage() $collection->getSelect()->limit(3) But I want both. My temp solution is I’ll run foreach loop over the collection from limit statement and just fetch the column in the array as per the […]
i needed custom column in sales Order grid so i applied joined on sales order with sales order grid but when I filter grid with purchase date It shows this error in logs and filter stop working. Next Zend_Db_Statement_Exception: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in where clause is […]