Skip to content

Commit

Permalink
Merge branch 'release/1.28.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon committed Jan 2, 2025
2 parents 8db566c + 2bf71ec commit d74453e
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 53 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
67 changes: 37 additions & 30 deletions Includes/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand Down
11 changes: 5 additions & 6 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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).
12 changes: 6 additions & 6 deletions assets/src/components/dashboard/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="site-card-wrapper sgsb-admin-dashboard">
Expand Down Expand Up @@ -94,7 +94,7 @@ const Overview = () => {
encounter. We're just an email away!
</p>
<a
href={baseUrlInvizo + links?.support}
href={baseUrlStoregrowth + links?.support}
target="_blank"
>
Contact Us
Expand Down Expand Up @@ -127,7 +127,7 @@ const Overview = () => {
</p>
<span className="feature-requests-submit-button">
<a
href={baseUrlInvizo + links?.featureRequest}
href={baseUrlStoregrowth + links?.featureRequest}
target="_blank"
>
Submit Request
Expand Down
2 changes: 1 addition & 1 deletion assets/src/components/initail-setup/Ready.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Ready = () => {
{__(`Youtube`, "storegrowth-sales-booster")}
</a>
<a
href="https://support.invizo.io/"
href="https://dokan.co/contact/"
target="_blank"
className="social-link get-support"
onClick={null}
Expand Down
2 changes: 1 addition & 1 deletion assets/src/components/modules/Modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function Modules() {
<div className="help-btn">
<Button
width="210px"
href="https://invizo.io/support/"
href="https://dokan.co/contact/"
target="_blank"
type="primary"
>
Expand Down
2 changes: 1 addition & 1 deletion assets/src/components/settings/HeadBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function HeadBar() {
<div className="help-btn">
<Button
width="210px"
href="https://invizo.io/support/"
href="https://dokan.co/contact/"
target="_blank"
type="primary"
>
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "invizo/storegrowth",
"name": "dokan/storegrowth-lite",
"autoload": {
"psr-4": {
"STOREGROWTH\\SPSB\\": "Includes/"
Expand All @@ -8,8 +8,8 @@
},
"authors": [
{
"name": "Invizo",
"email": "info@invizo.io"
"name": "Dokan Inc.",
"email": "support@dokan.co"
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "storegrowth-sales-booster",
"version": "1.28.12",
"version": "1.28.13",
"type": "module",
"description": "=== StoreGrowth - Sales Booster === Contributors: Invizo Tags: booster, sales booster, for woocommerce, fly cart, sales notification, upsell, order bump, cross sell, stock countdown, Quick View Requires at least: 5.4 Tested up to: 6.2.2 Stable tag: 1.0.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
"description": "=== StoreGrowth - Sales Booster === Contributors: Dokan Inc. Tags: booster, sales booster, for woocommerce, fly cart, sales notification, upsell, order bump, cross sell, stock countdown, Quick View Requires at least: 5.4 Tested up to: 6.2.2 Stable tag: 1.0.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
"main": "index.js",
"scripts": {
"start": "lerna run start",
Expand Down
6 changes: 3 additions & 3 deletions storegrowth-sales-booster.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* Plugin Name: StoreGrowth - Sales Booster For WooCommerce Lite
* Description: Best WooCommerce Direct Checkout, Fly Cart, BOGO, Quick View, Live Sales Notifications, Floating Notification Bar and More Essential Features for Every WooCommerce Site!
* Version: 1.28.12
* Author: Invizo
* Author URI: https://invizo.io/
* Version: 1.28.13
* Author: Dokan Inc.
* Author URI: https://storegrowth.io
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: storegrowth-sales-booster
Expand Down

0 comments on commit d74453e

Please sign in to comment.