Fme Extensions Blog

Latest news, tutorials, and best practices for Magento

December 13, 2023Magento: Extensions, Custom Development or Both? Choose Wisely

Hey there, fellow e-commerce enthusiasts! Let's talk about spicing up your online business game with some top-notch solutions. If you've been on the lookout for ways to boost your online store's efficiency, you're in luck! Enter Magento - the superhero among e-commerce platforms that's been hitting the mark.

December 11, 2023Top Magento Alternatives and Competitors in 2024

Hey, savvy e-commerce wizards! Are you ready for a whirlwind adventure into the vibrant world of online selling? Picture this: you're about to embark on a quest to find the ultimate e-commerce platform that'll skyrocket your business to the stars. Today, we're spilling the beans on the hottest topic around – the top alternatives to Magento in 2024.

December 6, 2023Magento Security: Measures & Best Practices

Hey there, fellow Magento store managers!

April 29, 2024Secure Your Store with FME's GeoIP Magento Extension

In today’s digital landscape, online businesses face a wide range of challenges. It ranges from creating personalised experiences to cybersecurity. When we talk about cybersecurity, it is a concern for every organisation. A cybersecurity incident disrupts operations, impacts finances, and undermines an organisation’s reputation. As eCommerce is becoming the norm, online store owners need to ensure their store’s security. They must put in place robust features to protect against fraudulent transactions and unauthorised logins. Magento is already one of the most secure eCommerce platforms. It uses encryption to protect the data during transit and there are built-in firewalls that protect against cyberattacks. You can set up roles-based access, ensuring only the relevant people can get access to your store’s critical data. It adheres to Payment Card Industry Data Security Standard (PCI DSS) requirements. If you wish to go beyond the standard level of security, opt for Magento security extensions. One such extension is the GeoIP Ultimate Lock Magento Extension . In this article, we will highlight the key features of this extension, helping you understand how it can be a valuable tool in enhancing your store’s security. What is GeoIP Technology? Before we discuss the extension’s feature, let’s develop an understanding of the GeoIP technology. Geolocation IP or simply GeoIP is a form of location tracking using an individual’s IP address. By analysing a user’s IP address, store owners can gain critical insights into the user, allowing them to tailor their security policies accordingly. Notable Features of the GeoIP Ultimate Lock Extension GeoIP Ultimate Lock This extension optimizes store traffic by blocking visitors and bots according to regions, countries, and IP addresses. Check it out! > What makes this extension a must-have for your online store? Let’s see. Magento 2 Block IP Address This extension is the perfect answer for Magento 2 block ip requirements. It allows you to block a specific IP, country, or entire region from accessing your store. Suppose your store only serves location A. If users from location X start accessing your store, it puts undue load on your server. It can disrupt the website’s performance and even prevent location A users from accessing it. Secondly, it makes no sense for location X users to access your store when they clearly know that the store is not for them. So, to protect your store, it is better to cut off location X altogether. Block Specific Products or Pages In certain cases, you may need to block only specific products, product categories, or just specific pages. As is visible in the above image, it is easily doable with this extension. You may be wondering why you would need to block a specific product? Well, there are several reasons. Suppose your store serves multiple countries. In country A, product XYZ is legal, whereas it is illegal in country B. It makes no sense to allow country B users to see that product. Beyond legality, shipment may be another consideration. It may be that shipping the product to country B is not financially feasible. Add a Custom Message or Redirect to a Relevant Page It makes no sense to block a page, product, or entire website without letting the users know of it. They may think that the store is facing technical issues. It can undermine user experience and they may stop shopping at your store altogether. Therefore, you must set up a custom message informing them about the restriction. The alternative is to redirect them to a relevant URL. From the above image, you can see that the about us page is blocked for Asian visitors. You can opt to give a further explanation if you wish. This can greatly enhance your store’s experience and allow you to serve the audience without undermining their experience. Other Security Extensions: Restrict Products by Customer Group Language & Currency Switcher Store Switcher You can opt to block a specific IP or IPs. This feature is quite handy when you know that the IP is nothing but a bot or a user trying to disrupt your operations. A recent study found that 30.8 per cent traffic to eCommerce stores is bots. The more worrying aspect is that 17.7% of these bots are malicious. Conclusion This concludes our article on securing your store with GeoIP Ultimate Lock Extension. Of course, the extension offers a lot more features than we discussed. If you are interested in knowing more about this extension, book a live demo . Our team will explain the extension in detail and how it benefits your store. If you have any queries related to Magento, contact us .

April 29, 2024How to Cancel Order Programmatically in Magento 2?

A while ago, Magento did not allow you to cancel an order. The only way to do so was programmatically. While Magento does allow you to cancel pending orders now, it is still useful to learn how to can an order programmatically in Magento 2. Why Cancel an Order? You’ll need to cancel an order for various reasons, including: 1. Customer Request In some cases, the customer may have placed the order incorrectly. For instance, they ordered the wrong product. There’s also a possibility that the customer may no longer require the product. 2. Out of Stock As a store owner, you try your best to ensure product availability. Even then there’s a chance that a customer ends up ordering a product which is out of stock. If there are no plans to restock the order or you cannot deliver it by the customer’s selected date, you have no choice but to cancel their order. If you frequently experience issues with products running out of stock, consider our Magento 2 Out of Stock Notification Extension . If a product is out of stock, customers can sign up for a notification. As soon as the product is available again, they’ll get an automatic reminder. This ensures minimal loss of sales due to product unavailability. Of course, this extension does a lot more than sending automatic alerts to customers. For more information, book a live demo . Payment Issues After getting an order, you may realise that the customer’s payment is not coming through. If the customer fails to send through the payment, order cancellation is inevitable. Shipping Issues Furthermore, shipping issues can force an order cancellation. For example, during extreme weather conditions, sellers often stop taking on orders and inform customers about potential delays. In some instances, the shipper may not deliver to the customer’s selected location. Steps to Cancel Order Programmatically in Magento 2 The code to cancel a processing order in Magento 2 includes the following two steps. Creating a controller Executing method Creating a controller <php namespace VendorName\ModuleName\Controller\Action; use \Magento\Framework\App\Action\Action class Cancelmyorder extends \Magento\Framework\App\Action\Action { //Var $orderMgt : Order Management protected $orderMgt; //Var $messageManager : Message Manager protected $messageManager; public function __construct( \Magento\Framework\App\Action\Context $context, \Magento\Sales\Api\OrderManagementInterface $orderMgt, \Magento\Framework\Message\ManagerInterface $messageManager ) { $this--->orderMgt = $orderMgt; $this->messageManager = $messageManager; parent::__construct($context); } public function execute() { // Initiate Object Manager $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); // Fetch Logged in User Session $customerSession = $objectManager->get('Magento\Customer\Model\Session'); // Check is User Logged in or Not if(!$customerSession->isLoggedIn()) { $this->_redirect('/'); die; } // Get request parameters $cid = $customerSession->getCustomer()->getId(); $oid = $this->getRequest()->getParam('order_id'); // Get request parameters $order = $objectManager->create('Magento\Sales\Model\Order')->load($oid); // Fetch Order Data $orderdata = $order->getData(); // Get Order Status $order_status = $orderdata["status"]; // Get Customer Id of Order $cus_id = $orderdata["customer_id"]; // Check if logged in user & Order customer is same or not if($cid != $cus_id) { $this->messageManager->addError("Sorry, We cant cancel your order right now.") ; } // Check Order Status if($order_status == "pending") { $this->orderMgt->cancel($oid); $this->messageManager->addSuccess("Your order has been cancelled successfully.") ; } else { $this->messageManager->addError("Sorry, We cant cancel your order right now.") ; } } } Execute Method Now, call the method by passing valid id in template file. $order_id = 110; $this->cancelmyorder($order_id); You will get a success or an error message when the code is executed. Cancel Order with a Ready Made Extension If you’re looking for an instant solution, then use our ready-made extension “ Magento 2 Cancel Order ” which enables the customers to cancel orders in a single click. About the Cancel Order Extension Instead of handling order cancellations yourself, you can let the customers do it themselves through this extension. As the store owner, you can approve or reject their request. You can personalise the order cancel button to suit your individual requirements. This is shown below. The extension allows you to set up a customisable email to inform them about their cancellation request. If you wish to know more about this extension, book a live demo or contact our support team . Conclusion That’s all about cancelling order programmatically in Magento 2. This is as straightforward as it seems. If you encounter any problems with order cancellation in Magento 2 programmatically, reach out to us.