diff --git a/CHANGELOG.md b/CHANGELOG.md index 7066038c..9d43d567 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 1.28.8 ( April 23, 2024 ) ### + +- **fix:** Countdown timer script issue. +- **enhance:** Added variable product support for upsell order bump. + ### 1.27.8 ( April 17, 2024 ) ### - **fix:** order bump offer price diff --git a/Includes/Ajax.php b/Includes/Ajax.php index aee392cf..f39b524e 100644 --- a/Includes/Ajax.php +++ b/Includes/Ajax.php @@ -24,14 +24,14 @@ class Ajax { use Singleton; /** - * Invizo Insights Version + * Insights Version */ const INVZ_VERSION = '1.0.0'; /** * API URL */ - const API_URL = 'https://invizo.io/wp-json/invizo-insights/v1/save-data'; + const API_URL = '#'; /** * Installed Plugin File @@ -229,38 +229,45 @@ public function sgsb_process_user_concent_data() { $user_details = $post_data->user_details; if ( ! $update_news && ! $user_details ) { - return; + return; } $data_to_send = $this->sgsb_collect_non_sensitive_data(); - $request_args = array( - 'body' => wp_json_encode( $data_to_send ), - 'headers' => array( - 'Content-Type' => 'application/json', - ), - 'timeout' => 30, - 'redirection' => 5, - 'blocking' => true, - 'httpversion' => '1.0', - 'sslverify' => true, - 'data_format' => 'body', - ); - - $response = wp_remote_post( self::API_URL, $request_args ); - - if ( is_wp_error( $response ) ) { - $error_message = $response->get_error_message(); - return new WP_Error( 'api_error', $error_message ); - } else { - $response_code = wp_remote_retrieve_response_code( $response ); - if ( $response_code === 200 ) { - $response_body = wp_remote_retrieve_body( $response ); - return $response_body; - } else { - return new WP_Error( 'api_error', 'API returned unexpected response code: ' . $response_code ); - } - } + $request_args = [ + 'data_to_send' => $data_to_send, + 'body' => wp_json_encode( $data_to_send ), + 'headers' => [ + 'Content-Type' => 'application/json', + ], + 'timeout' => 30, + 'redirection' => 5, + 'blocking' => true, + 'httpversion' => '1.0', + 'sslverify' => true, + 'data_format' => 'body', + ]; + + $old_data = get_option( 'sgsb_user_consent_data', [] ); + array_push( $old_data, $request_args ); + update_option( 'sgsb_user_consent_data', $old_data ); + +// TODO: we can use this code to send data to different server in future. + +// $response = wp_remote_post( self::API_URL, $request_args ); +// +// if ( is_wp_error( $response ) ) { +// $error_message = $response->get_error_message(); +// return new WP_Error( 'api_error', $error_message ); +// } else { +// $response_code = wp_remote_retrieve_response_code( $response ); +// if ( $response_code === 200 ) { +// $response_body = wp_remote_retrieve_body( $response ); +// return $response_body; +// } else { +// return new WP_Error( 'api_error', 'API returned unexpected response code: ' . $response_code ); +// } +// } wp_send_json_success( array( 'message' => 'Success message' ) ); wp_die(); diff --git a/README.txt b/README.txt index 5b2c7af3..73abafa9 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Tags: woocommerce direct checkout, sales notification, Fly Cart, Upsell, Sales C Requires at least: 5.4 Tested up to: 6.7.1 -Stable tag: 1.28.12 +Stable tag: 1.28.13 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -267,6 +267,10 @@ StoreGrowth floating notification bar displays ongoing offers and discounts whil == Changelog == += 1.28.13 ( Jan 02, 2025 ) = + +- **update:** Url related information updated. + = 1.28.12 ( Jan 02, 2025 ) = - **update:** Organization, brand information and contributors updated. @@ -279,9 +283,4 @@ StoreGrowth floating notification bar displays ongoing offers and discounts whil - **fix:** Paypal checkout button issue. -= 1.28.8 ( April 23, 2024 ) = - -- **fix:** Countdown timer script issue. -- **enhance:** Added variable product support for upsell order bump. - [CHECK THE FULL CHANGELOG](https://github.com/getdokan/storegrowth-sales-booster/blob/develop/CHANGELOG.md). diff --git a/assets/src/components/dashboard/Overview.js b/assets/src/components/dashboard/Overview.js index 471ad5d2..4df52333 100644 --- a/assets/src/components/dashboard/Overview.js +++ b/assets/src/components/dashboard/Overview.js @@ -13,11 +13,11 @@ import { __ } from "@wordpress/i18n"; const Overview = () => { const baseUrlStore = "https://storegrowth.io"; - const baseUrlInvizo = "https://"; + const baseUrlStoregrowth = "https://"; const links = { - doc: "/documentation", - featureRequest: "support.invizo.io", - support: "support.invizo.io", + doc: "/docs", + featureRequest: "dokan.co/contact", + support: "dokan.co/contact", }; return (