Advertisement
sterhel

wpsc-transaction_results.php

Jan 4th, 2012
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.89 KB | None | 0 0
  1. <?php
  2.     /**
  3.      * The Transaction Results Theme.
  4.      *
  5.      * Displays everything within transaction results.  Hopefully much more useable than the previous implementation.
  6.      *
  7.      * @package WPSC
  8.      * @since WPSC 3.8
  9.      */
  10.  
  11.     global $purchase_log, $errorcode, $sessionid, $echo_to_screen, $cart, $message_html;
  12. ?>
  13. <div class="wrap">
  14.  
  15. <?php
  16.     echo wpsc_transaction_theme();
  17.     if ( ( true === $echo_to_screen ) && ( $cart != null ) && ( $errorcode == 0 ) && ( $sessionid != null ) ) {        
  18.        
  19.         // Code to check whether transaction is processed, true if accepted false if pending or incomplete
  20.        
  21.        
  22.         echo "<br />" . wpautop(str_replace("$",'\$',$message_html));                      
  23.     }elseif ( true === $echo_to_screen && ( !isset($purchase_log) ) ) {
  24.             _e('Oops, there is nothing in your cart.', 'wpsc') . "<a href=".get_option("product_list_url").">" . __('Please visit our shop', 'wpsc') . "</a>";
  25.     }
  26. ?> 
  27.    
  28. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement