Jump to content

Accessories Tab Not Working Version 1.6.0.14


motion2082

Recommended Posts

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 by myselfidem (see edit history)
Link to comment
Share on other sites

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 by motion2082 (see edit history)
Link to comment
Share on other sites

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 by motion2082 (see edit history)
Link to comment
Share on other sites

  • 4 months later...
  • 5 months later...
  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...