Changeset 3087853
- Timestamp:
- 05/16/2024 02:26:52 PM (23 months ago)
- Location:
- ocasa-ecommerce/trunk
- Files:
-
- 5 edited
-
changelog.md (modified) (1 diff)
-
ocasa-woo.php (modified) (3 diffs)
-
src/api/class-ocasa-woo-api.php (modified) (1 diff)
-
src/orders/class-actions.php (modified) (1 diff)
-
src/panel/class-main.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ocasa-ecommerce/trunk/changelog.md
r3012481 r3087853 1 1 # Changelog 2 * (1 3 abr 2023) Init v1.0.02 * (16 may 2024) Init v1.0.3 -
ocasa-ecommerce/trunk/ocasa-woo.php
r3010017 r3087853 3 3 * Plugin Name: Ocasa para WooCommerce 4 4 * Description: Método de Envío de WooCommerce para Ocasa. 5 * Version: 1.0. 05 * Version: 1.0.3 6 6 * Requires PHP: 7.0 7 7 * Author: Conexa … … 29 29 class OcasaWoo { 30 30 31 const VERSION = '1.0. 0';31 const VERSION = '1.0.3'; 32 32 const PLUGIN_NAME = 'ocasawoo'; 33 33 const MAIN_FILE = __FILE__; … … 240 240 } 241 241 } ); 242 243 244 /** 245 * Custom function to declare compatibility with cart_checkout_blocks feature 246 */ 247 function ocasa_declare_cart_checkout_blocks_compatibility() { 248 // Check if the required class exists 249 if (class_exists('\Automattic\WooCommerce\Utilities\FeaturesUtil')) { 250 // Declare compatibility for 'cart_checkout_blocks' 251 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('cart_checkout_blocks', __FILE__, true); 252 } 253 } 254 // Hook the custom function to the 'before_woocommerce_init' action 255 add_action('before_woocommerce_init', 'ocasa_declare_cart_checkout_blocks_compatibility'); 242 256 } -
ocasa-ecommerce/trunk/src/api/class-ocasa-woo-api.php
r3012481 r3087853 16 16 17 17 const API_BASE_URL = 'https://ocasa-woocommerce-api.conexa.ai'; 18 // const API_BASE_URL = 'https://ocasa-woocommerce-api-stage.conexa.ai';18 //const API_BASE_URL = 'https://ocasa-woocommerce-api-stage.conexa.ai'; 19 19 20 20 /** -
ocasa-ecommerce/trunk/src/orders/class-actions.php
r3010017 r3087853 68 68 if ( 'ocasawoo' === $shipping_method->get_method_id() ) { 69 69 $actions['wc_ocasa_send_to_panel'] = __( 'Ocasa - Enviar a Panel', 'ocasawootextdomain' ); 70 return $actions;71 70 } 72 return false;71 return $actions; 73 72 74 73 } -
ocasa-ecommerce/trunk/src/panel/class-main.php
r3012481 r3087853 62 62 $data['token'] = $res['token']; 63 63 $data['url'] = ( $res['userOnboard'] ) ? 'https://ocasa-woocommerce.conexa.ai/woocommerce/panel/orders?userId=' . $data['token'] : 'https://ocasa-woocommerce.conexa.ai/woocommerce/onboarding?userId=' . $data['token']; 64 // $data['url'] = ( $res['userOnboard'] ) ? 'https://ocasa-integrations-frontend.vercel.app/woocommerce/panel/orders?userId=' . $data['token'] : 'https://ocasa-integrations-frontend.vercel.app/woocommerce/onboarding?userId=' . $data['token'];64 //$data['url'] = ( $res['userOnboard'] ) ? 'https://ocasa-woocommerce-stage.conexa.ai/woocommerce/panel/orders?userId=' . $data['token'] : 'https://ocasa-woocommerce-stage.conexa.ai/woocommerce/onboarding?userId=' . $data['token']; 65 65 helper::get_template_part( 'panel', 'content', $data ); 66 66 return true;
Note: See TracChangeset
for help on using the changeset viewer.