>Is it possible to include more than just the product name in the Shopping
>Cart page? Some of my clients products simply have a number which looks a
>little limp on its own. Could, for example, the product description be
>added as well?
The Product Description only appears on the generated product html pages
and isn't accessible to the shopping cart scripts.
However the "Extended Product Description for Customer Reports" is stored on
the web-site (in the .cat files) along with the product details and is thus
usable for adding extra description to the cart display.
This field is optional and is enabled in Business Stettings / Options.
Once you've enabled it an extra tab "Report Description" appears on your
product dialogue.
Normally this info only appears on the printed invoices and reports but with
a tiny bit of tinkering to some of the Perl scripts it can be enabled for
the shopping cart and customer e-mail.
So you could have a long description against your products and either the
same or a more concise one in Report Description with this appearing on the
Cart display.
Luckily I'd done something similar to add the Report Description to the
customer e-mail only. This implemented a poor-mans digital download system
by hiding a download URL in the report description and only showing it in
the customer e-mail, which is only generated after payment has been made.
I've redone the readme for this to include displaying this info on the cart
pages.
PATCHING INSTRUCTIONS:-
Backup ShoppingCart.pl ActinicSCCode.fil and OrderScript.pl (your Site1 versions).
Now using a text editor, not a word processor (see www.editpad.com if you don't have one).
In ShoppingCart.pl (this adds the extended info to the add to cart dialogue)
Search for the line (there should be only one instance)
$VariableTable{$::VARPREFIX."PRODUCTNAME"} = $sLine; # add the product name to the var table
REPLACE this line with the following fragment
my $sNorcatReport = '';
if ($$pProduct{"REPORT_DESC"})
{
@Response = ACTINIC::ProcessEscapableText($$pProduct{"REPORT_DESC"}); # get the product Report Description
($Status, $sNorcatReport) = @Response; # format the Report Description for HTML
if ($Status != $::SUCCESS)
{
return (@Response);
}
$sNorcatReport = '
' . $sNorcatReport; # (V11) put on new line
}
$VariableTable{$::VARPREFIX."PRODUCTNAME"} = $sLine . $sNorcatReport; # add the product name to the var table
That's ShoppingCart.pl done.
In ActinicSCCode.fil (this adds the extended info to the display of the cart contents)
Search for the line (there should be only one instance)
$ProdName .= '