Coder Social home page Coder Social logo

oxid-connect's People

Contributors

alexanderbabel avatar benjaminjoerger avatar bghmarmalade avatar christophersnail avatar dependabot[bot] avatar hagealex avatar halplatzke avatar jensrichter avatar jkrug avatar kore avatar kyoya-de avatar luflow avatar makaira-github avatar manuelpichler avatar mldeploybot avatar mravantic avatar mwille avatar phppueppi avatar semantic-release-bot avatar

Watchers

 avatar  avatar  avatar

oxid-connect's Issues

DatabaseInterface Fetch Mode

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

current category gets lost when adding a product to basket directly from list

  • Assign a product to a category eg. via a product stream
  • Add a product directly from the category list to your basket. Use eg. https://demo.makaira.io/oxid6/Alle-Produkte/
  • After that you'll find yourself in a totally different category than the category you originated from although the correct cnid is visible in the url

The reason for this is this line: https://github.com/OXID-eSales/oxideshop_ce/blob/d06e90e39f62d32590664153879b478d827d0c44/source/Application/Component/CategoriesComponent.php#L248

product touch missing when removing category relation

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()

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.