Advertisement
Guest User

Untitled

a guest
Apr 10th, 2012
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. <div class="wpsc_product_price">
  2. <?php if( wpsc_show_stock_availability() ): ?>
  3. <?php if(wpsc_product_has_stock()) : ?>
  4. <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="in_stock"><?php _e('Product in stock', 'wpsc'); ?></div>
  5. <?php else: ?>
  6. <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="out_of_stock"><?php _e('Product not in stock', 'wpsc'); ?></div>
  7. <?php endif; ?>
  8. <?php endif; ?>
  9. <?php if(wpsc_product_is_donation()) : ?>
  10. <label for="donation_price_<?php echo wpsc_the_product_id(); ?>"><?php _e('Donation', 'wpsc'); ?>: </label>
  11. <input type="text" id="donation_price_<?php echo wpsc_the_product_id(); ?>" name="donation_price" value="<?php echo wpsc_calculate_price(wpsc_the_product_id()); ?>" size="6" />
  12.  
  13. <?php else : ?>
  14. <?php if(wpsc_product_on_special()) : ?>
  15. <p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e('Offer Price', 'wpsc'); ?>: <span class="oldprice" id="old_product_price_<?php echo wpsc_the_product_id(); ?>"><?php echo wpsc_product_normal_price(); ?></span></p>
  16. <?php endif; ?>
  17. <p class="pricedisplay product_<?php echo wpsc_the_product_id(); ?>"><?php _e('', 'wpsc'); ?> <span id='product_price_<?php echo wpsc_the_product_id(); ?>' class="currentprice pricedisplay"><?php echo wpsc_the_product_price(); ?></span></p>
  18. <hr />
  19. <?php if(wpsc_product_on_special()) : ?>
  20. <p class="pricedisplay_yousave product_<?php echo wpsc_the_product_id(); ?>"><?php _e('Save', 'wpsc'); ?>: <span class="yousave" id="yousave_<?php echo wpsc_the_product_id(); ?>"><?php echo wpsc_currency_display(wpsc_you_save('type=amount'), array('html' => false)); ?> (<?php echo wpsc_you_save(); ?>%)</span></p>
  21. <?php endif; ?>
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. <?php
  29. /*
  30. * generate the HTML always, just hide it if cart count is 0
  31. * then it will display when the page refreshes, and also you can
  32. * activate it easily from JavaScript
  33. * NB: replace "some-handle" with an ID that is meaningful to you!
  34. */
  35. ?>
  36. <span id="some-handle" style="<?php if (wpsc_cart_item_count() > 0) echo 'display:none;'; ?>">
  37. <a target="_parent" href="<?php echo get_option('shopping_cart_url'); ?>" title="<?php _e('Checkout', 'wpsc'); ?>" class="gocheckout_dyn"><?php _e('Checkout &rarr;', 'wpsc'); ?></a>
  38. </span>
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. <!-- multi currency code -->
  47. <?php if(wpsc_product_has_multicurrency()) : ?>
  48. <?php echo wpsc_display_product_multicurrency(); ?>
  49. <?php endif; ?>
  50.  
  51. <?php if(wpsc_show_pnp()) : ?>
  52. <p class="pricedisplay_postage"><?php _e('Postage', 'wpsc'); ?>: <span class="pp_price"><?php echo wpsc_product_postage_and_packaging(); ?></span></p>
  53. <?php endif; ?>
  54. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement