Changeset 2220716
- Timestamp:
- 01/02/2020 01:27:03 AM (6 years ago)
- Location:
- shopybot-woocommerce/trunk
- Files:
-
- 5 edited
-
includes/class-wc-shopybot-export.php (modified) (2 diffs)
-
includes/class-wc-shopybot-integration.php (modified) (3 diffs)
-
license.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
shopybot-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopybot-woocommerce/trunk/includes/class-wc-shopybot-export.php
r2220712 r2220716 335 335 */ 336 336 final public function setOfferParams($product) { 337 338 337 $terms = wp_get_post_terms($product->get_id(), 'product_cat'); 339 338 … … 910 909 } 911 910 912 913 911 public function ajaxUpdateOffers() { 914 912 if($_POST['unlock'] == 'yes') { -
shopybot-woocommerce/trunk/includes/class-wc-shopybot-integration.php
r2220712 r2220716 39 39 40 40 // Actions. 41 // Admin options, look in parent abstract class 41 42 add_action('woocommerce_update_options_integration_' . $this->id, array($this, 'process_admin_options')); 42 43 add_action('wp_ajax_generate_export_url', array($this, 'generate_export_url')); … … 54 55 } 55 56 56 public function wc_auto_checkout($data) { 57 if (!isset($_GET[$this->auto_checkout_param])) { 58 return true; 59 } 60 61 $product_id = $_GET[$this->auto_checkout_param]; 62 WC()->cart->add_to_cart($product_id); 63 64 wp_redirect(wc_get_checkout_url()); 57 public function wc_auto_checkout() { 58 if (isset($_GET[$this->auto_checkout_param])) { 59 $product_id = $_GET[$this->auto_checkout_param]; 60 WC()->cart->add_to_cart($product_id); 61 62 wp_redirect(wc_get_checkout_url()); 63 } 65 64 } 66 65 … … 430 429 */ 431 430 public function display_errors() { 432 433 431 // loop through each error and display it 434 432 foreach($this->errors as $key => $value) { 435 ?>436 <div class="error">437 <p><?php _e('Looks like you made a mistake with the ' . $value . ' field. Make sure it isn't longer than 20 characters', 'shopybot-woocommerce'); ?></p>438 </div>439 <?php433 ?> 434 <div class="error"> 435 <p><?php _e('Looks like you made a mistake with the ' . $value . ' field. Make sure it isn't longer than 20 characters', 'shopybot-woocommerce'); ?></p> 436 </div> 437 <?php 440 438 } 441 439 } -
shopybot-woocommerce/trunk/license.txt
r1720404 r2220716 1 Shopy bot - Chatbot for E-Commerce for WordPress1 ShopyBot - Facebook Chatbot for your WooCommerce 2 2 3 3 Copyright 2015 by the contributors -
shopybot-woocommerce/trunk/readme.txt
r2220712 r2220716 1 === ShopyBot - ChatBot for WooCommerce ===1 === ShopyBot - Facebook Chatbot for your WooCommerce === 2 2 Contributors: ShopyBot.com 3 3 Tags: bot, e-commerce, chat-bot, chatbot, messenger, facebook, woocommerce, integration, ShopyBot, ai, machine learning, artificial intelligence 4 4 Requires at least: 3.9 5 5 Tested up to: 5.3.2 6 Stable tag: 1.0. 86 Stable tag: 1.0.9 7 7 License: GNU GENERAL PUBLIC LICENSE Version 3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 100 100 == Changelog == 101 101 102 = 1.0.9 = 103 1. fixed empty products error 104 2. fixed screenshots 105 3. added auto checkout from chatbot 106 4. updated readme.txt 107 102 108 = 1.0.8 = 103 109 Plugin description changed -
shopybot-woocommerce/trunk/shopybot-woocommerce.php
r2005414 r2220716 2 2 3 3 /** 4 * Shopybot WooCommerce - Facebook Chatbot for your E-Store4 * Shopybot - Facebook Chatbot for your WooCommerce 5 5 * 6 6 * This file is read by WordPress to generate the plugin information in the plugin … … 10 10 * 11 11 * @link https://www.shopybot.com 12 * @since 1.0. 813 * @package Shopybot_ Chatbot_Woocommerce12 * @since 1.0.9 13 * @package Shopybot_Woocommerce 14 14 * 15 15 * @wordpress-plugin 16 * Plugin Name: Shopy bot - Facebook Chatbot for WooCommerce16 * Plugin Name: ShopyBot - Facebook Chatbot for WooCommerce 17 17 * Plugin URI: https://www.shopybot.com/connect-bot/woocommerce 18 * Description: Easy Facebook chatbot for your WooCommerce Online Shop19 * Version: 1.0. 820 * Author: Shopy bot18 * Description: Easy way to sell your products in Facebook Messenger 19 * Version: 1.0.9 20 * Author: ShopyBot 21 21 * Author URI: https://www.shopybot.com 22 22 * License: GPL-2.0+
Note: See TracChangeset
for help on using the changeset viewer.