Ergebnis 1 bis 1 von 1

Thema: Attribute im Warenkorb Template *gelöst*

  1. #1
    Contao-Nutzer Avatar von joda
    Registriert seit
    13.10.2009.
    Ort
    Berlin
    Beiträge
    36

    Standard Attribute im Warenkorb Template *gelöst*

    Sorry hab das Problem beheben können, hab den passenden Eintrag gefunden

    https://community.contao.org/de/show...c-mit-ausgeben

    ––––––––––––––––†“––––––––––––––––⠀“–––––––––––––––– –––––

    Hallo zusammen,

    ich hab schon eine Menge gelesen zu den Versuchen ein Attribut im Warenkorbtemplate (iso_collection_default) unterzubringen und nun hab ich folgendes probiert

    <?php echo $this->generateAttribute('location'); ?> einzubauen aber das führt zu folgendem Fehler:

    Recoverable error: Argument 2 passed to Isotope\Model\ProductCollection::Isotope\Model\{cl osure}() must be an instance of Isotope\Model\ProductCollectionItem, none given in system/modules/isotope/library/Isotope/Model/ProductCollection.php on line 1336
    #0 system/modules/isotope/library/Isotope/Model/ProductCollection.php(1336): __error(4096, 'Argument 2 pass...', '/kunden/270299_...', 1336, Array)
    #1 [internal function]: Isotope\Model\ProductCollection->Isotope\Model\{closure}('location')
    #2 system/modules/core/library/Contao/Template.php(152): call_user_func_array(Object(Closure), Array)
    #3 templates/iso_collection_default_mh.html5(53): Contao\Template->__call('generateAttribu...', Array)
    #4 templates/iso_collection_default_mh.html5(53): Isotope\Template->generateAttribute('location')
    #5 system/modules/core/library/Contao/BaseTemplate.php(88): include('/kunden/270299_...')
    #6 system/modules/core/library/Contao/Template.php(277): Contao\BaseTemplate->parse()
    #7 system/modules/core/classes/FrontendTemplate.php(46): Contao\Template->parse()
    #8 system/modules/isotope/library/Isotope/Module/Cart.php(160): Contao\FrontendTemplate->parse()
    #9 system/modules/core/modules/Module.php(287): Isotope\Module\Cart->compile()
    #10 system/modules/isotope/library/Isotope/Module/Module.php(112): Contao\Module->generate()
    #11 system/modules/isotope/library/Isotope/Module/Cart.php(70): Isotope\Module\Module->generate()
    #12 system/modules/core/elements/ContentModule.php(59): Isotope\Module\Cart->generate()
    #13 system/modules/core/library/Contao/Controller.php(484): Contao\ContentModule->generate()
    #14 system/modules/core/modules/ModuleArticle.php(213): Contao\Controller::getContentElement(Object(Contao \ContentModel), 'main')
    #15 system/modules/core/modules/Module.php(287): Contao\ModuleArticle->compile()
    #16 system/modules/core/modules/ModuleArticle.php(67): Contao\Module->generate()
    #17 system/modules/core/library/Contao/Controller.php(417): Contao\ModuleArticle->generate(false)
    #18 system/modules/core/library/Contao/Controller.php(277): Contao\Controller::getArticle(Object(Contao\Articl eModel), true, false, 'main')
    #19 system/modules/core/pages/PageRegular.php(133): Contao\Controller::getFrontendModule('0', 'main')
    #20 system/modules/core/controllers/FrontendIndex.php(285): Contao\PageRegular->generate(Object(Contao\PageModel), true)
    #21 index.php(20): Contao\FrontendIndex->run()
    #22 {main}

    Fatal error: Call to a member function hasProduct() on a non-object in /contao/system/modules/isotope/library/Isotope/Model/ProductCollection.php on line 1339

    Das Attribut ist eine Checkbox Variable...

    Ich arbeite mit Contao 3.5.17 und Isotope 2.3.5

    Hat jemand eine Idee?

    herzlichen Dank

    Robert
    Geändert von joda (12.10.2016 um 08:25 Uhr)

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •