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

rating

orderid and success

Thread began 12/15/2016 6:07 am by Jamie | Last modified 12/21/2016 4:10 pm by Ray Borduin | 742 views | 7 replies |

Jamie

orderid and success

Hey Ray

Hope all is OK?

Have an cart set up that transacts fine using both Paypal and Sagepay) and adds all the correct details to the db except for one thing - the orderid on the success page isnt working on a paypal transaction (it works 100% fine for a sagepay)....what should I be looking for to correct that?

Cheers

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

With paypal it should be storing the OrderID on pp_confirm.php page not the success page. Make sure the session variable used to store the OrderID is the same as the one displayed on the success page.

Sign in to reply to this post

Jamie

Thanks Ray. They seem to be the same.

Howver in this codeblock

php:
$ConditionalQuery->saveInSession("FrithsCart_OrderID");

  $ConditionalGoTo = "";
  if (function_exists("rel2abs")) $ConditionalGoTo = $ConditionalGoTo?rel2abs($ConditionalGoTo,dirname(__FILE__)):"";
  $ConditionalQuery->redirect($ConditionalGoTo);
  if (isset($_SESSION[$ConditionalQuery->SaveAs])) $ConditionalQuery->addFilter("OrderID", "=", "d",



Should

php:
addFilter("OrderID",



be

php:
addFilter("FrithsCart_OrderID",


?

Sign in to reply to this post

Ray BorduinWebAssist

No, that is the column name. It appears correct.

The issue is that it isn't showing on the success page correct? What are you using to display it on the success page? It could be another session name and you may have to update this line:

$ConditionalQuery->saveInSession("FrithsCart_OrderID");



To match the variable you are displaying.

Sign in to reply to this post

Jamie

on the success page its this:

<h3 class="eCart_OrderHeaderInfo">Order number: <?php echo ((isset($_SESSION["FrithsCart_OrderID"]))?$_SESSION["FrithsCart_OrderID"]:"") ?></h3>



THe thing is that its fine with sagepay just not with paypal

Sign in to reply to this post

Ray BorduinWebAssist

It appears that would work. Is the order being stored in the database with paypal?

Sign in to reply to this post

Jamie

Everything (both PayPal and Sagepay) are working fine except for the display of the order of on a successful PayPal (sagepay displays fine)

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to debug it. The code looks correct to me.

Sign in to reply to this post

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...