Changeset 2786898
- Timestamp:
- 09/19/2022 11:14:58 AM (4 years ago)
- Location:
- shelfy-mobile-commerce-platform
- Files:
-
- 42 added
- 3 edited
-
tags/1.0.3/assets/screenshot-1.jpg (added)
-
tags/1.0.3/assets/screenshot-2.jpg (added)
-
tags/1.0.3/assets/screenshot-3.jpg (added)
-
tags/1.0.3/assets/screenshot-4.jpg (added)
-
tags/1.0.3/assets/screenshot-5.jpg (added)
-
tags/1.0.4 (added)
-
tags/1.0.4/LICENSE.txt (added)
-
tags/1.0.4/README.txt (added)
-
tags/1.0.4/admin (added)
-
tags/1.0.4/admin/scripts (added)
-
tags/1.0.4/admin/scripts/plugins.js (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/Montserrat-Regular.ttf (added)
-
tags/1.0.4/assets/Montserrat-SemiBold.ttf (added)
-
tags/1.0.4/assets/icon-big.png (added)
-
tags/1.0.4/assets/icon-menu.png (added)
-
tags/1.0.4/assets/icon.png (added)
-
tags/1.0.4/assets/related.svg (added)
-
tags/1.0.4/assets/screenshot-1.jpg (added)
-
tags/1.0.4/assets/screenshot-2.jpg (added)
-
tags/1.0.4/assets/screenshot-3.jpg (added)
-
tags/1.0.4/assets/screenshot-4.jpg (added)
-
tags/1.0.4/assets/screenshot-5.jpg (added)
-
tags/1.0.4/assets/woocommerce-logo.png (added)
-
tags/1.0.4/changelog.txt (added)
-
tags/1.0.4/includes (added)
-
tags/1.0.4/includes/class-shelfy-cart-item-schema-ex.php (added)
-
tags/1.0.4/includes/class-shelfy.php (added)
-
tags/1.0.4/includes/controllers (added)
-
tags/1.0.4/includes/controllers/class-shelfy-cart-rest-api.php (added)
-
tags/1.0.4/includes/controllers/class-shelfy-cart-v2-rest-api.php (added)
-
tags/1.0.4/includes/controllers/class-shelfy-customer-rest-api.php (added)
-
tags/1.0.4/includes/controllers/class-shelfy-integration-rest-api.php (added)
-
tags/1.0.4/includes/webhooks (added)
-
tags/1.0.4/includes/webhooks/webhooks-category.php (added)
-
tags/1.0.4/shelfy.php (added)
-
tags/1.0.4/uninstall.php (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/assets/screenshot-1.jpg (added)
-
trunk/assets/screenshot-2.jpg (added)
-
trunk/assets/screenshot-3.jpg (added)
-
trunk/assets/screenshot-4.jpg (added)
-
trunk/assets/screenshot-5.jpg (added)
-
trunk/includes/controllers/class-shelfy-cart-rest-api.php (modified) (7 diffs)
-
trunk/shelfy.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shelfy-mobile-commerce-platform/trunk/README.txt
r2774890 r2786898 1 === Shelfy - Mobile App Builder - Dev===1 === Shelfy - Mobile App Builder === 2 2 Contributors: itziksn 3 3 Tags: woocommerce, mobile, application, android, ios 4 4 Requires at least: 5.8 5 5 Tested up to: 6.0 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
shelfy-mobile-commerce-platform/trunk/includes/controllers/class-shelfy-cart-rest-api.php
r2774890 r2786898 26 26 */ 27 27 private $api_base = 'cart'; 28 private static $user_id = 0; 28 29 29 30 /** … … 31 32 */ 32 33 public function __construct() { 34 Shelfy_Cart_Rest_Api::$user_id=get_current_user_id(); 33 35 add_action( 'rest_api_init', array( $this, 'shelfy_init_cart_rest_api' ) ); 34 36 add_filter( 'woocommerce_is_rest_api_request', array( $this, 'simulate_as_not_rest' ) ); … … 141 143 */ 142 144 public static function get_cart_response() { 145 wp_set_current_user(Shelfy_Cart_Rest_Api::$user_id); 143 146 /** 144 147 * The SchemaController … … 172 175 */ 173 176 public function empty_cart() { 177 wp_set_current_user(Shelfy_Cart_Rest_Api::$user_id); 174 178 WC()->cart->empty_cart(); 175 179 WC()->cart->calculate_totals(); … … 183 187 */ 184 188 public function batch_update_item_quantity( $request ) { 189 wp_set_current_user(Shelfy_Cart_Rest_Api::$user_id); 185 190 $requests = $request['products']; 186 191 $batch_response = array(); … … 209 214 */ 210 215 public function calculate_cart( $request ) { 216 wp_set_current_user(Shelfy_Cart_Rest_Api::$user_id); 211 217 $old_cart = clone WC()->cart; 212 218 $cart = WC()->cart; … … 240 246 */ 241 247 public function update_item_quantity( $request, $add_always = false ) { 248 wp_set_current_user(Shelfy_Cart_Rest_Api::$user_id); 242 249 $product_id = $request['productId']; 243 250 $variant_id = $request['variantId']; -
shelfy-mobile-commerce-platform/trunk/shelfy.php
r2774890 r2786898 7 7 * Plugin Name: Shelfy - Mobile App Builder - Dev 8 8 * Description: Build fast mobile apps that you control — no coding is required. 9 * Version: 1.0. 310 * Stable tag: 1.0. 39 * Version: 1.0.4 10 * Stable tag: 1.0.4 11 11 * WC requires at least: 5.0 12 12 * WC tested up to: 6.7 … … 24 24 } 25 25 26 define( 'SHELFY_VERSION', '1.0. 3' );26 define( 'SHELFY_VERSION', '1.0.4' ); 27 27 define( 'SHELFY_MAIN_PLUGIN_FILE', __FILE__ ); 28 28 define( 'SHELFY_REQUIRED_WOOCOMMERCE_VERSION', '5.8.0' );
Note: See TracChangeset
for help on using the changeset viewer.