Can I skip the thank you page for free products?

Discussion in 'aMember Pro v.4' started by bennyuk1, Dec 17, 2012.

  1. bennyuk1

    bennyuk1 aMember Pro Customer

    Joined:
    Jan 12, 2012
    Messages:
    200
    I have some "products/memberships" that users can purchase and some "memberships" that have to be manually reviewed. The majority of the products can be bought straight offf and dont need manual intervention

    If I have a membership that is "free" but I want them to apply first and be manually approved, can somehow skip the "thanyou" page that says theyve paid zero amount.?

    Basically, is a product is free can I skip the zero payment details on the thankyou page?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Edit /amember/application/default/views/thanks.phtml template and change this line:
    PHP:
    <?php include $this->_script('_receipt.phtml'); ?>
    to
    PHP:
    <?php 
    if(doubleval($invoice->first_total) || doubleval($invoice->second_total))
    include 
    $this->_script('_receipt.phtml'); 

    ?>

Share This Page