Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Creating a Review Page and checkout page

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Creating a Review Page and checkout page

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 8 months ago by roback.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 28, 2010 at 2:45 pm #1564
    roback
    Member

    Okay, I am trying to create a 3 Step checkout process.

    Step 1 – Reveiw and upsell page, (want to replace the PayPal button with a new button to go to Step 2)

    Step 2 – Fill in a form, which once submitted will provide link to go to Step 3 (this is entirely outside this Plugin, except for linking to in from Step 1 and directing to Step 3)

    Step 3 – Review full cart (hopefully with new upsell items!) and show PayPal Payment Button (This functions with the default short code)

    what I have done is adjusted the widget so that it will direct to Page 1 instead of showing the PayPal button. I did this by copying the function print_wp_shopping_cart(), renaming it accordingly and then changing the bit in the widget call to call the modified function instead of the original function. Works well.

    Thought I could do the same with this, but it didn’t quite work – I think my problem is creating a new short code for this bit. I copied the function print_wp_shopping_cart() again and renamed it print_wp_shopping_cart_step_1, then I created a new print_wp_shopping_cart_step_1_handler fucntion and then copied the shortcode bit and amended accordingly, but it did not work. Surely this is an easy fix, I am probably just missing something… of course something crucial!

    Any help?

    July 29, 2010 at 1:50 am #22842
    amin007
    Participant

    Say for example your function name is the following:

    print_wp_shopping_cart_step_1()

    To display the content of this function using a shortcode add the following bit of code:

    add_shortcode('print_wp_shopping_cart_step_1', 'print_wp_shopping_cart_step_1_handler');
    function print_wp_shopping_cart_step_1_handler($atts)
    {
    return print_wp_shopping_cart_step_1();
    }

    Now, you can use the following shortcode to display it:

    [print_wp_shopping_cart_step_1]

    July 29, 2010 at 4:51 pm #22843
    roback
    Member

    Yep that did it! Perfectly!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ