Ecwid Ecommerce Shopping Cart - Version 4.2.1.3

Version Description

  • Fixes for the perfomance issues on some sites.
Download this release

Release Info

Developer Ecwid
Plugin Icon 128x128 Ecwid Ecommerce Shopping Cart
Version 4.2.1.3
Comparing to
See all releases

Code changes from version 4.2.1.2 to 4.2.1.3

ecwid-shopping-cart.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.ecwid.com?source=wporg
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
- Version: 4.2.1.2
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
@@ -966,10 +966,10 @@ function ecwid_content_started($content)
966
 
967
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
968
  {
969
- return "<!-- Ecwid shopping cart plugin v 4.2.1.2 --><!-- noptimize -->"
970
  . ecwid_get_scriptjs_code(@$attrs['lang'])
971
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
972
- . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.2.1.2 -->";
973
  }
974
 
975
  function ecwid_get_scriptjs_code($force_lang = null) {
5
  Description: Ecwid is a free full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
6
  Text Domain: ecwid-shopping-cart
7
  Author: Ecwid Team
8
+ Version: 4.2.1.3
9
  Author URI: http://www.ecwid.com?source=wporg
10
  */
11
 
966
 
967
  function ecwid_wrap_shortcode_content($content, $name, $attrs)
968
  {
969
+ return "<!-- Ecwid shopping cart plugin v 4.2.1.3 --><!-- noptimize -->"
970
  . ecwid_get_scriptjs_code(@$attrs['lang'])
971
  . "<div class=\"ecwid-shopping-cart-$name\">$content</div>"
972
+ . "<!-- /noptimize --><!-- END Ecwid Shopping Cart v 4.2.1.3 -->";
973
  }
974
 
975
  function ecwid_get_scriptjs_code($force_lang = null) {
includes/class-ecwid-nav-menus.php CHANGED
@@ -111,38 +111,40 @@ class Ecwid_Nav_Menus {
111
  $item->url = ecwid_get_store_page_url() . '#!/~/' . $ecwid_menu_type['url'];
112
  }
113
 
114
- $categories = ecwid_get_categories();
115
- if ($item->object == 'ecwid-store-with-categories' && !empty($categories)) {
116
- foreach ($categories as $category) {
117
- $counter ++;
118
- $post = new stdClass;
119
- $post->ID = 0;
120
- $post->post_author = '';
121
- $post->post_date = '';
122
- $post->post_date_gmt = '';
123
- $post->post_password = '';
124
- $post->post_name = '';
125
- $post->post_type = $item->post_type;
126
- $post->post_status = 'publish';
127
- $post->to_ping = '';
128
- $post->pinged = '';
129
- $post->post_parent = 0;
130
- $post->menu_order = $item->menu_order + $counter;
131
- $post->menu_item_parent = $item->ID;
132
- $post->url = ecwid_get_store_page_url() . $category->link;
133
- $post->classes = '';
134
- $post->type = 'post';
135
- $post->db_id = 0;
136
- $post->title = $category->name;
137
- $post->target = '';
138
- $post->object = '';
139
- $post->attr_title = '';
140
- $post->description = '';
141
- $post->xfn = '';
142
- $post->object_id = 0;
143
- array_splice($items, $key + $counter, 0, array($post));
 
 
 
144
  }
145
- $counter++;
146
  }
147
  }
148
 
111
  $item->url = ecwid_get_store_page_url() . '#!/~/' . $ecwid_menu_type['url'];
112
  }
113
 
114
+ if ($item->object == 'ecwid-store-with-categories') {
115
+ $categories = ecwid_get_categories();
116
+ if (!empty($categories)) {
117
+ foreach ($categories as $category) {
118
+ $counter++;
119
+ $post = new stdClass;
120
+ $post->ID = 0;
121
+ $post->post_author = '';
122
+ $post->post_date = '';
123
+ $post->post_date_gmt = '';
124
+ $post->post_password = '';
125
+ $post->post_name = '';
126
+ $post->post_type = $item->post_type;
127
+ $post->post_status = 'publish';
128
+ $post->to_ping = '';
129
+ $post->pinged = '';
130
+ $post->post_parent = 0;
131
+ $post->menu_order = $item->menu_order + $counter;
132
+ $post->menu_item_parent = $item->ID;
133
+ $post->url = ecwid_get_store_page_url() . $category->link;
134
+ $post->classes = '';
135
+ $post->type = 'post';
136
+ $post->db_id = 0;
137
+ $post->title = $category->name;
138
+ $post->target = '';
139
+ $post->object = '';
140
+ $post->attr_title = '';
141
+ $post->description = '';
142
+ $post->xfn = '';
143
+ $post->object_id = 0;
144
+ array_splice($items, $key + $counter, 0, array( $post ));
145
+ }
146
+ $counter++;
147
  }
 
148
  }
149
  }
150
 
js/nav-menu.js CHANGED
@@ -79,13 +79,7 @@ jQuery(document).ready(function() {
79
  }
80
 
81
  isStoreWithCategories = function(element) {
82
- for (var i in ecwidClasses) {
83
- if (i == 'ecwid-store-with-categories') {
84
- return true;
85
- }
86
- }
87
-
88
- return false;
89
  }
90
 
91
  resetCache = function(callback) {
@@ -114,4 +108,4 @@ jQuery(document).ready(function() {
114
  trackAddedMenuItems(e.srcElement);
115
  });
116
 
117
- });
79
  }
80
 
81
  isStoreWithCategories = function(element) {
82
+ return jQuery(element).hasClass('menu-item-ecwid-store-with-categories');
 
 
 
 
 
 
83
  }
84
 
85
  resetCache = function(callback) {
108
  trackAddedMenuItems(e.srcElement);
109
  });
110
 
111
+ });
lib/ecwid_platform.php CHANGED
@@ -56,7 +56,7 @@ class EcwidPlatform {
56
 
57
  static public function cache_get($name)
58
  {
59
- get_transient('ecwid_' . $name);
60
  }
61
 
62
  static public function cache_set($name, $value, $expires_after)
56
 
57
  static public function cache_get($name)
58
  {
59
+ return get_transient('ecwid_' . $name);
60
  }
61
 
62
  static public function cache_set($name, $value, $expires_after)
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: ecwid
3
  Tags: ecommerce cart, ecommerce, downloadable products, e-commerce, Facebook ecommerce, online store, paypal ecommerce, product catalog, shop, shopping cart, store, woocommerce, wordpress ecommerce
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
- Stable tag: 4.2.1.2
7
 
8
- Powerful, easy to use shopping cart. Bank level PCI DSS Level 1 security. Sell on the go iPhone & Android app. Superb support. Free plan available.
9
 
10
  == Description ==
11
  Ecwid Ecommerce Shopping Cart is a powerful, secure and easy-to-use online store solution that gives you a full-functioned online store on your WordPress website. Join over *900,000* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
@@ -101,11 +101,53 @@ http://codex.wordpress.org/Managing_Plugins#Installing_Plugins
101
 
102
  == Frequently Asked Questions ==
103
 
104
- * [FAQ](http://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable- "Install Ecwid on Wordpress")
105
- * [Help Center](http://help.ecwid.com/?source=wporg-plugin-site "Ecwid Help")
106
- * [Ecwid ecommerce site](http://www.ecwid.com/?source=wporg-plugin-site "Ecwid Site")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  == Changelog ==
 
 
 
109
  = 4.2.1.2 =
110
  - Fixes an error appearing on some sites with the previous version of the plugin.
111
 
3
  Tags: ecommerce cart, ecommerce, downloadable products, e-commerce, Facebook ecommerce, online store, paypal ecommerce, product catalog, shop, shopping cart, store, woocommerce, wordpress ecommerce
4
  Requires at least: 3.5
5
  Tested up to: 4.5
6
+ Stable tag: 4.2.1.3
7
 
8
+ Powerful, easy to use ecommerce shopping cart. Bank level PCI DSS Level 1 security. iPhone & Android apps. Superb support. Free plan available.
9
 
10
  == Description ==
11
  Ecwid Ecommerce Shopping Cart is a powerful, secure and easy-to-use online store solution that gives you a full-functioned online store on your WordPress website. Join over *900,000* sellers in *175* countries and sell globally with over *40* international payment options, real-time shipping integrations and support of *45* languages.
101
 
102
  == Frequently Asked Questions ==
103
 
104
+ = How secure is this ecommerce plugin? Is my store PCI DSS compliant? =
105
+
106
+ Ecwid is PCI DSS Level 1 certified shopping cart plugin – the gold standard for e-commerce solutions worldwide. This means you won’t have any banking compliance issues when selling online with Ecwid. [More details](https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#secureplugin).
107
+
108
+ = How much does Ecwid cost? =
109
+
110
+ Ecwid shopping cart plans vary by number of products, types of ecommerce functionality, and level of support.
111
+ * Free - Up to 10 products
112
+ * Venture - $15/month
113
+ * Business - $35/month
114
+ * Unlimited - $99/month
115
+ Pro Tip: you can save money by enrolling in our annual plans. For more information, check out our [pricing page](https://www.ecwid.com/pricing).
116
+
117
+
118
+ = How can I manage my online shop from a mobile device? =
119
+
120
+ Ecwid shopping cart provides mobile ecommerce applications for iOS and Android to manage your online store and sell on the go. Scan products, track inventory, manage sales and accept payments using your mobile device as a POS station. [More details on Ecwid ecommerce mobile apps](https://www.ecwid.com/ecwid-mobile).
121
+
122
+ = How do I set up a storefront on Facebook with Ecwid shopping cart? =
123
+
124
+ You can add your online shop to any web presence, including your Facebook business page. Ecwid e-commerce plugin will automatically synchronize products, customers, orders and inventory between your WordPress and Facebook storefronts. [More details](https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#How%20to%20add%20my%20store%20to%20Facebook).
125
+
126
+ = How can I add a shopping cart widget to my site sidebar? =
127
+
128
+ You can add a product search box, shopping cart widget and other tools on the Appearance/Widgets page here in your site admin. [Read more about Ecwid ecommerce sidebar widgets](https://help.ecwid.com/customer/portal/articles/1085017-wordpress-downloadable#Sidebar%20widgets).
129
+
130
+ = How do I add my store products to a sitemap? =
131
+
132
+ To create a sitemap for your WordPress shop, we recommend using the fully compatible [Google XML Sitemaps](https://wordpress.org/plugins/google-sitemap-generator/) or [Yoast WordPress SEO](https://wordpress.org/plugins/wordpress-seo/) plugins. Generating a sitemap that contains links to store categories and product pages will help index your pages faster. Please note that the store sitemap option is only available to paid Ecwid users.
133
+
134
+
135
+ = How do I add store categories to the site menu? =
136
+
137
+ You can add the store categories menu to your site menu to help your customers easily navigate your online shop. Just open "Appearance > Menus" in your WordPress control panel and add the "Store with Categories Menu" item to your site menu. A drop-down menu containing your store categories will automatically appear on your site.
138
+
139
+ = How do I migrate my shop from Shopify or Woocommerce? =
140
+
141
+ You can use Ecwid’s built-in ecommerce import tools to copy your store products from any other shopping cart to Ecwid. Find more details in the [Import-Export article in the Ecwid shopping cart help center]( https://help.ecwid.com/customer/portal/articles/1169671).
142
+
143
+
144
+ * [Ecwid Help Center](http://help.ecwid.com/?source=wporg-plugin-site "Ecwid Help")
145
+ * [Ecwid eCommerce Forums](https://www.ecwid.com/forums/forumdisplay.php?f=19)
146
 
147
  == Changelog ==
148
+ = 4.2.1.3 =
149
+ - Fixes for the perfomance issues on some sites.
150
+
151
  = 4.2.1.2 =
152
  - Fixes an error appearing on some sites with the previous version of the plugin.
153