Plugin Directory

Changeset 3137594


Ignore:
Timestamp:
08/19/2024 12:10:36 PM (20 months ago)
Author:
Ecwid
Message:

Update to version 6.12.18 from GitHub

Location:
ecwid-shopping-cart
Files:
2 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ecwid-shopping-cart/tags/6.12.18/css/frontend.css

    r2825702 r3137594  
    105105    content: '';
    106106}
     107
     108#dynamic-ec-store-container,
     109#static-ec-store-container {
     110    margin-top: 0 !important;
     111}
  • ecwid-shopping-cart/tags/6.12.18/ecwid-shopping-cart.php

    r3131402 r3137594  
    66Text Domain: ecwid-shopping-cart
    77Author: Ecwid Ecommerce
    8 Version: 6.12.17
     8Version: 6.12.18
    99Author URI: https://ecwid.to/ecwid-site
    1010License: GPLv2 or later
     
    210210        'sg-cachepress/sg-cachepress.php' => 'sg-optimizer',
    211211        'google-sitemap-generator/sitemap.php' => 'google-sitemap-generator',
     212        'jetpack/jetpack.php' => 'jetpack',
    212213    );
    213214
  • ecwid-shopping-cart/tags/6.12.18/includes/class-ecwid-config.php

    r3093942 r3137594  
    22
    33class Ecwid_Config {
    4     const IS_WL            = 'whitelabel_is_enabled';
    5     const BRAND            = 'whitelabel_brand';
    6     const KB_URL           = 'whitelabel_kb_url';
    7     const CONTACT_US_URL   = 'whitelabel_contact_us_url';
    8     const REGISTRATION_URL = 'whitelabel_registration_url';
    9     const CHANNEL_ID       = 'whitelabel_channel_id';
    10     const OAUTH_APPID      = 'whitelabel_oauth_appid';
    11     const OAUTH_APPSECRET  = 'whitelabel_oauth_appsecret';
    12     const OAUTH_TOKEN_URL  = 'whitelabel_oauth_token_url';
    13     const OAUTH_AUTH_URL   = 'whitelabel_oauth_auth_url';
    14     const TOKEN            = 'config_token';
    15     const STORE_ID         = 'config_store_id';
    16     const API_DOMAIN       = 'config_api_domain';
    17     const FRONTEND_DOMAIN  = 'config_frontend_domain';
    18     const CPANEL_DOMAIN    = 'config_cpanel_domain';
    19     const DEMO_STORE_ID    = 'config_demo_store_id';
     4    const IS_WL                   = 'whitelabel_is_enabled';
     5    const BRAND                   = 'whitelabel_brand';
     6    const KB_URL                  = 'whitelabel_kb_url';
     7    const CONTACT_US_URL          = 'whitelabel_contact_us_url';
     8    const REGISTRATION_URL        = 'whitelabel_registration_url';
     9    const CHANNEL_ID              = 'whitelabel_channel_id';
     10    const OAUTH_APPID             = 'whitelabel_oauth_appid';
     11    const OAUTH_APPSECRET         = 'whitelabel_oauth_appsecret';
     12    const OAUTH_TOKEN_URL         = 'whitelabel_oauth_token_url';
     13    const OAUTH_AUTH_URL          = 'whitelabel_oauth_auth_url';
     14    const TOKEN                   = 'config_token';
     15    const STORE_ID                = 'config_store_id';
     16    const API_DOMAIN              = 'config_api_domain';
     17    const STATIC_PAGES_API_DOMAIN = 'config_static_pages_api_domain';
     18    const FRONTEND_DOMAIN         = 'config_frontend_domain';
     19    const CPANEL_DOMAIN           = 'config_cpanel_domain';
     20    const DEMO_STORE_ID           = 'config_demo_store_id';
    2021
    2122    public static function is_wl() {
     
    8586    public static function get_api_domain() {
    8687        return EcwidPlatform::get( self::API_DOMAIN, 'app.ecwid.com' );
     88    }
     89
     90    public static function get_static_pages_api_domain() {
     91        return EcwidPlatform::get( self::STATIC_PAGES_API_DOMAIN, 'storefront.ecwid.com' );
    8792    }
    8893
     
    172177    protected static function _get_common_config() {
    173178        $common_config = array(
    174             self::OAUTH_APPID     => 'oauth_appid',
    175             self::OAUTH_APPSECRET => 'oauth_appsecret',
    176             self::TOKEN           => 'oauth_token',
    177             self::STORE_ID        => 'store_id',
    178             self::CHANNEL_ID      => 'channel_id',
    179             self::API_DOMAIN      => 'api_domain',
    180             self::FRONTEND_DOMAIN => 'scriptjs_domain',
    181             self::CPANEL_DOMAIN   => 'cp_domain',
    182             self::DEMO_STORE_ID   => 'demo_store_id',
     179            self::OAUTH_APPID             => 'oauth_appid',
     180            self::OAUTH_APPSECRET         => 'oauth_appsecret',
     181            self::TOKEN                   => 'oauth_token',
     182            self::STORE_ID                => 'store_id',
     183            self::CHANNEL_ID              => 'channel_id',
     184            self::API_DOMAIN              => 'api_domain',
     185            self::STATIC_PAGES_API_DOMAIN => 'static_pages_api_domain',
     186            self::FRONTEND_DOMAIN         => 'scriptjs_domain',
     187            self::CPANEL_DOMAIN           => 'cp_domain',
     188            self::DEMO_STORE_ID           => 'demo_store_id',
    183189        );
    184190
  • ecwid-shopping-cart/tags/6.12.18/includes/class-ecwid-products.php

    r2825702 r3137594  
    9797
    9898        $join .= 'LEFT JOIN ' . $wpdb->postmeta . ' ' . self::DB_ALIAS_OUT_OF_STOCK
    99                  . ' ON ' . $wpdb->posts . '.id = ' . self::DB_ALIAS_OUT_OF_STOCK . '.post_id'
    100                  . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_key="in_stock"'
    101                  . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_value=1';
     99                . ' ON ' . $wpdb->posts . '.id = ' . self::DB_ALIAS_OUT_OF_STOCK . '.post_id'
     100                . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_key="in_stock"'
     101                . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_value=1';
    102102
    103103        return $join;
     
    326326
    327327        if ( ! $settings || $settings['one_at_a_time'] && ! $did_something ) {
    328 
    329328            $did_something = $this->_process_products( $settings );
    330329        }
    331330
    332331        if ( ! $settings || $settings['one_at_a_time'] && ! $did_something ) {
    333 
    334332            $this->_status->update_last_sync_time( time() );
    335333
     
    411409
    412410        while ( ! $over ) {
    413 
    414411            $this->_status_event(
    415412                array(
     
    552549
    553550        while ( ! $over ) {
    554 
    555551            $this->_status_event(
    556552                array(
  • ecwid-shopping-cart/tags/6.12.18/includes/class-ecwid-seo-links.php

    r3116030 r3137594  
    339339
    340340            $post = get_post( $page_id );
     341
    341342            if ( ! $post ) {
    342343                continue;
    343344            }
    344             if ( ! in_array( $post->post_type, array( 'page', 'post' ) ) ) {
     345
     346            $default_post_types = array( 'page', 'post' );
     347            $allowed_post_types = apply_filters( 'ecwid_seo_allowed_post_types', $default_post_types );
     348
     349            if ( ! in_array( $post->post_type, $allowed_post_types ) ) {
    345350                continue;
    346351            }
     
    359364
    360365                foreach ( $patterns as $pattern ) {
    361                     $additional_rules[ $link . '/' . $pattern . '.*' ] = 'index.php?' . $param_name . '=' . $link_page_id;
     366                    $query = 'index.php?' . $param_name . '=' . $link_page_id;
     367
     368                    // adding post_type parameters for non-default types
     369                    if ( ! in_array( $post->post_type, $default_post_types ) ) {
     370                        $query .= '&post_type=' . $post->post_type;
     371                    }
     372
     373                    $additional_rules[ $link . '/' . $pattern . '.*' ] = $query;
    362374                }
    363             }
     375            }//end foreach
    364376        }//end foreach
    365377
  • ecwid-shopping-cart/tags/6.12.18/includes/class-ecwid-static-page.php

    r3116030 r3137594  
    1010
    1111    const HANDLE_STATIC_PAGE = 'static-page';
    12     const API_URL            = 'https://storefront.ecwid.com/';
    1312
    1413    protected static $cache_key;
     
    6968        }
    7069
    71         $url  = self::API_URL;
     70        $url  = 'https://' . Ecwid_Config::get_static_pages_api_domain() . '/';
    7271        $url .= sprintf( '%s-page/', $params['mode'] );
    7372        $url .= sprintf( '%s/', get_ecwid_store_id() );
  • ecwid-shopping-cart/tags/6.12.18/includes/shortcodes/class-ecwid-shortcode-productbrowser.php

    r3110860 r3137594  
    5959        }
    6060
     61        $code .= self::get_dynamic_html_code( $is_default_render, $classname );
     62
    6163        $code .= '<div id="static-ec-store-container">';
    6264        $code .= htmlspecialchars_decode( Ecwid_Static_Page::get_html_code() );
     
    6769        }
    6870        $code .= '</div>';
    69 
    70         $code .= self::get_dynamic_html_code( $is_default_render, $classname );
    7171
    7272        $force_dynamic_js_code = 'if( typeof window.ec.storefront.staticPages != "undefined" && typeof window.ec.storefront.staticPages.forceDynamicLoadingIfRequired != "undefined" ) {
  • ecwid-shopping-cart/tags/6.12.18/readme.txt

    r3131402 r3137594  
    66Requires at least: 4.4
    77Tested up to: 6.6
    8 Stable tag: 6.12.17
     8Stable tag: 6.12.18
    99
    1010Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
     
    154154
    155155== Changelog ==
     156= 6.12.18 - Aug 19, 2024 =
     157- Improved compatibility with pages created using the Jetpack plugin. Now ecommerce blocks added to Portfolio and Testimonial pages work as well as on regular pages.
     158- Fixed an issue with product option fields working on product pages. In some cases, product options were not clickable. We've fixed this.
     159
    156160= 6.12.17 - Aug 5, 2024 =
    157161- Internal improvements and optimizations.
  • ecwid-shopping-cart/trunk/css/frontend.css

    r2825702 r3137594  
    105105    content: '';
    106106}
     107
     108#dynamic-ec-store-container,
     109#static-ec-store-container {
     110    margin-top: 0 !important;
     111}
  • ecwid-shopping-cart/trunk/ecwid-shopping-cart.php

    r3131402 r3137594  
    66Text Domain: ecwid-shopping-cart
    77Author: Ecwid Ecommerce
    8 Version: 6.12.17
     8Version: 6.12.18
    99Author URI: https://ecwid.to/ecwid-site
    1010License: GPLv2 or later
     
    210210        'sg-cachepress/sg-cachepress.php' => 'sg-optimizer',
    211211        'google-sitemap-generator/sitemap.php' => 'google-sitemap-generator',
     212        'jetpack/jetpack.php' => 'jetpack',
    212213    );
    213214
  • ecwid-shopping-cart/trunk/includes/class-ecwid-config.php

    r3093942 r3137594  
    22
    33class Ecwid_Config {
    4     const IS_WL            = 'whitelabel_is_enabled';
    5     const BRAND            = 'whitelabel_brand';
    6     const KB_URL           = 'whitelabel_kb_url';
    7     const CONTACT_US_URL   = 'whitelabel_contact_us_url';
    8     const REGISTRATION_URL = 'whitelabel_registration_url';
    9     const CHANNEL_ID       = 'whitelabel_channel_id';
    10     const OAUTH_APPID      = 'whitelabel_oauth_appid';
    11     const OAUTH_APPSECRET  = 'whitelabel_oauth_appsecret';
    12     const OAUTH_TOKEN_URL  = 'whitelabel_oauth_token_url';
    13     const OAUTH_AUTH_URL   = 'whitelabel_oauth_auth_url';
    14     const TOKEN            = 'config_token';
    15     const STORE_ID         = 'config_store_id';
    16     const API_DOMAIN       = 'config_api_domain';
    17     const FRONTEND_DOMAIN  = 'config_frontend_domain';
    18     const CPANEL_DOMAIN    = 'config_cpanel_domain';
    19     const DEMO_STORE_ID    = 'config_demo_store_id';
     4    const IS_WL                   = 'whitelabel_is_enabled';
     5    const BRAND                   = 'whitelabel_brand';
     6    const KB_URL                  = 'whitelabel_kb_url';
     7    const CONTACT_US_URL          = 'whitelabel_contact_us_url';
     8    const REGISTRATION_URL        = 'whitelabel_registration_url';
     9    const CHANNEL_ID              = 'whitelabel_channel_id';
     10    const OAUTH_APPID             = 'whitelabel_oauth_appid';
     11    const OAUTH_APPSECRET         = 'whitelabel_oauth_appsecret';
     12    const OAUTH_TOKEN_URL         = 'whitelabel_oauth_token_url';
     13    const OAUTH_AUTH_URL          = 'whitelabel_oauth_auth_url';
     14    const TOKEN                   = 'config_token';
     15    const STORE_ID                = 'config_store_id';
     16    const API_DOMAIN              = 'config_api_domain';
     17    const STATIC_PAGES_API_DOMAIN = 'config_static_pages_api_domain';
     18    const FRONTEND_DOMAIN         = 'config_frontend_domain';
     19    const CPANEL_DOMAIN           = 'config_cpanel_domain';
     20    const DEMO_STORE_ID           = 'config_demo_store_id';
    2021
    2122    public static function is_wl() {
     
    8586    public static function get_api_domain() {
    8687        return EcwidPlatform::get( self::API_DOMAIN, 'app.ecwid.com' );
     88    }
     89
     90    public static function get_static_pages_api_domain() {
     91        return EcwidPlatform::get( self::STATIC_PAGES_API_DOMAIN, 'storefront.ecwid.com' );
    8792    }
    8893
     
    172177    protected static function _get_common_config() {
    173178        $common_config = array(
    174             self::OAUTH_APPID     => 'oauth_appid',
    175             self::OAUTH_APPSECRET => 'oauth_appsecret',
    176             self::TOKEN           => 'oauth_token',
    177             self::STORE_ID        => 'store_id',
    178             self::CHANNEL_ID      => 'channel_id',
    179             self::API_DOMAIN      => 'api_domain',
    180             self::FRONTEND_DOMAIN => 'scriptjs_domain',
    181             self::CPANEL_DOMAIN   => 'cp_domain',
    182             self::DEMO_STORE_ID   => 'demo_store_id',
     179            self::OAUTH_APPID             => 'oauth_appid',
     180            self::OAUTH_APPSECRET         => 'oauth_appsecret',
     181            self::TOKEN                   => 'oauth_token',
     182            self::STORE_ID                => 'store_id',
     183            self::CHANNEL_ID              => 'channel_id',
     184            self::API_DOMAIN              => 'api_domain',
     185            self::STATIC_PAGES_API_DOMAIN => 'static_pages_api_domain',
     186            self::FRONTEND_DOMAIN         => 'scriptjs_domain',
     187            self::CPANEL_DOMAIN           => 'cp_domain',
     188            self::DEMO_STORE_ID           => 'demo_store_id',
    183189        );
    184190
  • ecwid-shopping-cart/trunk/includes/class-ecwid-products.php

    r2825702 r3137594  
    9797
    9898        $join .= 'LEFT JOIN ' . $wpdb->postmeta . ' ' . self::DB_ALIAS_OUT_OF_STOCK
    99                  . ' ON ' . $wpdb->posts . '.id = ' . self::DB_ALIAS_OUT_OF_STOCK . '.post_id'
    100                  . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_key="in_stock"'
    101                  . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_value=1';
     99                . ' ON ' . $wpdb->posts . '.id = ' . self::DB_ALIAS_OUT_OF_STOCK . '.post_id'
     100                . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_key="in_stock"'
     101                . ' AND ' . self::DB_ALIAS_OUT_OF_STOCK . '.meta_value=1';
    102102
    103103        return $join;
     
    326326
    327327        if ( ! $settings || $settings['one_at_a_time'] && ! $did_something ) {
    328 
    329328            $did_something = $this->_process_products( $settings );
    330329        }
    331330
    332331        if ( ! $settings || $settings['one_at_a_time'] && ! $did_something ) {
    333 
    334332            $this->_status->update_last_sync_time( time() );
    335333
     
    411409
    412410        while ( ! $over ) {
    413 
    414411            $this->_status_event(
    415412                array(
     
    552549
    553550        while ( ! $over ) {
    554 
    555551            $this->_status_event(
    556552                array(
  • ecwid-shopping-cart/trunk/includes/class-ecwid-seo-links.php

    r3116030 r3137594  
    339339
    340340            $post = get_post( $page_id );
     341
    341342            if ( ! $post ) {
    342343                continue;
    343344            }
    344             if ( ! in_array( $post->post_type, array( 'page', 'post' ) ) ) {
     345
     346            $default_post_types = array( 'page', 'post' );
     347            $allowed_post_types = apply_filters( 'ecwid_seo_allowed_post_types', $default_post_types );
     348
     349            if ( ! in_array( $post->post_type, $allowed_post_types ) ) {
    345350                continue;
    346351            }
     
    359364
    360365                foreach ( $patterns as $pattern ) {
    361                     $additional_rules[ $link . '/' . $pattern . '.*' ] = 'index.php?' . $param_name . '=' . $link_page_id;
     366                    $query = 'index.php?' . $param_name . '=' . $link_page_id;
     367
     368                    // adding post_type parameters for non-default types
     369                    if ( ! in_array( $post->post_type, $default_post_types ) ) {
     370                        $query .= '&post_type=' . $post->post_type;
     371                    }
     372
     373                    $additional_rules[ $link . '/' . $pattern . '.*' ] = $query;
    362374                }
    363             }
     375            }//end foreach
    364376        }//end foreach
    365377
  • ecwid-shopping-cart/trunk/includes/class-ecwid-static-page.php

    r3116030 r3137594  
    1010
    1111    const HANDLE_STATIC_PAGE = 'static-page';
    12     const API_URL            = 'https://storefront.ecwid.com/';
    1312
    1413    protected static $cache_key;
     
    6968        }
    7069
    71         $url  = self::API_URL;
     70        $url  = 'https://' . Ecwid_Config::get_static_pages_api_domain() . '/';
    7271        $url .= sprintf( '%s-page/', $params['mode'] );
    7372        $url .= sprintf( '%s/', get_ecwid_store_id() );
  • ecwid-shopping-cart/trunk/includes/shortcodes/class-ecwid-shortcode-productbrowser.php

    r3110860 r3137594  
    5959        }
    6060
     61        $code .= self::get_dynamic_html_code( $is_default_render, $classname );
     62
    6163        $code .= '<div id="static-ec-store-container">';
    6264        $code .= htmlspecialchars_decode( Ecwid_Static_Page::get_html_code() );
     
    6769        }
    6870        $code .= '</div>';
    69 
    70         $code .= self::get_dynamic_html_code( $is_default_render, $classname );
    7171
    7272        $force_dynamic_js_code = 'if( typeof window.ec.storefront.staticPages != "undefined" && typeof window.ec.storefront.staticPages.forceDynamicLoadingIfRequired != "undefined" ) {
  • ecwid-shopping-cart/trunk/readme.txt

    r3131402 r3137594  
    66Requires at least: 4.4
    77Tested up to: 6.6
    8 Stable tag: 6.12.17
     8Stable tag: 6.12.18
    99
    1010Powerful, easy to use ecommerce shopping cart for WordPress. Sell on Facebook and Instagram. iPhone & Android apps. Superb support. Free plan available.
     
    154154
    155155== Changelog ==
     156= 6.12.18 - Aug 19, 2024 =
     157- Improved compatibility with pages created using the Jetpack plugin. Now ecommerce blocks added to Portfolio and Testimonial pages work as well as on regular pages.
     158- Fixed an issue with product option fields working on product pages. In some cases, product options were not clickable. We've fixed this.
     159
    156160= 6.12.17 - Aug 5, 2024 =
    157161- Internal improvements and optimizations.
Note: See TracChangeset for help on using the changeset viewer.