motion2082 Posted April 23, 2015 Share Posted April 23, 2015 (edited) Hey guys, My Accessories Tab is not working in Prestashop Version 1.6.0.14 EDIT: SOLVED by using Related Products Pro by www.mypresta.eu Edited April 24, 2015 by motion2082 (see edit history) Link to comment Share on other sites More sharing options...
myselfidem Posted April 23, 2015 Share Posted April 23, 2015 (edited) Hello, Maybe, you can try. I use PS 1.6.0.6 and I suggest you can change this part Inside product.tpl : {if isset($accessories) AND $accessories} <section id="idTab4" class="page-product-box"> <div class="block products_block accessories_block clearfix"> <div class="block_content"> <ul> ... </ul> </div> </div> </section> Friendly Edited April 23, 2015 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
motion2082 Posted April 23, 2015 Author Share Posted April 23, 2015 (edited) Hello, Maybe, you can try. I use PS 1.6.0.6 and I suggest you can change this part Inside product.tpl : {if isset($accessories) AND $accessories} <section id="idTab4" class="page-product-box"> <div class="block products_block accessories_block clearfix"> <div class="block_content"> <ul> ... </ul> </div> </div> </section> Friendly Hi Myselfidem, Thanks for trying. Still no joy Also CSS I'm using .idTabs a { color:#FFFFFF; text-transform:uppercase; font-family:"Open Sans",sans-serif; font-weight:600; font-size:18px; line-height:60px; position:relative; border:1px solid #d6d4d4; background:#555454; margin:0 0 20px; padding:14px 20px 17px; } #more_info_sheets .product_desc .block_description { float:left; margin-left:10px; width:420px; } #more_info_sheets .product_desc .clear_product_desc { clear:both; height:0; line-height:0; } .idTabs .selected,#header .sf-menu > li.sfHover > a,#header .sf-menu > li > a:hover,#header .sf-menu > li.sfHoverForce > a { color:#fff; background: #000000; border-bottom-color: #000000; } Edited April 23, 2015 by motion2082 (see edit history) Link to comment Share on other sites More sharing options...
myselfidem Posted April 23, 2015 Share Posted April 23, 2015 (edited) I'm looking... Thanks Edited April 23, 2015 by myselfidem (see edit history) Link to comment Share on other sites More sharing options...
motion2082 Posted April 23, 2015 Author Share Posted April 23, 2015 (edited) I'm looking... Thanks Hello again, I seem to have found a temporary Fix I just removed {if ($accessory.allow_oosp || $accessory.quantity_all_versions > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} and the {/if} before the {/foreach} in themes/default/product.tpl It will show me all the accessories. The View is not style correctly and there seems to be 2 ADD to CART buttons now <!-- accessories --> <div id="idTab4" class="bullet"> <div class="block products_block accessories_block clearfix"> <div class="block_content"> <ul> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} <li class="ajax_block_product{if $smarty.foreach.accessories_list.first} first_item{elseif $smarty.foreach.accessories_list.last} last_item{else} item{/if} product_accessories_description"> <p class="s_title_block"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}">{$accessory.name|escape:'htmlall':'UTF-8'}</a> {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} - <span class="price">{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}</span>{/if} </p> <div class="product_desc"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{$accessory.legend|escape:'htmlall':'UTF-8'}" class="product_image"><img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium_default')|escape:'html'}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /></a> <div class="block_description"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='More'}" class="product_description">{$accessory.description_short|strip_tags|truncate:400:'...'}</a> </div> <div class="clear_product_desc"> </div> </div> <p class="clearfix" style="margin-top:5px"> <a class="button" href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a> {if !$PS_CATALOG_MODE && ($accessory.allow_oosp || $accessory.quantity > 0)} <a class="exclusive button ajax_add_to_cart_button" href="{$link->getPageLink('cart', true, NULL, "qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add")|escape:'html'}" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} </p> </li> {/foreach} </ul> </div> </div> </div> {/if} Is it possible just to display the accessories just like a normal product view? Edited April 24, 2015 by motion2082 (see edit history) Link to comment Share on other sites More sharing options...
motion2082 Posted April 24, 2015 Author Share Posted April 24, 2015 Hey guys, Ended up giving up and purchasing RELATED PRODUCTS PRO by www.mypresta.eu Works like a charm! Link to comment Share on other sites More sharing options...
dpcdpc11 Posted September 11, 2015 Share Posted September 11, 2015 Anyone managed to solve this? I'm having the same problem on 1.6.0.14. Link to comment Share on other sites More sharing options...
myselfidem Posted September 11, 2015 Share Posted September 11, 2015 Maybe you can find some help here : https://www.prestashop.com/forums/topic/325298-résolu-comment-recuperer-les-onglets-caracteristiques-personnalisation/?p=2026390 Friendly Link to comment Share on other sites More sharing options...
dpcdpc11 Posted September 11, 2015 Share Posted September 11, 2015 Found the problem. Was the damn stock! If the accessories are out of stock they won't show up. Why didn't I think of that before? Link to comment Share on other sites More sharing options...
Ilaria Colotti Posted March 2, 2016 Share Posted March 2, 2016 Hi all, I have the same problem! I have the accessories on stock but I can't see the tab accessories. Which can be the problem? Thank you all!! Link to comment Share on other sites More sharing options...
Nyla C. Posted March 19, 2016 Share Posted March 19, 2016 (edited) edited comment Edited March 20, 2016 by Milliona (see edit history) 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