Plugin Directory

Changeset 2276958


Ignore:
Timestamp:
04/06/2020 08:02:14 AM (6 years ago)
Author:
premiumthemes
Message:

releasing version 2.5.3.1

Location:
woo-to-facebook-shop/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • woo-to-facebook-shop/trunk/css/wctofb_setting.css

    r2100176 r2276958  
    1 /* Version 2.5.1 */
     1/* Version 2.5.4 */
     2
    23#product_sync,.product_sync.column-product_sync{width: 40px;}
     4
    35.wctofb_product_sync { border: medium none; cursor: pointer;  padding: 0;}
  • woo-to-facebook-shop/trunk/index.php

    r1851608 r2276958  
    11<?php
     2
    23if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     4
    35/** Just sitting silent **/
  • woo-to-facebook-shop/trunk/license.txt

    r2155447 r2276958  
    1 Social Commerce for WooCommerce
     1WooCommerce to facebook shop
    22
    33Copyright 2017 by the contributors
     
    2020permission notices:
    2121
    22 Social Commerce for WooCommerce is created by premiumthemes
    23 Social Commerce for WooCommerce is released by premiumthemes under the GPL v2 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html> or later.
     22WooCommerce to facebook shop is created by premiumthemes
     23WooCommerce to facebook shop is released by premiumthemes under the GPL v2 <https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html> or later.
    2424
    2525=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  • woo-to-facebook-shop/trunk/readme.txt

    r2155447 r2276958  
    55Tags: Facebook, ecommerce, Facebook store, Facebook shop, import, woocommerce, woo-commerce, wp-commerce, Facebook marketing, Online Sales, Social commerce, Twitter, G+, google, google plus, comments, Social campaigns, wordpress Woocommerce, share, blog, plugin, product sharing, network shop
    66Requires at least: 3.3.1
    7 Tested up to: 5.1
     7Tested up to: 5.4
    88Stable tag: 4.3
    99License: GPLv2 or later
     
    112112
    113113== Changelog ==
     114
     115= 2.5.3.1 =
     116* Fix variable product attribute issue.
     117* Fix variable product description issue.
     118* Support latest version of WooCommerce 4.0.1.
     119* Fix bulk sync/unsync not work properly.
     120* Fix auto sync deleted product issue.
     121
     122
     123= 2.5.3 =
     124* minor bug fixes.
     125* Support latest version of WooCommerce.
    114126
    115127= 2.5.2 =
  • woo-to-facebook-shop/trunk/uninstall.php

    r2155447 r2276958  
    11<?php
    2  
    32if( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit();
    4     // Delete table and option when plugin delete
    5     global $wpdb;
    6     $table_name = $wpdb->prefix . 'wctofb';
    7     $sql = "DROP TABLE IF EXISTS $table_name";
    8     $wpdb->query($sql);
    9     delete_option('wctofb_api');
    10     delete_option('wctofb_apikey_success');
    11     delete_option('wctofb_runonce');
    12     delete_option('wctofb_pg_version');
     3        $wctofb_site_url = 'https://fbshop.premium-themes.co';
     4        // remove user fanpage and store from premium themes.co as user uninstall the plugin
     5        $wctofb_api = esc_attr(get_option('wctofb_api'));
     6        if(!empty($wctofb_api)){
     7        $jsondata = array("apikey"=>$wctofb_api,"action"=>"delete");
     8        $sendjson = json_encode($jsondata);
     9        $url = $wctofb_site_url."/apicalls/wp/plugin_delete";
     10        $apisucces = wp_remote_post( $url, array(
     11        'headers' => array( 'Content-Type' => 'application/json' ),
     12        'method' => 'POST',
     13        'timeout' => 200,
     14        'redirection' => 5,
     15        'httpversion' => '1.0',
     16        'blocking' => true,
     17        'sslverify'=> true,
     18        'body' => $sendjson,
     19        'cookies' => array()) );
     20        }
     21        $apiresponse = $apisucces['body'];
     22        $apimessage = json_decode($apiresponse);
     23        $apimessage = (int)$apimessage->{'message'};
     24        // Delete table and option when plugin delete
     25        global $wpdb;
     26        $table_name = $wpdb->prefix . 'wctofb';
     27        $sql = "DROP TABLE IF EXISTS $table_name";
     28        $wpdb->query($sql);
     29        delete_option('wctofb_api');
     30        delete_option('wctofb_apikey_success');
     31        delete_option('wctofb_runonce');
     32        delete_option('wctofb_pg_version');
  • woo-to-facebook-shop/trunk/wctofb.php

    r2155447 r2276958  
    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.3
     7Version: 2.5.4
    88Author URI: https://www.premium-themes.co/
     9WC requires at least: 2.0.0
     10WC tested up to: 4.0.1
    911*/
    1012if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    11 define ('wctofb_version', '2.5.3');
     13define ('wctofb_version', '2.5.4');
    1214// Global Variables
    1315global $bulk_action;
     
    1517$wctofb_register = 'https://www.premium-themes.co';
    1618$wctofb_site_url = 'https://fbshop.premium-themes.co';
    17 
    1819/****** Stop plugin activation untill woocommerce is not activated ******/
    1920add_action( 'admin_init', 'wctofb_child_plugin_has_parent_plugin' );
     
    2627    }
    2728}
    28 
    2929/****** Check WooCommerce installed and Active so WCtoFB plugin could get installed ******/
    3030function wctofb_woocommerce_exists() {
     
    3333    if (!$run_once){ // for very first installation.?>
    3434    <div class="notice notice-info "><p>
    35     <?php _e( '<strong>Social Commerce for WooCommerce</strong>: plugin has been activated. The Installed version is '.wctofb_version, 'WCtoFB' ); update_option( "wctofb_pg_version", wctofb_version );?>
     35    <?php _e( '<strong>Woocommerce to Facebook Shop</strong>: plugin has been activated. The Installed version is '.wctofb_version, 'WCtoFB' ); update_option( "wctofb_pg_version", wctofb_version );?>
    3636    </p></div>
    3737    <?php update_option('wctofb_runonce',true);
     
    4444    // WooCommerce is not yet installed. ?>
    4545    <div class="notice notice-error is-dismissible"><p>
    46     <?php _e('<strong>Social Commerce for WooCommerce</strong>: required plugin WooCommerce is Missing. <a href="'. esc_url( network_admin_url('plugin-install.php?s=WooCommerce&tab=search' ) ) .'" title="Install WooCommerce">Click here</a> to Install &amp; Activate.', 'WCtoFB' );?>
     46    <?php _e('<strong>Woocommerce to Facebook Shop</strong>: required plugin WooCommerce is Missing. <a href="'. esc_url( network_admin_url('plugin-install.php?s=WooCommerce&tab=search' ) ) .'" title="Install WooCommerce">Click here</a> to Install &amp; Activate.', 'WCtoFB' );?>
    4747    </p></div>
    4848    <?php }
    4949}
    5050add_action( 'admin_notices', 'wctofb_woocommerce_exists' );
    51 
    5251/****** Integrate settings links on plugin page on activation ******/
    5352if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))){
     
    6261}
    6362}
    64 
    6563/****** Create option when plugin install ******/
    6664function wctofb_install(){
     
    8482    }
    8583register_activation_hook(__FILE__,'wctofb_install');
    86 
    8784function wctofb_recurrence_interval( $schedules ) {
    8885 
     
    9592}
    9693add_filter( 'cron_schedules', 'wctofb_recurrence_interval' );
    97 
    9894function wctofbcronstarter_activation() {
    9995    if( !wp_next_scheduled( 'wctofbcronjob' ) ) { 
     
    10399}
    104100register_activation_hook(__FILE__, 'wctofbcronstarter_activation');
    105 
    106101function wctofb_repeat_function() {
    107102    global $wpdb; global $post;
     
    131126}
    132127add_action ('wctofbcronjob', 'wctofb_repeat_function');
    133 
    134128/****** Create WCtoFB tab under woocommerce setting  ******/
    135129if( is_admin() && ! empty ( $_SERVER['PHP_SELF'] ) && 'upload.php' !== basename( $_SERVER['PHP_SELF'] ) ) {
     
    165159        ?>
    166160        <div class="notice notice-error is-dismissible first_time"><p>
    167         <?php _e( 'Please <a href="' . esc_url( $wctofb_register.'/setup-wizard/' ) . '" title="Social Commerce for WooCommerce" target="_blank">Register here</a> to obtain your API key &amp; enable the Facebook Shop.', 'wctofb' );?>
     161        <?php _e( 'Please <a href="' . esc_url( $wctofb_register.'/setup-wizard/' ) . '" title="Woocommerce to Facebook Shop" target="_blank">Register here</a> to obtain your API key &amp; enable the Facebook Shop.', 'wctofb' );?>
    168162        </p></div>
    169163        <?php }
    170164        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="Social Commerce for WooCommerce" target="_blank"><img src="'.plugins_url( "images/Starter.jpg", __FILE__).'"></a>';?></p>
     165        <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>
    172166         <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>
    173167        <?php
    174168   
    175169    } 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="Social Commerce for WooCommerce" target="_blank"><img src="'.plugins_url( "images/Pro.jpg", __FILE__).'"></a>';?></p>
     170        <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>
    177171        <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>
    178172    <?php
    179173    }
    180174     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="Social Commerce for WooCommerce" target="_blank"><img src="'.plugins_url( "images/Premium.jpg", __FILE__).'"></a>';?></p>
     175        <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>
    182176        <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>
    183177    <?php
     
    235229            <?php }elseif ($wctofb_apikey_success == "5" ){ ?>
    236230                <div class="updated notice is-dismissible"><p>
    237                 <?php _e('API key activate successfully. <a href="' . esc_url( $wctofb_site_url.'/my-account/fan-page' ) . '" title="Social Commerce for WooCommerce" target="_blank">Click here</a> to complete the process.', 'wctofb' ); ?>
     231                <?php _e('API key activate successfully. <a href="' . esc_url( $wctofb_site_url.'/my-account/fan-page' ) . '" title="Woocommerce to Facebook Shop" target="_blank">Click here</a> to complete the process.', 'wctofb' ); ?>
    238232                </p></div>
    239233            <?php }elseif ($wctofb_apikey_success == "" ){ ?>
    240234                    <div class="notice notice-error is-dismissible"><p>
    241                     <?php _e( 'Please <a href="' . esc_url( $wctofb_site_url.'/my-account/' ) . '" title="Social Commerce for WooCommerce" target="_blank">Register here</a> to obtain your API key &amp; enable the Facebook Shop plugin.', 'wctofb' );?>
     235                    <?php _e( 'Please <a href="' . esc_url( $wctofb_site_url.'/my-account/' ) . '" title="Woocommerce to Facebook Shop" target="_blank">Register here</a> to obtain your API key &amp; enable the Facebook Shop plugin.', 'wctofb' );?>
    242236                    </p></div> 
    243237                    <?php } 
     
    268262WC_Settings_Tab_Wctofb::wctofb_init();
    269263}
    270 
    271264/****** plugin css ******/
    272265function load_wctofb_wp_admin_style($hook) {
     
    274267}
    275268add_action( 'admin_enqueue_scripts', 'load_wctofb_wp_admin_style' );
    276 
    277 
    278269/****** Action for json generate and send product on facebook******/
    279270add_action( 'init', function(){
    280271    global $wp_rewrite;
    281     add_rewrite_endpoint('woocommerce_wctofb_feeds',array(EP_PERMALINK, EP_PAGES));
    282     add_rewrite_endpoint( 'woocommerce_wctofb_feeds', EP_ALL );
     272    add_rewrite_endpoint('woocommerce_wctofb_feeds',array(EP_PERMALINK, EP_PAGES),true);
     273    add_rewrite_endpoint( 'woocommerce_wctofb_feeds', EP_ALL ,true);
    283274    $wp_rewrite->flush_rules();
    284275} );
     
    290281    }
    291282});
    292 
    293283add_filter( 'request', function($vars=array()){
    294284    if(isset ( $vars['woocommerce_wctofb_feeds'] ) && empty ( $vars['woocommerce_wctofb_feeds'] )){
     
    297287    return $vars;
    298288});
    299 
    300 
    301289/****** Action for show sync or unsync columns head in admin ******/
    302290function wctofb_products_extra_columns($columns){
     
    318306add_filter("manage_edit-product_columns", "wctofb_products_extra_columns");
    319307}
    320 
    321308/****** Show sync or unsync in front of each product in admin ******/
    322309function wctofb_products_extra_columns_content($column){
     
    353340add_action("manage_posts_custom_column",  "wctofb_products_extra_columns_content");
    354341}
    355 
    356342/****** Sync and Unsync add on product bulk action ******/
    357343if(esc_attr( get_option('wctofb_apikey_success')) =="1" || esc_attr( get_option('wctofb_apikey_success')) =="2" || esc_attr( get_option('wctofb_apikey_success')) =="3"){
     
    387373    }
    388374}
    389 
    390 
    391375add_action('load-edit.php', 'wctofb_facebook_bulk_action');
    392376function wctofb_facebook_bulk_action() {
     
    432416                if(($product->is_type( 'simple' ) || $product->is_type( 'external' )) && $product->get_regular_price()!='' && $poststatus=='publish' && $bulk_action == 'sync'){
    433417                array_push($syncarray,$product_id);
    434                 $results_check = $wpdb->get_results( "SELECT  * FROM $table_name WHERE product_id='$product_id'", OBJECT );
    435                 if(count($results_check) == 0){
    436                 $wpdb->insert( $table_name, array( 'product_id' => esc_sql($product_id),'product_status' => 'sync'));
    437                 }
    438                 else{
    439                 $wpdb->update( $table_name, array( 'product_status' => 'sync'),array( 'product_id' => esc_sql($product_id)) ); 
    440                 }
    441418                }
    442419                elseif($product->is_type( 'variable' ) && $product->get_variation_regular_price('min',true)!='' && $poststatus=='publish' && $bulk_action == 'sync' ){
    443420                array_push($syncarray,$product_id);
    444                 $results_check = $wpdb->get_results( "SELECT  * FROM $table_name WHERE product_id='$product_id'", OBJECT );
    445                 if(count($results_check) == 0){
    446                 $wpdb->insert( $table_name, array( 'product_id' => esc_sql($product_id),'product_status' => 'sync'));
    447                 }
    448                 else{
    449                 $wpdb->update( $table_name, array( 'product_status' => 'sync'),array( 'product_id' => esc_sql($product_id)) ); 
    450                 }
    451421                }
    452422                elseif($product->is_type( 'grouped' ) && $poststatus=='publish' && $bulk_action == 'sync' ){
    453423                array_push($syncarray,$product_id);
    454                 $results_check = $wpdb->get_results( "SELECT  * FROM $table_name WHERE product_id='$product_id'", OBJECT );
    455                 if(count($results_check) == 0){
    456                 $wpdb->insert( $table_name, array( 'product_id' => esc_sql($product_id),'product_status' => 'sync'));
    457                 }
    458                 else{
    459                 $wpdb->update( $table_name, array( 'product_status' => 'sync'),array( 'product_id' => esc_sql($product_id)) ); 
    460                 }
    461424                }
    462425                elseif(($product->is_type( 'simple' ) || $product->is_type( 'external' ) || $product->is_type( 'variable' )|| $product->is_type( 'grouped' )) && $bulk_action == 'unsync'){
    463                     $unsyncarray[] = array('product_id'=>$product_id);
    464                     $wpdb->update( $table_name, array( 'product_status' => 'unsync'),array( 'product_id' => esc_sql($product_id)) );
     426                    array_push($unsyncarray,$product_id);
    465427                }
    466428            }
     
    476438            if ($bulk_action == 'unsync' || $bulk_action == 'sync'){
    477439                if ( $response == 'success' ) {
     440                if(!empty($syncarray)){
     441                    foreach($syncarray as $syncsingle){
     442                        $results_check = $wpdb->get_results("SELECT * FROM $table_name WHERE product_id='$syncsingle'", OBJECT );
     443                        if(count($results_check) == 0){
     444                        $wpdb->insert( $table_name, array( 'product_id' => esc_sql($syncsingle),'product_status' => 'sync'));
     445                        }
     446                        else{
     447                        $wpdb->update( $table_name, array( 'product_status' => 'sync'),array( 'product_id' => esc_sql($syncsingle)) ); 
     448                        }
     449                    }
     450                }
     451                if(!empty($unsyncarray)){
     452                    foreach($unsyncarray as $unsyncsingle){
     453                        $wpdb->update($table_name,array('product_status'=>'unsync'),array('product_id'=>esc_sql($unsyncsingle)));
     454                    }
     455                }
    478456                 setcookie( "singleproductupdate",'success');
    479457                }else{
     
    533511}
    534512add_action('wp_trash_post', 'wctofb_trash_function');
    535 
    536513/****** Remove product from facebook shop on product move to draft, pending, private, schedule, publish ******/
    537514function wctofb_func_Save( $post_id ) {
     
    609586add_action( 'save_post', 'wctofb_func_Save', 10);
    610587add_action( 'wp_insert_post' , 'wctofb_func_Save' , '99', 2 );
    611 
    612588/****** Action for json generate and send product on facebook******/
    613589function wctofb_sync_button_action($jsonaction,$productsarray){
     
    703679                $allimages[] = array("srcurl"=>wp_get_attachment_url( $attachment_id ),"isthumb"=>"0","islarge"=>"0","isgallery"=>"1","isvariation"=>"0",'variation_id'=>"0");
    704680                }
    705 
    706681                }
    707682               
     
    849824                $product_short_description = preg_replace("/\[(.*?)\]/i",'',apply_filters( 'the_excerpt', get_the_excerpt()));
    850825                $product_long_description = preg_replace("/\[(.*?)\]/i", '', apply_filters( 'the_content', get_the_content()));
    851                 $product_long_description = preg_replace("/\[(.*?)\]/i", '', get_the_content());
    852826                $featured_image_small = wp_get_attachment_image_src( get_post_thumbnail_id($product_id), 'medium', false, '' );
    853827                $featured_image_large = wp_get_attachment_image_src( get_post_thumbnail_id($product_id), 'full', false, '' );
     
    936910    return $apimessage;
    937911}
    938 
    939912/****** auto update the api status******/
    940913function wctofb_updatestatus_func( WP_REST_Request $request ) {
     
    978951  ) );
    979952}
    980 
    981953/****** auto update product status when product delete on facebook******/
    982954function wctofb_updateproductdeletestatus_func( WP_REST_Request $request ) {
     
    1020992  ) );
    1021993}
    1022 
    1023994/****** Run a process update plugin data ******/
    1024995function wctofb_update_db_check() {
  • woo-to-facebook-shop/trunk/wctofb_woocommerce_feeds.php

    r2154149 r2276958  
    22/*** wctofb_woocommerce_feeds.php ***/
    33if ( ! defined( 'ABSPATH' ) ) exit;
    4 
    54    global $wctofb_site_url, $wpdb ,$post; $productids=array();
    65    define('DONOTCACHEPAGE', TRUE);
     
    3635    exit();
    3736    }
    38     $productid_results = $wpdb->get_results( "SELECT  product_id FROM $table_name WHERE sync_status='0' AND (product_status='sync' OR product_status='unsync') LIMIT $productlimit", ARRAY_A );
     37    $productid_results = $wpdb->get_results( "SELECT product_id FROM $table_name WHERE sync_status='0' AND (product_status='sync' OR product_status='unsync') LIMIT $productlimit", ARRAY_A );
    3938    if(!empty($productid_results)){
    4039    if(!empty($singleproductid)){
     
    4645    }
    4746        $my_query = query_posts(array('post__in' => $productids ,'post_type'=> 'product', 'post_status' => 'publish','order'=>'ASC','posts_per_page' => -1 ));
     47        if ( have_posts() ) :
    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='';
     
    116116                $allimages[] = array("srcurl"=>wp_get_attachment_url( $attachment_id ),"isthumb"=>"0","islarge"=>"0","isgallery"=>"1","isvariation"=>"0",'variation_id'=>"0");
    117117                }
    118 
    119118                }
    120119               
     
    138137                }   
    139138                }
    140                 if(empty($singleproductid)){
     139                if(empty($singleproductid) && !isset($_SERVER['HTTP_COOKIE'])){
    141140                $wpdb->update( $table_name, array( 'product_status' => 'sync','sync_status'=>'1'),array( 'product_id' => esc_sql($product_id)) );
    142141                }
     
    214213               }
    215214                $regularprice = min(array_filter($child_prices));
    216                 if(empty($singleproductid)){
     215                if(empty($singleproductid) && !isset($_SERVER['HTTP_COOKIE'])){
    217216                $wpdb->update( $table_name, array( 'product_status' => 'sync','sync_status'=>'1'),array( 'product_id' => esc_sql($product_id)) );
    218217                }
     
    321320                $productrawvariations['variation_dropdown']= array();
    322321                array_push($productrawvariations['variation_dropdown'],$attributes);
    323                 if(empty($singleproductid)){
     322                if(empty($singleproductid) && !isset($_SERVER['HTTP_COOKIE'])){
    324323            $wpdb->update( $table_name, array( 'product_status' => 'sync','sync_status'=>'1'),array( 'product_id' => esc_sql($product_id)) );   
    325324                }
     
    328327            $sendstoreproducts[] = array('product_id'=> $product_id,'product_sku'=>htmlspecialchars($product_sku),'product_title'=> htmlspecialchars($product_title),'product_short_description'=> htmlspecialchars($product_short_description),'product_long_description'=> htmlspecialchars($product_long_description),'regularprice'=> $regularprice,'saleprice'=> $saleprice,'product_detail_link'=> $product_detail_link,'allimages'=> $allimages,'productrawvariations'=>$productrawvariations, 'cat_name'=> $cat_name, 'product_stock_status'=>$product_stock_status,'product_stock_manage'=>$product_stock_manage,'product_stock_quantity'=>$product_stock_quantity,'product_stock_backorders'=>$product_stock_backorders,'product_stock_sold_individually'=>$product_stock_sold_individually,'product_weight'=>$product_weight,'product_length'=>$product_length,'product_height'=>$product_height,'product_width'=>$product_width,'producttype'=>$producttype,'groupedproduct_ids'=>$childproductsids);}
    329328    endwhile;
     329    else:
     330    foreach($productids as $removedproid){
     331        $wpdb->delete( $table_name, array( 'product_id' => $removedproid ) );
     332    }
     333    endif;
    330334    $jsondata = array("action"=>"Store Feed","products"=>$sendstoreproducts,'store_url'=>$store_url,'cartpage_url'=>$cartpage_url,"store_currency"=>$store_currency,"store_weight_unit"=>esc_attr( get_option('woocommerce_weight_unit' ) ),"store_dimension_unit"=>esc_attr( get_option('woocommerce_dimension_unit')),"store_language"=>$store_language,"apikey"=>"verified");
    331335       
Note: See TracChangeset for help on using the changeset viewer.