close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Display Size and Color in PayPal Description and Storing in Database

Thread began 7/21/2012 5:09 pm by bill173836 | Last modified 7/27/2012 11:14 am by bill173836 | 1751 views | 17 replies

Jason ByrnesWebAssist

for the paypal receipt, find the following code on the pp_confirm.php page:

php:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
  $WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("Name")  ."";



and change it to:

php:
$WA_PP_ECO_Do_itemized[0][$nextIndex] = "Name" . strval($cartIndex+1) . "";
  $WA_PP_ECO_Do_itemized[1][$nextIndex] = "".$siteCart->DisplayInfo("productName")  ."";




for the receipt on your page, the order number does not show because of code order.

The email code block is at lines 433 - 521 of the pp_confirm.php page 522 - 635 is the code block for storing the order information in the database. The order ID is created by the store order summary behavior. The email code block needs to be moved to line 635 so it happens after the order is saved to the database and the ID is created.


The spaces between the description and the options are happening because you have each block in a separate paragraph in the email message.

the code for the name dfescription and options in the email is:

php:
$MailBody = $MailBody . "<p style=\"font-weight:bold; margin:0 0 2px 0;\"><strong>";
$MailBody = $MailBody .  $siteCart->DisplayInfo("Name");
$MailBody = $MailBody . "</strong></span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\"><strong>Description:</strong>&nbsp;";
$MailBody = $MailBody .  $siteCart->DisplayInfo("Description");
$MailBody = $MailBody . "</span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\">";
 $Color = $siteCart->DisplayInfo("Color"); 
$MailBody = $MailBody . "";
 if ( $Color == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Color:</strong> $Color "; 
$MailBody = $MailBody . "</span></p>\r\n";
$MailBody = $MailBody . "<p style=\"margin:0 0 2px 0;\">";
 $Size = $siteCart->DisplayInfo("Size"); 
$MailBody = $MailBody . "";
 if ( $Size == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Size:</strong> $Size"; 
$MailBody = $MailBody . "</span></p>\r\n";



change that to:

php:
$MailBody = $MailBody . "<p style=\"font-weight:bold; margin:0 0 2px 0;\"><strong>";
$MailBody = $MailBody .  $siteCart->DisplayInfo("Name");
$MailBody = $MailBody . "</strong></span></p>\r\n";
$MailBody = $MailBody . "<strong>Description:</strong>&nbsp;";
$MailBody = $MailBody .  $siteCart->DisplayInfo("Description");
$MailBody = $MailBody . "</span>\r\n";
$MailBody = $MailBody . "";
 $Color = $siteCart->DisplayInfo("Color"); 
$MailBody = $MailBody . "";
 if ( $Color == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Color:</strong> $Color "; 
$MailBody = $MailBody . "</span>\r\n";
$MailBody = $MailBody . "";
 $Size = $siteCart->DisplayInfo("Size"); 
$MailBody = $MailBody . "";
 if ( $Size == "") $MailBody = $MailBody . ""; else $MailBody = $MailBody . "<strong>Size:</strong> $Size"; 
$MailBody = $MailBody . "</span></p>\r\n";



So that only one paragraph is used.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...