Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » Simple PayPal Shopping Cart » Simple Shopping Cart Tweaks

Creating a Review Page and checkout page

(3 posts) (2 voices)
  • Started 1 year ago by roback
  • Latest reply from roback
  • Possible Solutions (Related Topics):
    1. eMember - link to manual checkout page
    2. Add Ordered Information In Manual Checkout Thank You Page
    3. Having an issue once checkout page changed to SSL secure page
    4. Any way to show "Free Gift" on checkout page?
    5. Manual Checkout not redirecting to Thank-you page - debug results included

Tags:

No tags yet.

  1. roback

    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?

    Posted 1 year ago #
  2. amin007
    Key Master

    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]

    Posted 1 year ago #
  3. roback

    Yep that did it! Perfectly!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin