Nikminor Posted October 15, 2020 Share Posted October 15, 2020 I have the following problem. I try to get the supplier description of the specific productsupplier in the product tab on the product page. I use an individual theme. Therefore i wrote the following codelines: In Productcontroler.php $this->context->smarty->assign(array( 'priceDisplay' => $priceDisplay, 'productPriceWithoutReduction' => $productPriceWithoutReduction, 'customizationFields' => $customization_fields, 'id_customization' => empty($customization_datas) ? null : $customization_datas[0]['id_customization'], 'accessories' => $accessories, 'product' => $product_for_template, 'displayUnitPrice' => (!empty($this->product->unity) && $this->product->unit_price_ratio > 0.000000) ? true : false, 'product_manufacturer' => $productManufacturer, 'manufacturer_image_url' => $manufacturerImageUrl, 'product_brand_url' => $productBrandUrl, 'product_supplier' => new Supplier((int)$this->product->id_supplier, $this->context->language->id), In Product.tpl <li class="nav-item"> <a class="nav-link" data-toggle="tab" href="{$supplier.description nofilter}"> {Supplier::getNameById($product->id_supplier)} The Problem ist the supplier name is displayed in the tab name, but the description is not displayed (See attachment) and the tab does not open. I tried to solve it with the following forum entry, but i doesn't work: https://www.prestashop.com/forums/topic/279912-solved-how-to-show-supplier-description-on-product-page/ I tried everything and don't know how to solve it. Can someone please help me? 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