PDA

View Full Version : Product Group Links


DaveT
24-Sep-2004, 01:57 PM
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.

Toby B
24-Sep-2004, 02:09 PM
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? :)

DaveT
24-Sep-2004, 02:22 PM
Toby

You are a star.

Give that man a raise.

Works really well, thank you so much.

Toby B
24-Sep-2004, 02:26 PM
Give that man a raise. :D

Thanks but credit to the developer who came up with the fix. :rolleyes: