A personalization add-on for the GRAV Shoppingcart
If you encounter any issues, please don’t hesitate
to report
them.
The Personalizer Add-On for Shoppingcart
This add-on has two purposes, one is to show people how to write add-ons for the shoppingcart plugin and the second one
is to offer some enhancements and fixes for the shoppingcart plugin itself. Apart from this plugin I offer a second add-on
paying a small fee, the Shopping Cart Notify Add-On. The Shopping Cart Notify Add-On offers task automizations and multi-language
support and additional features.
At the time of publishing, GRAV offers two plugins to create and run online shops inside of a GRAV website and the only native
solution that does not require third party services is the former mentioned shoppingcart plugin that provides a good starting
point for developers but not for site owners and administrators as it comes without many of the most basic features expected, e.g.
stock management, country restriction, single product, service vs. shippable product, etc. The incomplete list of features comprised in the Shoppingcart Personalizer Add-on includes
Addtionally I’ve prepared a fork of the shoppingcart plugin that includes more options for the checkout
form configuration adding support for textarea, re-captcha, etc. A Pull Request for the shoppingcart plugin, v.1.2.2 is
placed but you may update your shoppingcart plugin using the fork as long as the proposals are not integrated into the shoppingcart plugin. But don’t worry, this plugin mitigates problems of the shoppingcart plugin by refactoring many of its core functions.
The Shoppingcart-Notify Add-on allows you to:
The Shoppingcart-Notify plugin will be soon available online and it will show up in the add-on section.
The plugin was tested with the antimatter and the quark theme. It also works on our propietary theme Studio.
You can customize the look and feel in several ways:
If you modify templates you do it at your own risk as you may break things.
The plugin includes as of v0.9.4 of language definitions for English, German, Catalan and Spanish. Help with translation is highly appreciated.
Installing the Shoppingcart Personalizer plugin can be done in three ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
If you install manually please assure yourself that the plugin folder inside /user/plugins directory is named shoppingcart-personalizer. The manual install method requires
that you already dispose of the shoppingcart plugin in your GRAV instance.
The third method is through the Administration Panel.
The simplest way to install this plugin is via the Grav Admininitration Panel. Once inside of the Plugins section click ADD and select the
Shoppingcart Personalizer for installation. This will install dependencies as well.
Another simple way to install this plugin is via the Grav Package Manager (GPM) through your system’s terminal (also called the command line). From the root of your Grav instance type:
bin/gpm install shoppingcart-personalizer
This will install the Shoppingcart Personlizer plugin into your /user/plugins
directory within Grav. Its files can be found under /your/site/grav/user/plugins/shoppingcart-personalizer
.
Help can be obtained via the issue section but we cannot guarantee to answer in a timely or exhaustive fashion.
It will sometimes take some days to obtain responses and we will only answer to general problems.
Site specific integration problems will not be addressed in the issue section.
If you have dedicated, site-specific integration neeeds, you may quote for support and we will send you an offer.
You can see both add-ons (Personalizer and Notify) in action on Tessa.
Thanks to @flaviocopes for the Shoppingcart plugin.
This plugin includes the Jquery Fancybox plugin. You can activate support in the configuration of the plugin.
Hopefully this plugin will obtain some feedback and suggestions. I will try to enhance the plugin with additional
basic features in the future as I believe that GRAV needs better support for e-commerce.