Slovo-Plugin-Prodan
view release on metacpan or search on metacpan
lib/Slovo/Plugin/Prodan.pm view on Meta::CPAN
now. C<$app-E<gt>config('consents')> may contain any settings needed for the
client side of the plugin not related dierctly to integration with deliverers
or payment providers.
=head3 GDPR and Cookies consent
A GDPR and cookies consent alert in the footer which upon click leads to the
page (celina) where all conditions on using the site can be described. When the
user clicks on the link to the I<Consent> page a flag in C<localStorage> is put
so the alert is not shown any more. This flag disappears if the user clears any
site data and the alert will appear again if the user vists the site again.
The Consent celina is created automatically in the localhost domain as an
example. Search for C<gdpr_consent> in the source of this module to see how it
is implemented.
Settings:
Keys Default Values
--------------------------------------------
gdpr_url '/ѿноÑно/ÑÑловиÑ.bg.html'
ihost punycode_decode(ed) current host
=head3 Delivery prices URL
This is just a setting for this plugin - C<delivery_prices_url>. Defaults to
'/ѿноÑно/Ñени-доÑÑавка.bg.html'. This is a place where the prices for delivery
are described. The link is displayed at the bottom of the shopping cart widget.
It is created automatically for localhost as the C<gdpr_url>
=head3 phone_url
Currently displayed as a link in the _footer_right.html.ep template.
=head2 TODO some day
=over 1
=item Invoices - generate an invoice in PDF via headless LibreOffice instance
on your server.
=item Merchants - a merchants SQL table with Open API to manage and
automatically populate invoices.
=item Other "Pay on Delivery" providers. Feel free to contibute yours.
=item Other types of Payments and/or Online Payment Providers like online POS
Terminals etc.
=back
=head1 METHODS
The usual method is implemented.
=head2 register
Prepends the class to renderer and static classes. Adds some REST API routes,
configures the deliverer.
=head1 EMBEDDED FILES
@@ css/cart.css
@@ js/cart.js
@@ img/arrow-collapse-all.svg
@@ img/cart-arrow-right.svg
@@ img/cart.svg
@@ img/cart-check.svg
@@ img/cart-off.svg
@@ img/cart-minus.svg
@@ img/cart-plus-white.svg
@@ img/cart-plus.svg
@@ img/cart-remove.svg
@@ img/econt.svg
@@ partials/_footer_right.html.ep
@@ partials/_consents.html.ep
@@ partials/_kniga.html.ep
@@ resources/data/prodan_migrations.sql
=head1 SEE ALSO
L<Slovo::Command::prodan::products>,
L<Slovo>,
L<Mojolicious::Guides::Tutorial/Stash and templates>,
L<Mojolicious/renderer>,
L<Mojolicious::Renderer>,
L<Mojolicious::Guides::Rendering/Bundling assets with plugins>,
L<Slovo::Command::Author::inflate>
=head1 AUTHOR
ÐÑаÑÐ¸Ð¼Ð¸Ñ ÐеÑов
CPAN ID: BEROV
berov на cpan ÑоÑка org
http://Ñлово.бг
=head1 CONTRIBUTORS
Ordered by time of first commit.
=over
=item * Your Name
=item * Someone Else
=item * Another Contributor
=back
=head1 COPYRIGHT
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the
LICENSE file included with this module.
This distribution contains icons from L<https://materialdesignicons.com/> and
may contain other free software which belongs to their respective authors.
( run in 0.552 second using v1.01-cache-2.11-cpan-71847e10f99 )