Changeset 1794656
- Timestamp:
- 12/30/2017 08:14:42 PM (8 years ago)
- Location:
- shopybot-woocommerce/trunk
- Files:
-
- 3 edited
-
includes/class-wc-shopybot-export.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
shopybot-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopybot-woocommerce/trunk/includes/class-wc-shopybot-export.php
r1794653 r1794656 192 192 final public function numberOffers() { 193 193 global $wpdb; 194 $ids = $this->getIds ForExport();194 $ids = $this->getIdsQueryForExport(); 195 195 $ids = implode(',', $ids->posts); 196 196 … … 736 736 global $wpdb; 737 737 738 $ids = $this->getIds ForExport();738 $ids = $this->getIdsQueryForExport(); 739 739 $ids = implode(',', $ids->posts); 740 740 … … 778 778 779 779 780 final public function getIds ForExport() {780 final public function getIdsQueryForExport() { 781 781 782 782 $this->bread('Generate ids'); … … 792 792 793 793 foreach($relations as $tax => $terms) { 794 795 794 if(!empty($terms)) { 796 795 … … 816 815 ); 817 816 } 818 819 817 } 820 818 } … … 826 824 $variations_ids = $this->getVariationsIds(); 827 825 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; 833 831 } 834 832 … … 858 856 859 857 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; 863 860 update_option($this->id . '_get_ids', $this->posts); 864 861 } -
shopybot-woocommerce/trunk/readme.txt
r1794644 r1794656 4 4 Requires at least: 3.9 5 5 Tested up to: 4.9.1 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GNU GENERAL PUBLIC LICENSE Version 3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 105 105 == Changelog == 106 106 107 = 1.0.3 = 108 Code refactoring 109 107 110 = 1.0.2 = 108 111 Fixed generating product param and multiple images -
shopybot-woocommerce/trunk/shopybot-woocommerce.php
r1794653 r1794656 10 10 * 11 11 * @link https://www.shopybot.com 12 * @since 1.0. 212 * @since 1.0.3 13 13 * @package Shopybot_Chatbot_Woocommerce 14 14 * … … 17 17 * Plugin URI: https://www.shopybot.com/connect-bot/woocommerce 18 18 * 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. 219 * Version: 1.0.3 20 20 * Author: Shopybot 21 21 * Author URI: https://www.shopybot.com
Note: See TracChangeset
for help on using the changeset viewer.