Guest User

Untitled

a guest
Aug 18th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. <?php
  2. /**
  3. * Loop Price
  4. *
  5. * @author WooThemes
  6. * @package WooCommerce/Templates
  7. * @version 1.6.4
  8. */
  9.  
  10. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
  11.  
  12. global $product;
  13. ?>
  14.  
  15. <?php if ( $price_html = $product->get_price_html() ) : ?>
  16. <span class="price"><?php echo $price_html; ?></span>
  17. <?php endif; ?>
  18.  
  19. <?php
  20. # start: modified by Arlind Nushi
  21. if( ! get_data('shop_add_to_cart_listing'))
  22. return;
  23. # end: modified by Arlind Nushi
  24. ?>
  25.  
  26. <?php if(is_catalog_mode()) return; ?>
  27. <style>.buy-button{font-size: 14px !important;} .buy-button:before {content:none;}</style>
  28.  
  29. <?php if($product->is_type('variable')): ?>
  30. <a class="add-to-cart-btn entypo-list-add buy-button" data-toggle="tooltip" data-placement="bottom" title="<?php _e('Select Options', TD); ?>" href="<?php echo $product->get_permalink(); ?>">BUY</a>
  31.  
  32. <?php elseif($product->is_type('grouped')): ?>
  33. <a class="add-to-cart-btn entypo-list-add buy-button" data-toggle="tooltip" data-placement="bottom" title="<?php _e('Select Products', TD); ?>" href="<?php echo $product->get_permalink(); ?>">BUY</a>
  34.  
  35. <?php elseif($product->is_type('external')): ?>
  36. <a class="add-to-cart-btn entypo-export buy-button" data-toggle="tooltip" data-placement="bottom" title="<?php echo $product->single_add_to_cart_text(); ?>" href="<?php echo $product->get_product_url(); ?>" target="_blank">BUY</a>
  37.  
  38. <?php else: ?>
  39. <a class="add-to-cart-btn add-to-cart glyphicon glyphicon-plus-sign buy-button" data-id="<?php echo $product->post->ID; ?>" data-toggle="tooltip" data-placement="bottom" title="<?php _e('Add to Cart', TD); ?>" href="#">
  40. <span class="glyphicon glyphicon-ok-sign"></span> BUY
  41. </a>
  42. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment