diff --git a/classes/integrations/shareyourcart/class-wc-shareyourcart.php b/classes/integrations/shareyourcart/class-wc-shareyourcart.php index a4eaf32cc90..ec2ce651bed 100644 --- a/classes/integrations/shareyourcart/class-wc-shareyourcart.php +++ b/classes/integrations/shareyourcart/class-wc-shareyourcart.php @@ -17,7 +17,7 @@ class WC_ShareYourCart extends WC_Integration { public function __construct() { $this->id = 'shareyourcart'; $this->method_title = __( 'ShareYourCart', 'woocommerce' ); - $this->method_description = sprintf( __( 'Increase your social media exposure by 10 percent! ShareYourCart helps you get more customers by motivating satisfied customers to talk with their friends about your products. For help with ShareYourCart view the documentation.', 'woocommerce' ), 'http://www.woothemes.com/woocommerce-docs/user-guide/shareyourcart/' ); + $this->method_description = __( 'Increase your social media exposure by 10 percent! ShareYourCart helps you get more customers by motivating satisfied customers to talk with their friends about your products. For help with ShareYourCart view the documentation.', 'woocommerce' ); // Load the settings. $this->settings = ( array ) get_option( $this->plugin_id . $this->id . '_settings' ); //do not rely on the base implementation of init_settings diff --git a/classes/integrations/shareyourcart/class.shareyourcart-wp-woocommerce.php b/classes/integrations/shareyourcart/class.shareyourcart-wp-woocommerce.php index 61d6f6d5063..a35bd9a0f5d 100644 --- a/classes/integrations/shareyourcart/class.shareyourcart-wp-woocommerce.php +++ b/classes/integrations/shareyourcart/class.shareyourcart-wp-woocommerce.php @@ -105,7 +105,7 @@ class ShareYourCartWooCommerce extends ShareYourCartWordpressPlugin{ update_post_meta( $post_id, 'expiry_date', '' ); update_post_meta( $post_id, 'usage_limit', 1 ); update_post_meta( $post_id, 'exclude_product_ids', '' ); - update_post_meta( $post_id, 'product_ids', '' ); + update_post_meta( $post_id, 'product_ids', implode(',', $product_unique_ids)); update_post_meta( $post_id, 'individual_use', 'yes' ); update_post_meta( $post_id, 'coupon_amount', $coupon_value ); update_post_meta( $post_id, 'discount_type', $discount_type ); @@ -217,6 +217,7 @@ class ShareYourCartWooCommerce extends ShareYourCartWordpressPlugin{ "item_url" => get_permalink($product_id), "item_price" => $product->price, "item_picture_url" => $image, + "item_unique_id" => $product_id, ); } diff --git a/classes/integrations/shareyourcart/class.shareyourcart-wp.php b/classes/integrations/shareyourcart/class.shareyourcart-wp.php index 01d5ca4b711..32ee970fa2d 100644 --- a/classes/integrations/shareyourcart/class.shareyourcart-wp.php +++ b/classes/integrations/shareyourcart/class.shareyourcart-wp.php @@ -16,7 +16,7 @@ if(!class_exists('ShareYourCartWordpressPlugin',false)){ abstract class ShareYourCartWordpressPlugin extends ShareYourCartBase { protected static $_INSTANCES = array(); - protected static $_VERSION = 5; + protected static $_VERSION = 6; protected $_PLUGIN_PATH; /**