myPoint Posted April 5, 2020 Share Posted April 5, 2020 hallo Comunity, ich habe gerade über Prestashop 1.7.6.4 einen Marktplatz mit Prestashop Advanced Multi Vendor Marketplace erstellt. nun habe ich meine Frage: im Marketplace Modul wird jeder Artikel einem Seller zugeordnet. ich möchte gerne wenn ein Produkt aufgerufen wird, in den Details gerne den Seller einblenden. Wie kann ich eine .tpl Datei erstellen, die mir Anhand der Artikeldetails den Seller einfügt? Danke myPoint Link to comment Share on other sites More sharing options...
Kogkalidis Posted April 5, 2020 Share Posted April 5, 2020 (Translated via Google Translate) So you want to display details about a seller when the user visits a single product page, right? You have to assign the seller. If the seller class is named Seller and the product is Product and the seller_id is the column where you assign the seller $seller = new Seller($product->seller_id, Context::getContext()->language->id); Then somewhere in the contoller you will see this $this->context->smarty->assign( array( ... 'seller' => $seller ... ) ); Then in the desired place you call {include file="module:your_module/views/templates/front/partial/seller/details.tpl" seller=$seller } The names may change but the scenario is the same. I wish you good luck and always backup before any action. Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now