Skip to content

Commit

Permalink
PLUGINS-6936 removed legacy demo store using
Browse files Browse the repository at this point in the history
  • Loading branch information
meteor-ec committed Sep 10, 2024
1 parent b3ea293 commit 10dab04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
12 changes: 2 additions & 10 deletions ecwid-shopping-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -2164,26 +2164,18 @@ function ecwid_get_demo_store_id() {

$demo_stores = ecwid_get_demo_stores();

$locale = get_locale();

if ( strpos( $locale, 'ru' ) === 0 ) {
return $demo_stores['locale_ru'];
} else {
return $demo_stores['locale_other'];
}
return $demo_stores['locale_other'];
}

function ecwid_get_demo_stores() {
return $demo_stores = array(
return array(
'legacy' => 1003,
'locale_ru' => 13437191,
'locale_other' => 13433173
);
}

function ecwid_get_demo_store_public_key() {
$public_keys = array(
13437191 => 'public_LRaZBiDigZCMJquHkRWDpdAt4HPmb4zH',
13433173 => 'public_9EYLuZ15kfKEHdpsuKMsqp9MZ2Umxtcp'
);

Expand Down
7 changes: 0 additions & 7 deletions includes/class-ecwid-wp-dashboard-feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ public function dashboard_setup() {
$media_url = 'https://www.ecwid.com/wp-json/wp/v2/media/';
$images_cdn = 'https://web-cdn.ecwid.com/wp-content/uploads/';

$lang = ecwid_get_current_user_locale();
if ( $lang === 'ru_RU' ) {
$url = 'https://www.ecwid.ru/wp-json/wp/v2/posts?per_page=3&categories=1';
$media_url = 'https://www.ecwid.ru/wp-json/wp/v2/media/';
$images_cdn = 'https://web-cdn.ecwid.com/wp-content/uploads/ru/';
}

wp_enqueue_style( 'ecwid-dashboard-blog', ECWID_PLUGIN_URL . '/css/dashboard-blog.css', array(), get_option( 'ecwid_plugin_version' ) );

wp_enqueue_script( 'ecwid-dashboard-blog', ECWID_PLUGIN_URL . '/js/dashboard-blog.js', array( 'jquery' ), get_option( 'ecwid_plugin_version' ) );
Expand Down

0 comments on commit 10dab04

Please sign in to comment.