thirtybees / advancedeucompliance Goto Github PK
View Code? Open in Web Editor NEWAdvanced EU compliance
Advanced EU compliance
When specifying CMS pages in the module I get a notice for each one I assign.
Configuration information:
php 7.4
thirtybees 1.6 (current edge)
NOTICE
Message:
Trying to access array offset on value of type null
Location:
modules/advancedeucompliance/advancedeucompliance.php line 1782
STACKTRACE
#0 modules/advancedeucompliance/advancedeucompliance.php(1782)
#1 modules/advancedeucompliance/advancedeucompliance.php(910): Advancedeucompliance->renderFormLegalContentManager()
#2 controllers/admin/AdminModulesController.php(1479): Advancedeucompliance->getContent()
#3 controllers/admin/AdminModulesController.php(1358): AdminModulesControllerCore->postProcessCallback()
#4 classes/controller/Controller.php(198): AdminModulesControllerCore->postProcess()
#5 classes/Dispatcher.php(854): ControllerCore->run()
#6 admin123/index.php(58): DispatcherCore->dispatch()
Proposed code:
foreach ($cmsRoles as $cmsRole) {
if ((int) $cmsRole->id_cms > 0) {
$cmsEntity = $cmsRepository->findOne((int) $cmsRole->id_cms);
// Check if meta_title is not null and is an array
if (isset($cmsEntity->meta_title) && is_array($cmsEntity->meta_title)) {
$assocCmsName = $cmsEntity->meta_title[(int) $idLang];
} else {
$assocCmsName = $this->l('-- Select associated CMS page --');
}
} else {
$assocCmsName = $this->l('-- Select associated CMS page --');
}
$cmsRolesAssoc[(int) $cmsRole->id] = [
'id_cms' => (int) $cmsRole->id_cms,
'page_title' => (string) $assocCmsName,
'role_title' => (string) $cmsRolesAeuc[$cmsRole->name],
];
}
Copy of #4 (comment)
jQuery .submit()
call might be FUBAR. Would be a lot better if we just trigger a submit
event instead. Maybe even remove the JavaScript check and add a backend check as well for visitors that do not have JavaScript enabled.
Module performs email template search only during installation. And it also looks only inside /mails/en directory, and ignore all theme and modules email templates.
We need to change this so module is able to detect new email templates.
I seem to have problems with the ordering process. It doesn't matter whether I just want to buy a PDF or together with a real product. Every time I get stuck in the ordering process (5 steps) when shipping, because the message comes up: "Please accept cancellation of virtual (download) articles first". However, I cannot see this checkbox anywhere.
TB 1.1.0 as well as 1.0.8 and 1.0.7
A complete description including a possible solution can be found here in the forum
https://forum.thirtybees.com/topic/3271-virtuelle-produkte-und-aeuc-modul/
Goal is to set shipping costs with taxes in an environment with distinct per-product taxes. Some Products 7% VAT, others 19% VAT, so shipping tax percentage varies with the combination of products. With this varying percentage, shipping fees visible for the shop customers should stay constant, no matter how big the tax percentage is.
I didn't research it myself so far, but @colorful-ant wrote:
die gesamtsumme (brutto) versand ist dabei immer gleich geblieben. zum einstellen der versandkosten mit der steuer darf das auec nicht aktiviert sein, dann kann man die daten in der jeweiligen versandard eingeben und danach aeuc einfach wieder aktivieren
Translation:
The total of shipping fees stayed always constant [the way it should be]. To adjust fees with taxes, AEUC has to be deactivated. Then enter the various fees, then reactivate AEUC.
P.S.: the bug here is that the AEUC module shouldn't prohibit adjusting settings the right way. AEUC is about displaying certain additional texts to users, not about modifying / messing up tax calculations.
On “Advanced EU Compliance” we have:
When we chose “NO”, the TB didn’t display the weight of a product.
When we chose “YES”, the TB displayed the product's weight, including below 1 kg.
Two options for “YES”:
Such labels can be set on Back office -> Catalog -> Products -> -> Quantities already. And these are much better, because they can be set per product, not globally.
Removing these labels from AEUC obviously also might require to do minor adjustments to the default theme, of course.
Related forum discussion:
https://forum.thirtybees.com/topic/1702/order-confirmation-email-order_conf-no-delivery-time-listed
"Warning on line 1253 in file public_html/modules/advancedeucompliance/advancedeucompliance.php
[2] count(): Parameter must be an array or an object that implements Countable"
This module shows a lot of useful info but if i chose in the frontend a product with combinations it shows incorrect weight - only for default combination, so price and attributes changes depending on selected combination while weight not.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.