Advertisement
tribulant

Hardcoded Shopping Cart Widget

May 28th, 2012
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement