Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Open Menu Links In New Tab Rate Topic   - - - - -

 

Posted 04 August 2016 - 09:40 AM #1

Hi

 

Is there any way to make either individual links, just a specific menu or external links only to open in a new tab?

 

CS-Cart V3

 

Kind regards

Jamie



 
  • Cart-Power
  • Senior Member
  • Authorized Reseller
  • Join Date: 12-May 14
  • 1650 posts

Posted 04 August 2016 - 12:33 PM #2

Hi

 

Is there any way to make either individual links, just a specific menu or external links only to open in a new tab?

 

CS-Cart V3

 

Kind regards

Jamie

 

Hello! 

 

You can use the cm-new-window class for the menu in your  menu .tpl files. The link should look like:

 

<a{if $item1_url} href="{$item1_url}"{/if}{if $item1.$childs} class="drop cm-new-window"{/if}>{$item1.$name}</a>

 

 

The menu .tpl files are sotred here: skins/[your_theme]/customer/blocks/menu

 

We recommend you to use the default template editor for better navigation in template files.

 

Feel free to contact us if you have any questions.


Cart-Power.com / Cart-Power.ru (sales@cart-power.com) offers you:
CS-Cart add-ons :: CS-Cart themes :: CS-Cart development :: CS-Cart license
Работаем с англоязычными и русскоязычными клиентами (work with English-speaking and Russian-speaking customers)

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21589 posts

Posted 04 August 2016 - 02:05 PM #3

Hi

 

Is there any way to make either individual links, just a specific menu or external links only to open in a new tab?

 

CS-Cart V3

 

Kind regards

Jamie

 

Do you mean admin panel or store-front?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 05 August 2016 - 07:02 AM #4

Do you mean admin panel or store-front?

 

Store Front



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21589 posts

Posted 05 August 2016 - 07:30 AM #5

Store Front

 

I see the following way

 

- add unique class to menu item

 

http://prntscr.com/c1uucq

 

- add html block with smarty support to the Footer section with small script, which will add cm-new-window class to the required links

 

e.g.

<script type="text/javascript">
    $(document).ready(function(){
        $('.ty-menu-item__products a').addClass('cm-new-window');
    });
</script>

(!) Not tested


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 05 August 2016 - 07:38 AM #6

I see the following way

 

- add unique class to menu item

 

http://prntscr.com/c1uucq

 

- add html block with smarty support to the Footer section with small script, which will add cm-new-window class to the required links

 

e.g.

<script type="text/javascript">
    $(document).ready(function(){
        $('.ty-menu-item__products a').addClass('cm-new-window');
    });
</script>

(!) Not tested

 

There doesn't seem to be the option to add a User-defined CSS-class on V3



 

Posted 05 August 2016 - 08:06 AM #7

 

There doesn't seem to be the option to add a User-defined CSS-class on V3

 

However, i've added the class to the menu block and it works perfectly. Many Thanks



 
  • akbarmecci
  • Newbie
  • Trial users
  • Join Date: 12-May 17
  • 4 posts

Posted 16 May 2017 - 04:08 AM #8

how to add a option to cs cart 4.3.5 multivendor. when customer clicks on any product it should open in new window.



 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2820 posts

Posted 16 May 2017 - 12:02 PM #9

how to add a option to cs cart 4.3.5 multivendor. when customer clicks on any product it should open in new window.

It is an additional modification. 

 

It is made with the help of JavaScript. Do you have any custom blocks? 

 

Best regards, Alt-team.


ADD-ONS  Web development service  | CS-Cart dedicated developers

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • akbarmecci
  • Newbie
  • Trial users
  • Join Date: 12-May 17
  • 4 posts

Posted 06 June 2017 - 07:27 AM #10

It is an additional modification. 

 

It is made with the help of JavaScript. Do you have any custom blocks? 

 

Best regards, Alt-team.

No Custom Blocks its just all the products or link clicked should open in a new window... Is there any option



 
  • akbarmecci
  • Newbie
  • Trial users
  • Join Date: 12-May 17
  • 4 posts

Posted 07 June 2017 - 06:30 AM #11

Basically i am trying to open all products to open in a new window as customer don't have to keep going back every single time they want to see a different product example customer click on a Apple Iphone6 on the page it should open in a new tab. i have some were around 20000 products uploaded it would be hard to create a tab for all the products. Is there any code which i could implement into the script. 



 
  • akbarmecci
  • Newbie
  • Trial users
  • Join Date: 12-May 17
  • 4 posts

Posted 12 June 2017 - 11:36 AM #12

It is an additional modification. 

 

It is made with the help of JavaScript. Do you have any custom blocks? 

 

Best regards, Alt-team.

 

i have no custom blocks, As i just want the products when clicked to open in new tab or window as the customer do have to keep go back and forth finding the searched page.