Announcement

Collapse
No announcement yet.

Product Group Links

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Product Group Links

    Hello all
    Using V7 Business and the amazing product discounting options - well done for a superb new function.

    When we add the relevant item to the basket it shows in the basket 'You can save £XX by buying another from XYZ group. This takes you to ss000001.pl?PG=X&GROUPONLY=1 which gives search results for that group.

    This is arranged as result 1-10 in page 1 and 11-20 on page 2 etc. But the TB parameter is missing from the link to the next page so selecting the next page of results gives 'Missing Join mode' error.

    Example - www.mr-fothergills.co.uk, do a quick search for code 0978 and add to cart, then click the 'Lobelias offer' link at the bottom. Then click results 11-20.

    Can anyone suggest a solution?

    Otherwise very fine effort, Actinic.
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    #2
    Hi David,

    Try this fix:

    Edit SearchScript.pl
    Search for 'sub DisplayResults'
    Scroll down to...

    #
    # Build the basic search script URL
    #
    my $sScript = sprintf('%s?TB=%s&GB=%s&SS=%s%s%s&PR=%s',
    $::g_sSearchScript,
    $::g_InputHash{TB},
    $::g_InputHash{GB},
    ACTINIC::EncodeText2($::g_InputHash{SS}, $::FALSE),
    $sCustomNumber,
    $sCustomSection,
    $::g_InputHash{PR});

    Replace the above with...

    #
    # Build the basic search script URL
    #
    my $sScript = sprintf('%s?TB=%s&GB=%s&SS=%s%s%s&PR=%s&PG=%s',
    $::g_sSearchScript,
    $::g_InputHash{TB},
    $::g_InputHash{GB},
    ACTINIC::EncodeText2($::g_InputHash{SS}, $::FALSE),
    $sCustomNumber,
    $sCustomSection,
    $::g_InputHash{PR},
    $::g_InputHash{PG});
    #
    # Check if product group only search and add the appropriate tag
    #
    if (defined $::g_InputHash{GROUPONLY})
    {
    $sScript .= "&GROUPONLY=1";
    }

    Save and exit.
    Update site.
    Don't forget to backup first.

    Let me know how you get on?
    Regards,

    Toby Blanchard

    Comment


      #3
      Legend Support Too

      Toby

      You are a star.

      Give that man a raise.

      Works really well, thank you so much.
      http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
      http://www.dtbrownseeds.co.uk - More seeds and plants....
      http://www.mr-fothergills.co.uk - Well it used to be Actinic...

      Comment


        #4
        Give that man a raise.


        Thanks but credit to the developer who came up with the fix.
        Regards,

        Toby Blanchard

        Comment

        Working...
        X