Results 1 to 2 of 2

Thread: Adding a "listing preview" step in checkout

  1. #1
    Thread Starter
    Expired Customer saschahuber's Avatar
    Join Date
    Nov 2017
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Adding a "listing preview" step in checkout

    Hi, i want to add a custom step in the checkout to let customers see a preview of their listing before placing the order.

    The tutorial "Adding a Step to Checkout" was very helpful so far but i can't find a solution to my problem.

    How can i add a button to get to the next step in the checkout?

    Thanks in advance!

    This is my custom class so far:

    class CustomCheckoutPreviewStep extends APP_Listing_Step {

    public function __construct( APP_Listing $listing, $step_id = 'preview-listing', $args = array() ) {

    $this->listing = $listing;

    $args = array(
    'register_to' => array(
    "{$this->listing->get_type()}-new" => array( 'after' => 'create-order' ),
    "{$this->listing->get_type()}-renew" => array( 'after' => 'create-order' ),
    ),
    );

    parent::__construct( $listing, $step_id, $args );
    }

    function display($order, $checkout) {
    //display preview
    }

    function process($order, $checkout) {
    //do something
    }
    }

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,982
    Thanks
    170
    Thanked 3,408 Times in 3,279 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: August 1st, 2016, 07:57 PM
  2. [SOLVED] Add a listing "next step" failing
    By ias95 in forum Report Vantage Bugs (Legacy)
    Replies: 5
    Last Post: April 21st, 2014, 12:50 PM
  3. Dimitris Create Listing --> Edit Listing Information "Next Step" Button MUST be clicked TWICE
    By reservestudydotorg in forum Report Vantage Bugs (Legacy)
    Replies: 5
    Last Post: February 11th, 2014, 09:13 PM
  4. Samcy "Review Your Listing" (Step 2) renders HTML in Description preview
    By almightyeric in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 2nd, 2013, 05:40 AM
  5. How to display "city" in ad listing preview (in category page)
    By ramystyle in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 28th, 2011, 06:05 AM