• Skip to main content
  • Skip to footer

EqualServing

WooCommerce, ActiveCampaign, 1ShoppingCart, Infusionsoft Expertise.

  • Services
    • Build Websites
    • Task Automation
      • ActiveCampaign Marketing Automation
      • Process Automation with Infusionsoft
    • Website Content Migration
    • Service Bundles
    • Third Party Software Integration
    • WordPress Plugin Development
  • About Us
  • Contact
  • Blog
  • Shop
    • Service Bundles
    • WordPress Plugin For 1ShoppingCart.com V2.0
    • WordPress Themes
    • All Our WordPress Plugins
  • Support
    • FAQ – 1ShoppingCart Plugin For WordPress – GENERAL
    • FAQ – 1ShoppingCart Plugin For WordPress – FREE
    • FAQ – 1ShoppingCart Plugin For WordPress – PREMIUM
    • Contact Support
You are here: Home / 2012 / Archives for July 2012

Archives for July 2012

Sending POST variables to WordPress based Thank-You pages

July 15, 2012 by Michele

For all those 1ShoppingCart.com users that are struggling to display some of the POST variables sent from 1Shoppingcart.com to your WordPress pages, there is a easy way.

Jeremy Shapiro of Asandia has created a plugin called URL Params that is perfect for the job.

Once the plugin is installed you can use the following shortcode to display variables sent from a signup form and/or order/purchase form –

[urlparam param="{the post variable}" default="{a string to display if the variable is not found}]

Say for example you want to display the following on a page thanking people for purchasing access to your webinar and provide additional information about the event –

Thank you Customer Name for registering for our Online Webinar. Your purchase confirmation and event details have been sent to your email address, Email address. We look forward to seeing/hearing from you on the 15th at 9:00am EST.

You would enter the following within the page –

Thank you <strong>[urlparam param="Name,name" default="Not on file" /]</strong> for registering for our <strong>Online Webinar</strong>. 
Your purchase confirmation and event details have been sent to your email address, <strong>"Email</strong>.
We look forward to seeing/hearing from you on the <strong>15<sup>th</sup> at 9:00am EST</strong>.

The default value in the shortcode is a nice feature because if the variable is not found in the query string, the default value will be displayed.

While working on this issue, I did learn that “name” (lower case) is a reserved word in WordPress which means WordPress blocks it (thanks earthtracker). Therefore using name in the query such as –

http://www.example.com/?name=Joe Smith&amp;email1=me@example.com

will generate a 404 error. If your thank you page is being redirected to a 404 error rather than rendering, you can prevent the block by adding the following line to your wp-config.php file.

unset($_GET['name']);

If you follow this link https://www.equalserving.com/test-thank-you-page/?Name=Joe%20Smith&email1=joe@example.com, you will see a demonstration of this explanation. Please notice the items in green font are retrieved from the query string.

Filed Under: 1shoppingcart.com, Wordpress Plugin

Footer

Stay Connected

Stay up to date with the latest news, product announcements, and more by signing up for our email newsletter. Don't forget to follow us on your favorite social sites as well.
  • Email
  • Google+
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Contact Us

EqualServing

46 Amethyst Rd
Palmyra, VA 22963

727-490-7443 https://www.equalserving.com/wp-content/uploads/2013/11/eslogo_300x60.png $$
Email :: Plugin Support
  • ActiveCampaign
  • How To
  • WooCommerce
  • WordPress Explained
  • Resources and Recommendations

Copyright © 2021 ยท Web Development :: EqualServing.com on Genesis Theme Framework
» You will find affiliate links on this site. When we find a company or individual that consistently delivers a high quality product or service, we will become an affiliate. «