where do we edit the order confirmation page?

13 replies [Last post]
justclint
Offline
Joined: 10/12/2011
Status: 
Answered

Hi, the clients SEO company is asking to add some google snippets to the order confirmation page. Ive looked in the ms_membership directory but cant find any tpl files.

Where or how should I go about adding something to the confiration page?

Thanks!

Leighton Whiting
Offline
Joined: 06/02/2009
If I were you I would make a

If I were you I would make a new thank-you page that has the code in it, then set that as the thank-you page path in MS Core settings. That way is much more flexible.

-Leighton

justclint
Offline
Joined: 10/12/2011
Hi Leighton, will do, thanks!

Hi Leighton, will do, thanks! Just one other question. If I create a custom page will I still be able to use your tokens like:

 

Order # [orderId]

Order Status: [orderStatus]

Payment: [paymentAmount] - [paymentDate]

Payment Method: [gatewayName]

 

Thanks!

Leighton Whiting
Offline
Joined: 06/02/2009
Unfortunately no, but there

Unfortunately no, but there is the $order variable available if you are using php filter. I'm going to see if I can get it set up so that it can use tokens with a custom page as well...

-Leighton

Leighton Whiting
Offline
Joined: 06/02/2009
Hav you tried inserting the

Hav you tried inserting the code (I assume it is js code) into the thank-you page template in MS Core Settings? That might work as well...-

 

Leighton

justclint
Offline
Joined: 10/12/2011
Thanks, I ended up just doing

Thanks, I ended up just doing that.

mich
Offline
Joined: 11/09/2011
+1 for this.

+1 for this.

mich
Offline
Joined: 11/09/2011
$order is not aviailable when

$order is not aviailable when using panels. Do you know a way to get access to it?

Leighton Whiting
Offline
Joined: 06/02/2009
Can you access it in the

Can you access it in the $_SESSION variable? I think there is a copy in there... Another thing you could try is load the orders associated with the logged in user and just use the latest one.

-Leighton

mich
Offline
Joined: 11/09/2011
i made a custom token that

i made a custom token that can be used within your textarea. :)

SLW
Offline
Joined: 12/05/2011
Token Filter and Moneyscripts / Context

Trying to figure out how to use the moneyscripts tokens with drupal module token filter.  Normally token filter uses the context [token global site-name] or [token user user] and it will accept custom tokens and (hopefully) moneyscripts tokens.  So what would the context be for ms_core tokens?  I have tried [token ms_core orderId] and have tried replacing "ms_core" with "ms_membership," "custom," etc... Nothing is working yet.  I can't seem to pinpoint the context for token filter.  Global and user tokens are working just fine.

Leighton Whiting
Offline
Joined: 06/02/2009
Tokens are complex things.

Tokens are complex things. You can only use them where it is expecting them to be used. This is because the values to replace need to be passed in as well. Where are you trying to use them from?

-Leighton

SLW
Offline
Joined: 12/05/2011
Token Filter

For the current scenario I am creating a custom /thank-you page.  However,  I was hoping to use them whereever I please on the site.  I see that Moneyscripts is generating all different classes of tokens under:

MS Order, MS Product, MS Payment, Membership, Membership

In addition to the default which are:

Node, Taxonomy, User, Global

Right now I use and create custom tokens using the patterns [token user user], [token global site-name], etc...

Leighton Whiting
Offline
Joined: 06/02/2009
Things like global site name

Things like global site name and current user are always available in drupal, but things like node tokens, order tokens, etc can only be used when there is a context for the. How would the system know which order or which payment to use to get the tokens from? For that reason, those tokens can only be used on pages that already have a context for the order, such as the thank-you page, which receives the order object when it is built.

Hope that makes sense.

-Leighton

Twitter Feed