/** * Constructor * * @access public * @return void */ function __construct() { global $woocommerce_auctions; $this->id = 'auction_win'; $this->title = __('Auction Win', 'wc_simple_auctions'); $this->description = __('Auction won emails are sent when a user wins the auction.', 'wc_simple_auctions'); $this->template_html = 'emails/auction_win.php'; $this->template_plain = 'emails/plain/auction_win.php'; $this->template_base = $woocommerce_auctions->plugin_path . 'templates/'; $this->subject = __('Auction won on {blogname}', 'wc_simple_auctions'); $this->heading = __('You have won the auction!', 'wc_simple_auctions'); $this->checkout_url = simple_auction_get_checkout_url(); // Triggers //die(); add_action('woocommerce_simple_auction_won_notification', array($this, 'trigger')); // Call parent constructor parent::__construct(); }
/** * Constructor * * @access public * @return void */ function __construct() { global $woocommerce_auctions; $this->id = 'auction_buy_now'; $this->title = __('Auction Buy Now', 'wc_simple_auctions'); $this->description = __('Auction buy now emails are sent to winning bidder when someone buys the item for the buy now price.', 'wc_simple_auctions'); $this->template_html = 'emails/auction_buy_now.php'; $this->template_plain = 'emails/plain/auction_buy_now.php'; $this->template_base = $woocommerce_auctions->plugin_path . 'templates/'; $this->subject = __('Item sold on {blogname}', 'wc_simple_auctions'); $this->heading = __('Item sold for buy now price', 'wc_simple_auctions'); $this->checkout_url = simple_auction_get_checkout_url(); // Triggers //die(); add_action('woocommerce_simple_auction_close_buynow_notification', array($this, 'trigger')); // Call parent constructor parent::__construct(); }
/** * Constructor * * @access public * @return void */ function __construct() { global $woocommerce_auctions; $this->id = 'auction_relist_user'; $this->title = __('Auction relist user notice', 'wc_simple_auctions'); $this->description = __('Auction relist user emails are sent to wining user when auction is relisted.', 'wc_simple_auctions'); $this->template_html = 'emails/auction_relist_user.php'; $this->template_plain = 'emails/plain/auction_relist_user.php'; $this->template_base = $woocommerce_auctions->plugin_path . 'templates/'; $this->subject = __('Auction Relisted on {blogname}', 'wc_simple_auctions'); $this->heading = __('Auction Relist Notification', 'wc_simple_auctions'); $this->checkout_url = simple_auction_get_checkout_url(); // Triggers //die(); add_action('woocomerce_before_relist_not_paid_auction_notification', array($this, 'trigger')); // Call parent constructor parent::__construct(); }
/** * Constructor * * @access public * @return void */ function __construct() { global $woocommerce_auctions; $this->id = 'remind_to_pay'; $this->title = __('Reminder to Pay', 'wc_simple_auctions'); $this->description = __('Reminder for the customer that won the auction to pay.', 'wc_simple_auctions'); $this->template_html = 'emails/auction_remind_to_pay.php'; $this->template_plain = 'emails/plain/auction_remind_to_pay.php'; $this->template_base = $woocommerce_auctions->plugin_path . 'templates/'; $this->subject = __('Payment reminder won on {blogname}', 'wc_simple_auctions'); $this->heading = __('Reminder for you to pay the auction that you won.', 'wc_simple_auctions'); $this->interval = '7'; $this->stopsending = '5'; $this->checkout_url = simple_auction_get_checkout_url(); // Triggers //die(); add_action('woocommerce_simple_auction_pay_reminder_notification', array($this, 'trigger')); // Call parent constructor parent::__construct(); }
<?php /** * Loop Add to Cart * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly global $product; $user_id = get_current_user_id(); if ($user_id == $product->auction_current_bider && $product->auction_closed == '2' && !$product->auction_payed) { ?> <a href="<?php echo apply_filters('woocommerce_simple_auction_pay_now_button', esc_attr(add_query_arg("pay-auction", $product->id, simple_auction_get_checkout_url()))); ?> " class="button"><?php _e('Pay Now', 'wc_simple_auctions'); ?> </a> <?php }