Announcement

Collapse
No announcement yet.

Adding Image to Confirmation Page.

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

    Adding Image to Confirmation Page.

    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).
    Advanta Marketing.co.uk

    #2
    Hi Craig

    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) ?
    Attached Files
    Krithika Chandrasekar
    SellerDeck

    sigpic

    E-commerce software by SellerDeck

    Comment


      #3
      help image in add to cart confirmation page

      Hi Thanks for getting back to me however I would like the image of the product the are ordering to show in the confirmation page above the price.

      I have got is to show the products they have already added into the cart to show. Hope this makes sence.
      Advanta Marketing.co.uk

      Comment


        #4
        Morning Craig

        I see what you mean. This one does look tricky. I will work on it and get back to you.
        Krithika Chandrasekar
        SellerDeck

        sigpic

        E-commerce software by SellerDeck

        Comment


          #5
          Hi Craig

          Sorry for the delay. I have received the work-around from the dev team and it works fine on my default site as well.

          Please try the following:

          1. On the Design tab, choose Add to Cart confirmation from the Select Page Type drop-down.

          2. Paste these lines around the ProductNameOnline and DisplayProductRef

          <td><Actinic:REMOVE TAG="ImageLine">
          <img src="<actinic:variable name="SearchResultProductImage" />"
          <actinic:variable name="SearchResultProductImageSize" /> />
          </Actinic:REMOVE></td>
          3. Apply changes.

          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.
          Krithika Chandrasekar
          SellerDeck

          sigpic

          E-commerce software by SellerDeck

          Comment

          Working...
          X