GithubHelp home page GithubHelp logo

alexandrebothamy / bosearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thelia-modules/bosearch

0.0 1.0 0.0 32 KB

Add search forms to filter customers and orders.

PHP 55.23% HTML 44.77%

bosearch's Introduction

Bo Search

Add search forms to filter customers, orders and products

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is BoSearch.
  • Activate it in your Thelia administration panel

Composer

Add it in your main Thelia composer.json file

composer require thelia/bo-search-module:~1.0

Usage

Once activated, inputs will appear on the top of the customer and the order list pages. Use them to filter displayed results. You will find the product search page in the back-office menu "Search products".

Hook

Two hooks are added by this module, allowing you to extend forms.

  • bosearch.customer-search.form: between the last customer's form input and the submit button.
  • bosearch.order-search.form: between the last order's form input and the submit button.

Then extend the forms in your extension module's EventListener class:

TheliaEvents::FORM_AFTER_BUILD . '.' . \BoSearch\Form\OrderSearchForm::ORDER_FORM_NAME => ['yourFunction', 128],
TheliaEvents::FORM_AFTER_BUILD . '.' . \BoSearch\Form\CustomerSearchForm::CUSTOMER_FORM_NAME => ['yourFunction', 128]

bosearch's People

Contributors

etienneperriere avatar yochima avatar

Watchers

James Cloos avatar

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.