Plugin Directory

Changeset 2154149


Ignore:
Timestamp:
09/10/2019 12:06:38 PM (6 years ago)
Author:
premiumthemes
Message:

Releaseing new version with changes asked by WordPress

Location:
woo-to-facebook-shop/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • woo-to-facebook-shop/trunk/readme.txt

    r2152098 r2154149  
    1 === WooCommerce to Social Commerce ===
     1=== WooCommerce to Social Commerce ===
    22
    33Contributors: Premiumthemes
     
    1414== Description ==
    1515
    16 = WooCommerce to Social Commerce =
     16= Social Commerce for WooCommerce =
    1717
    1818[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  
    11<?php
    22 
    3 if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
    4     exit();
     3if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit();
    54        $wctofb_site_url = 'https://fbshop.premium-themes.co';
    65        // Delete fanpage and store from premium themes.co
  • woo-to-facebook-shop/trunk/wctofb.php

    r2113991 r2154149  
    11<?php
    22/*
    3 Plugin Name: Woocommerce to Facebook Shop
     3Plugin Name: Social Commerce for WooCommerce
    44Plugin URI: https://wordpress.org/plugins/woo-to-facebook-shop/
    55Description: 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.
    66Author: premiumthemes
    7 Version: 2.5.2
     7Version: 2.5.3
    88Author URI: https://www.premium-themes.co/
    99*/
    1010if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    11 define ('wctofb_version', '2.5.2');
     11define ('wctofb_version', '2.5.3');
    1212// Global Variables
    1313global $bulk_action;
     
    169169        <?php }
    170170        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>
    172172         <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>
    173173        <?php
    174174   
    175175    } 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>
    177177        <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>
    178178    <?php
    179179    }
    180180     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>
    182182        <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>
    183183    <?php
     
    248248        $settings = array(
    249249            'section_title' => array(
    250                 'name'     => __( 'Woocommerce to facebook shop', 'wctofb' ),
     250                'name'     => __( 'Social Commerce for WooCommerce', 'wctofb' ),
    251251                'type'     => 'title',
    252252                'desc'     => '',
  • woo-to-facebook-shop/trunk/wctofb_woocommerce_feeds.php

    r2020913 r2154149  
    11<?php
    22/*** wctofb_woocommerce_feeds.php ***/
     3if ( ! defined( 'ABSPATH' ) ) exit;
    34
    45    global $wctofb_site_url, $wpdb ,$post; $productids=array();
    56    define('DONOTCACHEPAGE', TRUE);
    67    set_time_limit (0);
    7     error_reporting(0);
    88    if(isset($_GET['productid'])){$singleproductid = (int)$_GET['productid'];}
    99    if(isset($_GET['productlimit'])){$productlimit = (int)$_GET['productlimit'];}else{$productlimit=1;}
     
    2929    $store_language =  get_locale();
    3030    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 );
    3232    if(empty($gettotalproduct)){
    3333    $store_url =  get_bloginfo('url'); 
     
    4545        }
    4646    }
    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 ));
    4848        while (have_posts()): the_post();
    4949            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.