Changeset 2154149
- Timestamp:
- 09/10/2019 12:06:38 PM (6 years ago)
- Location:
- woo-to-facebook-shop/trunk
- Files:
-
- 3 added
- 4 edited
-
images/Premium.jpg (added)
-
images/Pro.jpg (added)
-
images/Starter.jpg (added)
-
readme.txt (modified) (2 diffs)
-
uninstall.php (modified) (1 diff)
-
wctofb.php (modified) (3 diffs)
-
wctofb_woocommerce_feeds.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-to-facebook-shop/trunk/readme.txt
r2152098 r2154149 1 === WooCommerce to Social Commerce ===1 === WooCommerce to Social Commerce === 2 2 3 3 Contributors: Premiumthemes … … 14 14 == Description == 15 15 16 = WooCommerce to SocialCommerce =16 = Social Commerce for WooCommerce = 17 17 18 18 [Premium Themes](https://www.premium-themes.co) is a new startup for creating Bootstrap based HTML templates and wordpress themes. Additionally we have created this plugin for those who would like to pull all the woocommerce products to Facebook so quickly. [WooCommerce to Facebook shop](https://www.premium-themes.co/woocommerce-to-facebook-shop/) plugin allows you to easily sync your products from your woocommerce site to Facebook. It provides that you can sync or Unsync your products any time. There is no limitation how many sync you can do in a day, week or month. -
woo-to-facebook-shop/trunk/uninstall.php
r1855050 r2154149 1 1 <?php 2 2 3 if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) 4 exit(); 3 if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit(); 5 4 $wctofb_site_url = 'https://fbshop.premium-themes.co'; 6 5 // Delete fanpage and store from premium themes.co -
woo-to-facebook-shop/trunk/wctofb.php
r2113991 r2154149 1 1 <?php 2 2 /* 3 Plugin Name: Woocommerce to Facebook Shop3 Plugin Name: Social Commerce for WooCommerce 4 4 Plugin URI: https://wordpress.org/plugins/woo-to-facebook-shop/ 5 5 Description: Now you can start your facebook shop free. With WooCommerce to facebook shop plugin you can easily sync or unsync your products from your woocommerce website to your facebook fan page very quickly. No manual import or Export required everything in real time. 6 6 Author: premiumthemes 7 Version: 2.5. 27 Version: 2.5.3 8 8 Author URI: https://www.premium-themes.co/ 9 9 */ 10 10 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 11 define ('wctofb_version', '2.5. 2');11 define ('wctofb_version', '2.5.3'); 12 12 // Global Variables 13 13 global $bulk_action; … … 169 169 <?php } 170 170 if(esc_attr( get_option('wctofb_apikey_success')) == "1" ){ ?> 171 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src=" https://s3.amazonaws.com/premium-themes-co/plugin-assets/img/Starter.jpg"></a>';?></p>171 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src="'.plugins_url( "images/Starter.jpg", __FILE__).'"></a>';?></p> 172 172 <a href="<?php echo $wctofb_site_url;?>/my-account/fan-page?sync=now" target="_blank"><img src="<?php echo plugins_url( "images/button-sync.jpg", __FILE__ );?>" ></a> 173 173 <?php 174 174 175 175 } elseif(esc_attr( get_option('wctofb_apikey_success')) == "2" ){ ?> 176 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src=" https://s3.amazonaws.com/premium-themes-co/plugin-assets/img/Pro.jpg"></a>';?></p>176 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src="'.plugins_url( "images/Pro.jpg", __FILE__).'"></a>';?></p> 177 177 <a href="<?php echo $wctofb_site_url;?>/my-account/fan-page?sync=now" target="_blank"><img src="<?php echo plugins_url( "images/button-sync.jpg", __FILE__ );?>" ></a> 178 178 <?php 179 179 } 180 180 elseif(esc_attr( get_option('wctofb_apikey_success')) == "3" ){ ?> 181 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src=" https://s3.amazonaws.com/premium-themes-co/plugin-assets/img/Premium.jpg"></a>';?></p>181 <p><?php echo '<a href="'.esc_url( $wctofb_site_url.'/my-account/fan-page').'" title="Woocommerce to Facebook Shop" target="_blank"><img src="'.plugins_url( "images/Premium.jpg", __FILE__).'"></a>';?></p> 182 182 <a href="<?php echo $wctofb_site_url;?>/my-account/fan-page?sync=now" target="_blank"><img src="<?php echo plugins_url( "images/button-sync.jpg", __FILE__ );?>" ></a> 183 183 <?php … … 248 248 $settings = array( 249 249 'section_title' => array( 250 'name' => __( ' Woocommerce to facebook shop', 'wctofb' ),250 'name' => __( 'Social Commerce for WooCommerce', 'wctofb' ), 251 251 'type' => 'title', 252 252 'desc' => '', -
woo-to-facebook-shop/trunk/wctofb_woocommerce_feeds.php
r2020913 r2154149 1 1 <?php 2 2 /*** wctofb_woocommerce_feeds.php ***/ 3 if ( ! defined( 'ABSPATH' ) ) exit; 3 4 4 5 global $wctofb_site_url, $wpdb ,$post; $productids=array(); 5 6 define('DONOTCACHEPAGE', TRUE); 6 7 set_time_limit (0); 7 error_reporting(0);8 8 if(isset($_GET['productid'])){$singleproductid = (int)$_GET['productid'];} 9 9 if(isset($_GET['productlimit'])){$productlimit = (int)$_GET['productlimit'];}else{$productlimit=1;} … … 29 29 $store_language = get_locale(); 30 30 global $post; 31 $gettotalproduct = $wpdb->get_results( "SELECT product_id FROM $table_name", ARRAY_A );31 $gettotalproduct = $wpdb->get_results( "SELECT product_id FROM $table_name", ARRAY_A ); 32 32 if(empty($gettotalproduct)){ 33 33 $store_url = get_bloginfo('url'); … … 45 45 } 46 46 } 47 $my_query = query_posts(array('post__in' => $productids ,'post_type'=> 'product', 'post_status' => 'publish','order'=>'ASC' ));47 $my_query = query_posts(array('post__in' => $productids ,'post_type'=> 'product', 'post_status' => 'publish','order'=>'ASC','posts_per_page' => -1 )); 48 48 while (have_posts()): the_post(); 49 49 global $product; $attributes=$allattributes=$allvariations=$product_stock_status=$productrawvariations=$producttype=$childproductsids=$cat_name=$allimages=$product_sku=$product_stock_quantity=$product_stock_manage=$product_stock_backorders=$product_stock_sold_individually=$product_weight=$product_length=$product_height=$product_width=$regularprice=$saleprice=$product_long_description=$product_short_description=$product_detail_link=$product_title=$product_id='';
Note: See TracChangeset
for help on using the changeset viewer.