Changeset 2515261
- Timestamp:
- 04/15/2021 01:16:13 AM (5 years ago)
- Location:
- sakura-network/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
sakura.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sakura-network/trunk/readme.txt
r2509200 r2515261 5 5 Tested up to: 5.6 6 6 Requires PHP: 7.0 7 Stable tag: 1.0. 67 Stable tag: 1.0.7 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 51 51 == Changelog == 52 52 53 = 1.0.7 - 2021-04-15 = 54 55 **Sakura network** 56 57 * new feature: record price and currency for an order. 58 59 53 60 = 1.0.6 - 2021-04-05 = 54 61 -
sakura-network/trunk/sakura.php
r2509200 r2515261 4 4 * Plugin URI: https://www.sakura.eco 5 5 * Description: An eCommerce toolkit that helps you show articles in a Sakura network. 6 * Version: 1.0. 66 * Version: 1.0.7 7 7 * Author: Sakura.eco 8 8 * Author URI: https://www.sakura.eco/ … … 51 51 * @var string 52 52 */ 53 public $version = '1.0. 6';53 public $version = '1.0.7'; 54 54 55 55 /** … … 67 67 */ 68 68 private function init_hooks() { 69 do_action('sakura_record_activity', 'Initialize hooks for sakura network'); 69 70 add_action( 'init', array( $this, 'init' ), 999 ); 70 71 add_action( 'init', array( $this, 'init_block' )); … … 195 196 do_action('sakura_record_activity', sprintf('notify sakura for new order: #%d', $order_id)); 196 197 foreach ($order->get_items() as $item_id => $item) { 197 $product = $item->get_product();198 $product = $item->get_product(); 198 199 $payload = array( 199 200 'event' => 'purchase', … … 201 202 'sakura-widget-key' => $sakura_widget_key, 202 203 'sku' => $product->get_sku(), 204 'total' => $item->get_total(), 205 'currency' => get_woocommerce_currency(), 203 206 'amount' => $item->get_quantity(), 204 207 'id' => $order_id, … … 444 447 $sakura_server = apply_filters('sakura_update_server_address', 'https://www.sakura.eco'); 445 448 $url = $sakura_server . '/widget/' . $sakura_widget_key; 449 450 $query_args = array(); 446 451 447 452 $history = SC()->sakura_history_in_cookie();
Note: See TracChangeset
for help on using the changeset viewer.