whyisjake

Jake Spurlock

May 10th, 2010
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.38 KB | None | 0 0
  1. <? global $options; foreach ($options as $value) {
  2.     if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
  3. }
  4. ?>
  5.  
  6. <?php $price = get_post_custom_values("thestore_price"); ?>
  7. <?php $shipping = get_post_custom_values("thestore_shipping"); ?>
  8. <?php $another = get_post_custom_values("thestore_shipping2"); ?>
  9. <?php $display = get_post_custom_values("thestore_display"); ?>
  10.  
  11. <?php if $display == on {
  12.    
  13.  
  14.         <form method="post" action="https://www.paypal.com/cgi-bin/webscr" target="paypal">
  15.         <input type="hidden" name="cmd" value="_cart">
  16.         <input type="hidden" name="business" value="<?php echo $mama_paypal; ?>">
  17.         <input type="hidden" name="item_name" value="<?php the_title(); ?>">
  18.         <input type="hidden" name="item_number" value="<?php the_ID(); ?>">
  19.         <input type="hidden" name="amount" value="<?php echo $price[0]; ?>">
  20.         <input type="hidden" name="currency_code" value="USD">
  21.         <input type="hidden" name="shipping" value="<?php echo $shipping[0]; ?>">
  22.         <input type="hidden" name="shipping2" value="<?php echo $another[0]; ?>">
  23.         <input type="hidden" name="handling_cart" value="<?php echo $mama_handling; ?>">
  24.         <input type="hidden" name="bn"  value="ButtonFactory.PayPal.001">
  25.         <input type="image" name="add" src="http://www.powersellersunite.com/buttonfactory/sc-but-01.gif">
  26.         </form>
  27.        
  28.         }
  29. ?>
Add Comment
Please, Sign In to add comment