Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="wpsc_product_price">
- <?php if( wpsc_show_stock_availability() ): ?>
- <?php if(wpsc_product_has_stock()) : ?>
- <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="in_stock"><?php _e('Product in stock', 'wpsc'); ?></div>
- <?php else: ?>
- <div id="stock_display_<?php echo wpsc_the_product_id(); ?>" class="out_of_stock"><?php _e('Product not in stock', 'wpsc'); ?></div>
- <?php endif; ?>
- <?php endif; ?>
- <?php if(wpsc_product_is_donation()) : ?>
- <label for="donation_price_<?php echo wpsc_the_product_id(); ?>"><?php _e('Donation', 'wpsc'); ?>: </label>
- <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" />
- <?php else : ?>
- <?php if(wpsc_product_on_special()) : ?>
- <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>
- <?php endif; ?>
- <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>
- <hr />
- <?php if(wpsc_product_on_special()) : ?>
- <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>
- <?php endif; ?>
- <?php
- /*
- * generate the HTML always, just hide it if cart count is 0
- * then it will display when the page refreshes, and also you can
- * activate it easily from JavaScript
- * NB: replace "some-handle" with an ID that is meaningful to you!
- */
- ?>
- <span id="some-handle" style="<?php if (wpsc_cart_item_count() > 0) echo 'display:none;'; ?>">
- <a target="_parent" href="<?php echo get_option('shopping_cart_url'); ?>" title="<?php _e('Checkout', 'wpsc'); ?>" class="gocheckout_dyn"><?php _e('Checkout →', 'wpsc'); ?></a>
- </span>
- <!-- multi currency code -->
- <?php if(wpsc_product_has_multicurrency()) : ?>
- <?php echo wpsc_display_product_multicurrency(); ?>
- <?php endif; ?>
- <?php if(wpsc_show_pnp()) : ?>
- <p class="pricedisplay_postage"><?php _e('Postage', 'wpsc'); ?>: <span class="pp_price"><?php echo wpsc_product_postage_and_packaging(); ?></span></p>
- <?php endif; ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement