Plugin Directory

Changeset 1794656


Ignore:
Timestamp:
12/30/2017 08:14:42 PM (8 years ago)
Author:
shopybot
Message:

code refactoring; bumped version

Location:
shopybot-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • shopybot-woocommerce/trunk/includes/class-wc-shopybot-export.php

    r1794653 r1794656  
    192192    final public function numberOffers() {
    193193        global $wpdb;
    194         $ids = $this->getIdsForExport();
     194        $ids = $this->getIdsQueryForExport();
    195195        $ids = implode(',', $ids->posts);
    196196       
     
    736736        global $wpdb;
    737737       
    738         $ids = $this->getIdsForExport();
     738        $ids = $this->getIdsQueryForExport();
    739739        $ids = implode(',', $ids->posts);
    740740       
     
    778778   
    779779   
    780     final public function getIdsForExport() {
     780    final public function getIdsQueryForExport() {
    781781       
    782782        $this->bread('Generate ids');
     
    792792       
    793793        foreach($relations as $tax => $terms) {
    794            
    795794            if(!empty($terms)) {
    796795               
     
    816815                    );
    817816                }
    818                
    819817            }
    820818        }
     
    826824        $variations_ids = $this->getVariationsIds();
    827825       
    828         $ids             = new WP_Query();
    829         $ids->posts      = array_merge($products_ids->posts, $variations_ids->posts);
    830         $ids->post_count = $products_ids->post_count + $variations_ids->post_count;
    831        
    832         return $ids;
     826        $ids_query             = new WP_Query();
     827        $ids_query->posts      = array_merge($products_ids->posts, $variations_ids->posts);
     828        $ids_query->post_count = $products_ids->post_count + $variations_ids->post_count;
     829       
     830        return $ids_query;
    833831    }
    834832   
     
    858856       
    859857        if($this->currentpage == 1) {
    860            
    861             $ids         = $this->getIdsForExport();
    862             $this->posts = $ids->posts;
     858            $ids_query   = $this->getIdsQueryForExport();
     859            $this->posts = $ids_query->posts;
    863860            update_option($this->id . '_get_ids', $this->posts);
    864861        }
  • shopybot-woocommerce/trunk/readme.txt

    r1794644 r1794656  
    44Requires at least: 3.9
    55Tested up to: 4.9.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GNU GENERAL PUBLIC LICENSE Version 3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    105105== Changelog ==
    106106
     107= 1.0.3 =
     108Code refactoring
     109
    107110= 1.0.2 =
    108111Fixed generating product param and multiple images
  • shopybot-woocommerce/trunk/shopybot-woocommerce.php

    r1794653 r1794656  
    1010 *
    1111 * @link              https://www.shopybot.com
    12  * @since             1.0.2
     12 * @since             1.0.3
    1313 * @package           Shopybot_Chatbot_Woocommerce
    1414 *
     
    1717 * Plugin URI:        https://www.shopybot.com/connect-bot/woocommerce
    1818 * Description:       Create Facebook Chatbot for your WooCommerce E-Store. Showcase with your products in the Facebook Messenger in a few clicks
    19  * Version:           1.0.2
     19 * Version:           1.0.3
    2020 * Author:            Shopybot
    2121 * Author URI:        https://www.shopybot.com
Note: See TracChangeset for help on using the changeset viewer.