Hi I want to add the product image to the confirmation page. I used AUG to add a tumbnail to the checkout, which works fine. However the code does not work on the checkout page. Please help. (layout Is Smart).
I tried the workaround from the AUG and I can get the thumbnails to appear on the Shopping Cart, Checkout (0-2) and Add to Cart Confirmation pages.
I am attaching screen-grabs of the Confirmation page. Could you confirm if this is the page where the thumbnails are not appearing for you?
Additonally, in the Design tab of the software, if you select "Add to Cart Confirmation" from the Select Page Type drop-down, do you see the code given in the AUG within this layout as well (typically titled Cart Product Details) ?
4. Now browse to your Site folder and open ShoppingCart.pl in a text editor like Notepad.
5. Search for 'sub OrderDetails' and then scroll down to find the lines :
#
# Do the substitution for NETQUOTEVARs
#
($Status, $Message, $sProductTable) =
ACTINIC::TemplateString($sProductLineHTML, \%hVariables);
if ($Status != $::SUCCESS)
{
return ($Status, $Message);
}
Replace these with :
#
# Check thumbnail
#
my $sThumbnail = $$pProduct{'THUMBNAIL'};
if (length $sThumbnail > 0)
{
my $sWidth = $$::g_pSetupBlob{SEARCH_THUMBNAIL_WIDTH} == 0 ? "" : sprintf("width=%d ", $$::g_pSetupBlob{SEARCH_THUMBNAIL_WIDTH});
my $sHeight = $$::g_pSetupBlob{SEARCH_THUMBNAIL_HEIGHT} == 0 ? "" : sprintf("height=%d ", $$::g_pSetupBlob{SEARCH_THUMBNAIL_HEIGHT});
$hVariables{$::VARPREFIX . 'THUMBNAILSIZE'} = $sWidth . $sHeight;
$hVariables{$::VARPREFIX . 'THUMBNAIL'} = $sThumbnail;
$ACTINIC::B2B->SetXML('ImageLine', $::TRUE);
}
else
{
$ACTINIC::B2B->SetXML('ImageLine', undef);
}
#
# Do the substitution for NETQUOTEVARs
#
($Status, $Message, $sProductTable) = ACTINIC::TemplateString($sProductLineHTML, \%hVariables);
# make the substitutions
if ($Status != $::SUCCESS)
{
return ($Status, $Message);
}
$sProductTable = ACTINIC::ParseXMLCore($sProductTable);
Save and upload changes to site. Now you will see the thumbnails displayed in the Cart Confirmation area as well. Please note that for the thumbnails to appear in the Shopping Cart, the code in the AUG will work fine.
Our usual caveat applies with regards to Perl customisations. Please take a backup before making any changes to Perl files. If you do wish to revert to the olriginal version, you can find it in C:\ProgramFiles\Actinicv8\Original from where you can copy the unchanged file into the Site folder.
Do let me know if you need any clarifications on this.
Comment