Git Product home page Git Product logo

discorgento / module-product-last-order Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 8.0 392 KB

The "Product Last Order" module is an extension for Magento 2 developed by Discorgento that generates a personalized message to the customer when they access a product that has been previously purchased.

Home Page: https://packagist.org/packages/discorgento/module-product-last-order

License: GNU General Public License v3.0

PHP 65.86% HTML 8.27% JavaScript 14.41% Less 11.47%
hacktoberfest magento magento2

module-product-last-order's Introduction

Discorgento Product Last Order

Magento 2 Module: Product Last Order

GitHub Stars Latest Version on Packagist Join our Discord

Overview 💭

The "Product Last Order" module is an extension for Magento 2 developed by Discorgento that generates a personalized message to the customer when they access a product that has been previously purchased. The message informs the customer that they have already bought this item and also displays the date of the purchase. Additionally, the module adds a "Order Details" link that, when clicked, redirects the customer to the corresponding Order Details page, providing all the details of the accessed order.

Features 🧩

  • Generates a personalized message for products previously purchased by the customer.
  • Displays the date of the product purchase.
  • Adds an "Order Details" link to redirect the customer to the Order Details page.

System Requirements ⚙️

Make sure your Magento 2 installation meets the following requirements:

  • Magento 2.x
  • PHP 8.x
  • Composer

Installation 🔧

You can install the "Product Last Order" module via Composer. To do this, execute the following commands in the terminal:

  1. Navigate to the root of your Magento 2 project:
cd /path/to/your/magento2/project
  1. Use Composer to install the module:
composer require discorgento/module-product-last-order
  1. Enable the module:
php bin/magento module:enable Discorgento_ProductLastOrder
  1. Run the Magento setup upgrade to enable the module and refresh the cache:
php bin/magento setup:upgrade
php bin/magento cache:clean

Usage 🥤

After the installation, the module will automatically generate the personalized message on products that have been previously purchased by the customer. The message will be displayed on the product detail page.

By clicking on the "Order Details" link in the message, the customer will be redirected to the corresponding Order Details page, where they can access all the information about the order.

Print Desktop

Print Mobile

Support and Contributions 🫵

If you encounter any issues with the module or want to contribute improvements, feel free to open an issue or submit a pull request on the module's repository.

License 🦬

This module is distributed under the GNU General Public License v3.0. Please read the "LICENSE" file for more information.

Author 👤

"Product Last Order" was developed by Discorgento.

🐓

Notes 🗒

  • issues and PRs are welcome in this repo;
  • we want YOU for our community!

module-product-last-order's People

Contributors

jonatanaxe avatar maria-axe avatar mage2pratik avatar iaugusto-ironplane avatar

Stargazers

 avatar  avatar Julien ANQUETIL avatar CriaShop avatar Vladimir Miljkovic avatar  avatar Volodymyr Hryvinskyi avatar Anton avatar Lex avatar Gerard de Visser avatar Nurullah Sevinçtekin avatar Roman Hutterer avatar Pierre avatar Jérôme LEGRAND avatar Tiago Sampaio avatar  avatar Hamilton Freire avatar Gustavo Solomon avatar Mark Shust avatar José Santos avatar André Villela avatar Lucas Pereira avatar  avatar Max Souza avatar magepsycho avatar Rodrigo Cardoso avatar Vitor Coutinho Fernandes avatar  avatar  avatar Ivan Augusto avatar

Watchers

 avatar Ivan Augusto avatar

module-product-last-order's Issues

GraphQl Caching

Is it possible to change the GraphQL query method from POST to GET?

With the GET method, we can implement a cache for this query.

Something like that:

image

We're making requests to customers and order data, which could be offensive to page load.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.