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!
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!
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
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
+1 for this.
$order is not aviailable when using panels. Do you know a way to get access to it?
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
i made a custom token that can be used within your textarea. :)
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.
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
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...
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

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