Changeset 2339538
- Timestamp:
- 07/13/2020 08:13:04 AM (6 years ago)
- Location:
- mobile-builder/trunk
- Files:
-
- 2 edited
-
api/class-mobile-builder-cart.php (modified) (2 diffs)
-
mobile-builder.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mobile-builder/trunk/api/class-mobile-builder-cart.php
r2337259 r2339538 299 299 $variation = $request->get_param( 'variation' ); 300 300 $cart_item_data = $request->get_param( 'cart_item_data' ); 301 $passed_validation = false; 302 303 $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity ); 301 302 $product_addons = array( 303 'quantity' => $quantity, 304 'add-to-cart' => $product_id, 305 ); 306 307 // Prepare data validate add-ons 308 foreach ($cart_item_data['addons'] as $addon ) { 309 $product_addons['addon-' . $addon['field_name']][] = $addon['value']; 310 } 311 312 $passed_validation = apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $product_addons ); 304 313 305 314 if ( $passed_validation ) { … … 315 324 ) ); 316 325 } 317 318 326 319 327 return WC()->cart->get_cart_item( $cart_item_key ); -
mobile-builder/trunk/mobile-builder.php
r2337260 r2339538 11 11 * Plugin URI: https://doc-oreo.rnlab.io 12 12 * Description: The most advanced drag & drop app builder. Create multi templates and app controls. 13 * Version: 1.0. 813 * Version: 1.0.9 14 14 * Author: Rnlab.io 15 15 * Author URI: https://rnlab.io
Note: See TracChangeset
for help on using the changeset viewer.