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 = […]
Monthly Archives: July 2023
I am trying to create a country dropdown for a custom product attribute. This is the error message: Error: Call to undefined method MagentoDirectoryModelConfigSourceCountry::setAttribute() in /var/www/html/vendor/magento/module-eav/Model/Entity/Attribute/AbstractAttribute.php:652 This is my install: $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, 'countries', [ 'group' => 'Countries', 'type' => 'text', 'frontend' => '', 'label' => 'Countries', 'input' => 'multiselect', 'class' […]
I’m trying to setup a remote syslog solution that is comprised of the following: Unifi UDM SE –> Site-to-site IPSec VPN Connection –> AWS VPC –> Private EC2 Instance (syslog collector – Internal IP: 10.0.2.113) I have been able to successfully establish the IPSec VPN tunnel between the on-prem UDM […]
I’m writing a python script that grabs data from weather.gov (the NDFD SOAP service and current observations XML) to draw a screensaver picture. The script works on my regular computer but not on my pi zero w, which leads me to believe nftables might be blocking the traffic. When I […]
When creating a new Wi-Fi connection on Android 9 (Samsung Galaxy A50) I see an option “Hidden network” for networks with hidden SSID. Can I change this option for existing networks or I should re-create them? I do not see this option for existing networks.
I have a three-part question about using Notepad++ to alter sets of numbers. I have blocks of numbers as follows: 1415926535 8979323846 2643383279 5028841971 6939937510 5820974944 5923078164 0628620899 8628034825 3421170679 How can I change / alter this with Notepad++ as follows break each line of 50 digits (5 sets of […]
In open office, I need the whole form to shade out after a specific count is reached, prompting me to clean the printer. after cleaning on that row I set it to 0. from 0-1500 it remains white then once it hits 1501, it shades the whole thing out again. […]
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 […]
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 […]