makairaio / oxid-connect Goto Github PK
View Code? Open in Web Editor NEWOXID Connect Modul für Makaira - inklusive Cookie Consent und Makaira Tracking
License: GNU General Public License v3.0
OXID Connect Modul für Makaira - inklusive Cookie Consent und Makaira Tracking
License: GNU General Public License v3.0
When you use the Oxid Model (in any way, don't need to load the article) in an Modifier and get the Long Desciption the AttributeModifier
from Makaira throws an exception.
Unknown property $0 in Makaira\Connect\Type\Common\AssignedTypedAttribute
Own Modifier
public function apply(Type $type)
{
$objectData = array_merge((array)$type, $type->additionalData);
$article = oxNew(Article::class);
$article->assign($objectData);
$type->longdesc = $article->getLongDescription()->value;
$type->OXLONGDESC = $article->getLongDescription()->value;
return $type;
}
Problem: getLongDescription()
internally calls \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
witch resets the Fetch Mode to numeric, DatabaseInterface does not change the fetch Mode back, but the AttributeModifier expects associative Results and can't Map nummeric Results to Class properties.
Possible Workaround:
Put \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);
right before the return in own Modifier
Possible Fix:
Ensure that Fetch Mode is set to associative in AttributeModifier
or other places
cnid
is visible in the urlThe reason for this is this line: https://github.com/OXID-eSales/oxideshop_ce/blob/d06e90e39f62d32590664153879b478d827d0c44/source/Application/Component/CategoriesComponent.php#L248
When removing a product2category relation (or all relations via Unassign all
) the change isn't reflected in the makaira makaira_connect_changes
table because no touch is executed.
To fix this you need to write an extension for OxidEsales\EshopCommunity\Application\Controller\Admin\CategoryMainAjax::removeArticle()
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.