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
Magento
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 […]
I Want to send a url to customer from admin panel custom form. I use below steps to perform the task. 1 – email_templates.xml file content <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd"> <template id="ayakil_hometry_email_carturl_template" label="Home Try On Cart Url" file="hometry_cart_url.html" type="html" module="Ayakil_HomeTry" area="adminhtml"/> </config> 2 – hometry_cart_url.html (app/code/Ayakil/HomeTry/view/adminhtml/email/hometry_cart_url.html) file content <!--@subject […]
After I created a module following this tutorial Magento 2.4 Add Recaptcha in Custom From I put my module in a popup and I would like to avoid to load all unnecessary js until I open my popup. I know that this issue comes because I modify the frontend layout […]
I followed this answer to create a custom attribute on customer with graphQL. The query works great, but if I try to change the value with a mutation, it just returns null. Can anyone please help me with adding this functionality please? Code and example below: schema.graphql: type Customer { […]
I am new to magento development, made a custom module Vendor: Scandiweb Module: Scandiweb_Test The naming convention is not correct so I decided to delete it, I can’t run module:uninstall because its not installed from composer, I deleted the directory and the occurance in app/etc/config also checked db setup_modules, the […]