Jack
Jack
Offline
0
Hi,
Whenever I add affiliate of menu type to any new menu, new menu on front-end url always appears such as www.xxx.com/alias/conversions, how can I remove or modify the last string 'conversions'?

Accepted Answer

Wednesday, November 09 2016, 04:32 PM - #Permalink
0
but.. what's the option for "default"? did you remove it?
The reply is currently minimized Show
Responses (4)
  • Accepted Answer

    Monday, November 07 2016, 04:51 PM - #Permalink
    0
    hello

    this is the default string.

    you can modify it in file /components/com_affiliatetracker/router.php

    in line 67, this default string is defined.
    The reply is currently minimized Show
  • Accepted Answer

    Jack
    Jack
    Offline
    Monday, November 07 2016, 10:58 PM - #Permalink
    0
    Thank you!I found that!
    In addition, after I remove line 67 on router.php, which default value of switch, my menu url becomes www.xxx.com/alias?view=.
    Where is the parameter 'view' specified and how to specify custom view value to menu url?
    Thank you!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 08 2016, 11:22 AM - #Permalink
    0
    what happens if you also remove the line that says:

    unset( $query['view'] );

    (on line 67)
    The reply is currently minimized Show
  • Accepted Answer

    Jack
    Jack
    Offline
    Tuesday, November 08 2016, 11:54 AM - #Permalink
    0
    Here are my new code nearby line 67 as below:

    if (isset($view)) {

    switch ($view) {

    case 'cart':
    unset($query['view']);
    break;

    case 'accounts':
    unset($query['view']);
    break;

    case 'transactions':
    unset($query['view']);
    break;

    }

    }

    However, nothing changed.
    The reply is currently minimized Show
Your Reply