Crireis Posted June 20, 2011 Share Posted June 20, 2011 Hi, I am facing something new for me. When visiting a product, it shows its accessories below it. But when you click on a accessorie product it opens a new window, instead of redirecting it on the same page. Where do I fix it ?Thanks Link to comment Share on other sites More sharing options...
Crireis Posted July 11, 2011 Author Share Posted July 11, 2011 Whell, a friend of mine outside the PS community helped me with that. So, in case of anybody else is in need of the same solution, in the accessories products.tpl you will find "traget="_blank"All you need to do is to erase that in the line. Just like it shows below. Cheers, {if isset($accessories) AND $accessories} <!-- accessories --> {foreach from=$accessories item=accessory name=accessories_list} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|truncate:22:'...':true|escape:'htmlall':'UTF-8'} getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" />{$accessory.description_short|strip_tags|truncate:70:'...'} {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}{/if}{l s='View'} {if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}getPageLink('cart.php')}?qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}">{l s='Add to cart'} {else}{l s='Add to cart'}{if (isset($accessory.quantity_all_versions) && $accessory.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if} {/if} {/foreach} {/if} 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