Giter Site home page Giter Site logo

gamifications's Introduction

Customers loyalty module for PrestaShop

Customers loyalty module for PrestaShop 1.7.x version. You should test this module before using it in production.

Features

BackOffice

  • Create custom rewards (discounts, free shipping, points & gifts).
  • Configure Daily rewards activity.
  • Configure Referrals activity.
  • Configure Shopping points activity.
  • Configure Points exchange.
  • Statistics.

FrontOffice

  • Get Daily rewards.
  • Earn points after placing an order.
  • Refer a friend and be rewarded.
  • Exchange points into rewards (discounts, free shipping, points & gifts).

Installation

Step 1: Clone repository into modules directory

git clone https://github.com/sarjon/gamifications.git

Step 2: Generate autoloader using composer

cd into gamifications module directory and execute command below to generate autoload.

composer install

Step 3: Install module

Install module as usual from PrestaShop BackOffice.

Contributing

Found an issue? Feel free to make a pull request.

License

This module is licensed under the MIT license. Please see the complete license in the bundle LICENSE file.

gamifications's People

Contributors

sarjon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamifications's Issues

I can´t upload by backoffice

Hi i tried to install by backoffice way and said me : "No valid format .zip" then i generated a new file .ziop with your files but not upload too. Prestashop 1.7.3 version.

Unable to install the module into prestashop ver 1.7.2.4

Dear Gamifications team,

Good day, for your kind information, I'm having problem after download the zip, and try to install through the prestashop module installer, the system replied the zip may not contain the valid module file.

I read your instruction to compose install, which I don't understand what it mean.

Looking forward your assist and help.
At the same time, I would like to say thank you to all your effort to make this available in prestashop version 1.7.xx

Thank you.

Best Regards,
Jackie Yap

Hey mate, i have an idea :)

Hey mate, how are you.
I know this is not an issue but i am new to github and did not find any message feature here...
I am not a coder, i can copy and paste a few things but thats it. but i would do my best in bug-testing and try to help fixing things 💯

my idea is to implement a feature to automatically send specific emails to customers after configurable number of days.
eg: -send a mail to review product and get reward points for it.
-send a mail before rewards or vouchers expire

i dont know how easy it is but what about the module using the settings from the "rmails" section in prestashops backoffice? so in fact my smtp server to send the stuff.

template for emails: it would be enough to set some variables, write them in the readme and either get the template "xyzreviewreward" from the prestahome/emails or the modulename/emails folder. in this case you only set name, folder, variables and the template has to be made by the user =less duplicated work because i think every user builds his own template to fit it to the design of other mails etc...

Another thing i'd like would be that you can assign vouchers to only an order status without referral etc
in this case i would get notified by the review module that a new rating or comment has been made, assign the order status and the voucher would be released.. maybe easier than version 1? setting up an automatic email would not be a problem...
but it should generate a voucher for each article of the cart and apply one piece every time that order status is assigned, so i would assign 5x "product reviewed" and it sends 5 vouchers

What do you think about this?

Install directly

Hello,

If i dont' have any possibility to git clone this module, how can I add it to my PS 1.7? There's another solution?

Points not added to ps_gamifications_customer table

Have installed module on Prestashp v 1.7.4.4 and when all order statuses are enabled under Loyalty -> shopping points completed transactions fail to add points in table for customers.

I've tried manually adding points in that table and then Vouchers can be created and used as rewards fine.

Just seems to be an issue with automatically creating points on orders.

Is there a fix?

Thanks
Baz

Error 500

Hello.

I install this module on my presta 1.7.3
I got php 7.1

I can't install from backoffice and load file from PC becouse is error.

But i send gamefications folder to the /modules and after check backoffice i got error 500.

When i ON debug mode it's error :

Compile Error: Gamifications::requireAutoloader(): Failed opening required '/var/www/prestashop/modules/gamifications/vendor/autoload.php' (include_path='/var/www/prestashop/vendor/pear/pear_exception:/var/www/prestashop/vendor/pear/console_getopt:/var/www/prestashop/vendor/pear/pear-core-minimal/src:/var/www/prestashop/vendor/pear/archive_tar:.:/usr/share/php')
500 Internal Server Error - FatalErrorException

Stack Trace
in modules/gamifications/gamifications.php at line 302   -
     */
    private function requireAutoloader()
    {
        require_once $this->getLocalPath().'vendor/autoload.php';
    }
}
Logs   -
1 error
INFO - The Sensio\Bundle\DistributionBundle\Controller\ConfiguratorController class extends Symfony\Component\DependencyInjection\ContainerAware that is deprecated since version 2.8, to be removed in 3.0. Use the ContainerAwareTrait instead.
INFO - Matched route "admin_module_manage".
DEBUG - Read existing security token from the session.
DEBUG - User was reloaded from a user provider.
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG - SELECT p0_.id AS id_0, p0_.id_employee AS id_employee_1, p0_.id_module AS id_module_2, p0_.date_add AS date_add_3, p0_.date_upd AS date_upd_4 FROM ps_module_history p0_ WHERE p0_.id_employee = ?
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Gamifications::requireAutoloader(): Failed opening required '/var/www/prestashop/modules/gamifications/vendor/autoload.php' (include_path='/var/www/prestashop/vendor/pear/pear_exception:/var/www/prestashop/vendor/pear/console_getopt:/var/www/prestashop/vendor/pear/pear-core-minimal/src:/var/www/prestashop/vendor/pear/archive_tar:.:/usr/share/php')" at /var/www/prestashop/modules/gamifications/gamifications.php line 302
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\UserLocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\Admin::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShop\PrestaShop\Adapter\Security\SslMiddleware::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "PrestaShopBundle\EventListener\TokenizedUrlsListener::onKernelRequest".
DEBUG - SELECT name FROM ps_module WHERE active = 1
DEBUG - Notified event "kernel.controller" to listener "PrestaShopBundle\EventListener\ActionDispatcherLegacyHooksSubscriber::callActionDispatcherBeforeHook".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".

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.