Code Monkey home page Code Monkey logo

ps_legalcompliance's Introduction

Legal Compliance

This module has been archived, it’s no longer maintained but you still can fork it if you need it for your shop.

About

Keep on growing your business serenely, sell all over Europe while complying with the applicable e-commerce laws.

Multistore compatibility

This module is partially compatible with the multistore feature. Some of its options might not be available.

Reporting issues

You can report issues with this module in the main PrestaShop repository. Click here to report an issue.

Contributing

PrestaShop modules are open source extensions to the PrestaShop e-commerce platform. Everyone is welcome and even encouraged to contribute with their own improvements!

Just make sure to follow our contribution guidelines.

License

This module is released under the Academic Free License 3.0

ps_legalcompliance's People

Contributors

aleeks avatar alexej-d avatar antoin-m avatar antoinemille avatar eternoendless avatar idnovate avatar julienbourdeau avatar julievrz avatar ludohenin avatar marionf avatar mathiasreker avatar matks avatar maximebiloe avatar nobodaddy avatar paeddl avatar pierrerambaud avatar prestaedit avatar progi1984 avatar quetzacoalt91 avatar tchauviere avatar thierrymarianne avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ps_legalcompliance's Issues

[BOOM-3660] Shipping $total_tax_excl wrong in invoice

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: ckubitza
  • Created at: Wed, 16 Aug 2017 15:59:49 +0200

I need to show the template variable "$total_tax_excl" in the tax-tab of invoices (it is not visible by default). For shipping costs this value is wrong (double value), but only if proportional tax calculation in legal-complience module is disabled.

I could successfully fix it when moving line 438 in classes/order/OrderInvoice.php (in function getShippingTaxesBreakdown()) out of the if clause. So this should be always calculated, not only when PS_ATCP_SHIPWRAP is enabled:
$sum_of_tax_bases += $row['total_tax_excl'];
But I could not say if it has any side impacts.

  • How to reproduce the issue ?

Show the variable "$total_tax_excl" in the invoice tax-tab template. When an order with shipping (which is including tax) is placed, the value of total_tax_excl in the line of the shipping tax is wrong.

ps_legalcompliance unit_price tax

Hello, because my previously post was closed and I don't know how to re-open it and I don't know if my last reply could be seen so I create a new post.

The settings :
PS 1.7.5.2 (not 1.7.6 tested to try to reproduce the issue)
ps_legalcompliance activated
tax activated.
Prices showed only to a custom group of clients (groupe name = pro)
Prices showed tax exc.
PHP 7
Theme : ZOneTheme (but tried with classic theme)

The issue :
On product list, unit_price is showed tax inc (bad)
On product page, unit_price is showed tax exc (good)

On product-list, unit_price is displayed by ps_legalcompliance :
{hook h='displayProductPriceBlock' product=$product type='unit_price'}

On product page, unit_price is displayed by product-prices.tpl

 `{block name='product_unit_price'}

      {if $displayUnitPrice}

        <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>

      {/if}

    {/block}`

Tried with changing the theme to Classic. Same problem.

I don't know if it's linked but in ProductController.php I see :

` if ($product_full['unit_price_ratio'] > 0) {
        $unitPrice = ($productSettings->include_taxes) ? $product_full['price'] : $product_full['price_tax_exc'];
        $product_full['unit_price'] = $unitPrice / $product_full['unit_price_ratio'];
    }`

Thanks for your help !

[ps_legalcompliance] - Link 'Add new page' does not work

Describe the bug

Error displayed when clicking on 'Add new page' link

Expected behavior

Redirection to CMS page

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install ps_legalcompliance module
  2. Go to configuration page
  3. Click on 'Add new page' link on legal content manager form
  4. See error

Screenshots
image

Additional information

  • PrestaShop version: 1.7.7.1 and branch 1.7.7.x (works fine on 1.7.6.9)
  • PHP version: 7.2

(under conditions) from ps_legalcompliants should always be shown in cart if shipping is free from a custom amount

Hi,

If shipping is always free the ps_legalcompliance add an advice in the cart "FREE (under conditons)"

image

image

But if you configure shipping is free from a custom amount for example free from 29 € the label (under conditions) is not shown. But there could be conditions for delivery in different countries.

image

image

(under conditions) Label with link to "Shipping" Page is gone.

Describe the solution you'd like
The Label (under condition) should always be shown if there is a custom amount for "Free shipping"

Describe alternatives you've considered
Self decision to enable/disable the Label (under condition) in module ps_legalcompliance.

Additional context
If shipping is free from a custom amount for example for "Europe" there could be NO free shipping for other countries. It is always better then to show the Label with Link to site "Shipping" with shipping conditions

If anybody know a short workaround I would be very happy to use it now ;-)

[BOOM-3780] Module "Legal compliance" needs multishop capacities in PS 1.7

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: comfuse
  • Created at: Tue, 5 Sep 2017 09:17:00 +0200

We run a multishop installation with four shops.
We need different CMS links for terms and conditions, imprints et cetera for each shop.
The "Legal compliance module" for german/austrian shops does not provide overall multishop capacities.
The problem goes beyond a simple functional nice-to-have:

  • You choose "terms and conditions" for shop A in module settings. The page you choose comes from a set of CMS pages specific to shop A (When you try to choose different pages for shop B they overwrite the settings for shop A).
  • You fill your cart in shop B. During checkout you click on "terms and conditions". The modal stays empty because CMS pages from shop A are not shared with shop B.
  • This renders the module useless in a multishop setting.

This is an urgent request.

MO : Improve ps_legalcompliance.php

Just to quote myself:
_From a practical point of view it makes no sense just to make the inclusion of the revocation terms or privacy in the terms of trade comfirmation dependent from the fact, if there is any text content or not to be found in the cms "revocation terms" or "privacy". This is a conditio sine qua non, but more important is the fact that you click the option Include revocation in terms and conditions. _
And as PrestaShop always includes a dummy text here, your condition will be always true, which is nonsense!

Please see to this bugfix in my own fork: Nobodaddy#2

Hook actionEmailAddAfterContent adds Content AFTER closing </body></html> Tag

If you add a cms page to the mails with ps_legalcompliance, the content will be insert after the closing Tag.

Steps to reproduce the behavior:

  1. Install ps_legalcompliance.
  2. Add a cms page to a mail in the configuration.
  3. Send a mail by register a new content or take an order.
  4. Check the e-mail cource code.

PrestaShop version: 1.7.4

[BOOM-4309] Label tax incl. / excl should not be visible if country setting is disabled.

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: razaro
  • Created at: Tue, 14 Nov 2017 22:39:13 +0100

Hi

If country have setting to NO display tax label "Display tax label (e.g. "Tax incl.")" on front office, product page, it will still display that label. Module ps_legalcomplience module is installed and have setting to display label. I have created one issue concerning that module also http://forge.prestashop.com/browse/NM-909.

But for this I think issue is in FrontController class in function

protected function getDisplayTaxesLabel()

{ return (Module::isEnabled('ps_legalcompliance') && (bool) Configuration::get('AEUC_LABEL_TAX_INC_EXC')) || $this->context->country->display_tax_label; }

If module is enabled and its tax label set to display that condition will always be true. so even for USA or other countries that do not use that label , or just user changed to disabled, it still will display tax label.

Thank you.

  • How to reproduce the issue ?

Have module ph_complience installed and option "Tax 'inc./excl.' label" set to Yes.


In Location > Countries find USA and set "Display tax label (e.g. "Tax incl.")" option to NO.


On product page it still will show tax label.

ps_legalcompliance should show price "from" on product page too, not only in category

Hello,

this is a feature request:

if you enable "show price from" in ps_legalcompliance it shows "from" price only in category list but NOT on product page. It should be shown on product page too.

image

image

image

image

a alternativ solution can also be to show the price range "from" price "to" price

image

We have in germany the PAngV (Preisangabenverordnung) (price regulation) and it says if there is an price range it HAS to be shown everywhere the price range excists. On product detail page too. So I beg you please to add the "from" label on product page too. Or the alternative solution with "from" price "to" price.

Specs

When the option enabled the price range underneath the price of the "Standard Combination/Attribut" displays "Price range from the lowest combination price to the highest combination price",
like it is here:

image

[BOOM-4784] Legal Compliance module in footer has non-uppercase header

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: adrian
  • Created at: Fri, 9 Feb 2018 14:21:59 +0100

When you install the Legal Compliance module, it adds a list of links with the header "Information" to the footer. Unfortunately, this header is not uppercase, so it doesn't fit in with the other headers in the footer.

I suggest changing line 27 of themes/classic/views/templates/hook/hookDisplayFooter.tpl from:

 

{l s='Information' d='Modules.Legalcompliance.Shop'}

to:

 

{l s='Information' d='Modules.Legalcompliance.Shop'}

  • How to reproduce the issue ?

Install the Legal Compliance module with the Classic theme.

[BOOM-4635] No unit price in product accessories

This issue has been migrated from the Forge. Read the original ticket here.

  • Reporter: superoelk
  • Created at: Mon, 15 Jan 2018 21:50:43 +0100

In the accessories (similar products on product page) there is no price per unit. This is mandatory by law in the EU.

  • How to reproduce the issue ?

Open product page and scroll down to the product's accessories.

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.