I have the widget in my home page {{widget type="MagentoCatalogWidgetBlockProductProductsList" title="" show_pager="0" products_count="6" template="Magento_CatalogWidget::product/widget/content/grid.phtml" conditions_encoded="^[`1`:^[`type`:`Magento||CatalogWidget||Model||Rule||Condition||Combine`,`aggregator`:`all`,`value`:`1`,`new_child`:``^]^]"}} With the layout: but when I hover, the layout gets weird like there’s some padding: I want it to remain the same. I added the green, yellow and pink colors to make it more clear. […]
Magento2
I have override catalog-add-to-cart-mixin.js and able to get SKU form.data().productSku in ajaxSubmit Submit function. I need more details like product name, qty and price those are added to the cart. It should be same for Listing and View page AddToCart action. Any help would be appreciated. Thanks in advance.
A very confusing thing is happening with recaptcha on just one page on my site. https://in-situ.com/us/customer-stories?a=13 Oddly the recaptcha will load then immediately be removed from the page with an error in the debug console: Blocked a frame with origin "https://www.google.com" from accessing a cross-origin frame. However, the recaptcha loads […]
I’m trying to validate the customer register field called Dob (Date of Birth) in the backend of my Magento 2.4.2. If the age from the customer is under 18 years, i want to show a message in the frontend and get back to the register page ‘customer/account/create’. I created a […]
Hunter Black Light Weight Rubberised Jacket Qty 1 R2,699.00 R50.00 Delivery to your door Discount (TESTING) R5000 -R2,742.48 Order Total R5.68
I’m trying to add sort order filter in my order collection as you can see in this piece of code $collection = $this->orderCollectionFactory->create() ->addAttributeToSelect('*') ->addAttributeToFilter('created_at', array('from' => $from, 'to' => $to)) ->addAttributeToFilter("consignment_status", $orderStatus, "eq") ->addAttributeToFilter("status", $statusToGet, "in") ->setPageSize($this->_consignmentHelper->getGeneralPageSize()) ->setOrder('entity_id', 'DESC') ->addAttributeToSort('entity_id', 'DESC'); echo $collection->getSelect()->__toString(); return $collection; after that when i […]
I have written some custom scripts in typescript that I would like for my Magento2 application to regularly run. Ideally, I would like for my application to run these scripts once a day. Does anyone know if this can be done? Perhaps with some kind of custom cron job? And […]
I am using Magento 2.4.4CE and I have successfully added a jquery based JS file to a CMS page’s header by using a cms_page_view_selectable_url_somename.xml file in my custom theme. I have the following line added in the head section to attach the JS file to the page: <script src="Magento_Cms::js/somefunction.js"></script> I […]
my media/catalog/product/cache directory is growing very hard. Digging a bit deeper I see that every picture gets around 30 different files in my cache directory. In the picture you see the original file on top, and 30 different variants in the cache folder. We have 80K+ products and adding a […]