The basic reason behind this is the MySQL group_concat_max_len value. If we have a large number of records in the reservation table then it fails to group concat the value. Preconditions and environment Magento 2.4.4 (enterprise) Actually for any version Steps to reproduce Three Order should be placed The first two orders can have […]
Magento2
I want to set up a promotion specifically for customers to purchase products that fall under one specific category listed on our website (we’ll call it category A). Buy 1 product in category A, get 10% off Buy 2 products in category A, get 15% off Buy 3 products in […]
Magento 2.4.5-p1 I have some bad data in the database which I imported from Magento 1.9 via System -> Data Transfer -> Import What happens is – when I go into: - Catalog - Products It gives the following Error: X Something went wrong with processing the default view and […]
I am trying to get the related products from a specific product using the function getRelatedProducts. $relatedProductsArray = $productModel->getRelatedProducts(); if($relatedProductsArray && count($relatedProductsArray) > 0){ foreach($relatedProductsArray as $_relatedProduct){ ... } } It works when the related products are assigned directly to the product in the admin product details. However, when the […]
I tried defining a plugin, as per Magento 2: Change hompage on login, but it doesn’t seem to work for me. I could override the CMS default controller, but that seems overkill.
I’m querying the graphql endpoint of a magento test installation, and am constructing and sending an oauth 1.0 authorization header via an integration setup. When I query the products via a simple graphql query like so: query Products { products( filter: { price: { from: "0" } } pageSize: 20 […]
I am trying to include a product image that has a specific custom role (in the example below its hover_img) The file I am doing this on is: vendor/magento/module-page-builder/view/frontend/templates/catalog/product/widget/content/carousel.phtml I am trying to display it by doing this: <?php $customImg = $_item->getResource()->getAttribute('hover_img')->getFrontend()->getValue($_item); ?> <?= $customImg ?> But nothing is coming […]
I need to add a column containing a button to modify the product or add another button as a remove button in the actions column. the modify button action: open the product’s modification page.
Upon magento I am placing some values into the mariadb database via reading the csv: use PcmagasEmailsModelEmailFactory; use PcmagasEmailsModelEmail; use MagentoFrameworkFileCsv ; class MyController extends MagentoBackendAppAction { // This is populated via constructor private Csv $csv; private EmailFactory $factory; public function __construct( MagentoBackendAppActionContext $context, EmailFactory $factory, Csv $csv ) { […]