SHARE
TWEET

Hardcoded Shopping Cart Widget

tribulant May 28th, 2012 265 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if (class_exists('wpCheckout')) {
  4.     // Initialize an object of the class
  5.     $wpCheckout = new wpCheckout();
  6.  
  7.     //parameters for the widget (see details below)
  8.     $parameters = array(
  9.         'show' => "normal",
  10.         'hide_when_empty' => 0,
  11.         'enablecoupons' => "N",
  12.         'shlink' => "N",
  13.     );
  14.  
  15.     // Output the shopping cart widget
  16.     // Use 'show' => "minimal" to display just the total
  17.     $wpCheckout -> widget('cart', $parameters);
  18. }
  19.  
  20. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top