diff --git a/.distignore b/.distignore
index 7bd57f36..c583aa11 100644
--- a/.distignore
+++ b/.distignore
@@ -2,7 +2,6 @@
/.git
/.github
/node_modules
-/gutenberg-blocks
.distignore
.gitignore
diff --git a/.gitignore b/.gitignore
index 566314b6..3690e04d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,7 @@ tests/
vendor/
# Directories/files that may be generated by this project
-build
+# build
build-module
build-style
build-types
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index d912f456..0d8b84ef 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,4 +1,7 @@
== Changelog ==
+= 7.0.3 - Jun 24, 2025 =
+- Internal improvements and minor fixes for Gutenberg ecommerce blocks.
+
= 7.0.2 - Jun 17, 2025 =
- Fixed an issue where a "2" was incorrectly appended to page slugs when the "URLs without ID" feature was enabled.
diff --git a/css/gutenberg/blocks.editor.build.css b/css/gutenberg/blocks.editor.build.css
deleted file mode 100644
index 53a242d4..00000000
--- a/css/gutenberg/blocks.editor.build.css
+++ /dev/null
@@ -1,10 +0,0 @@
-.components-toolbar__control.components-button:not(:disabled).is-pressed>svg rect{fill:white}.components-toolbar div:first-child .components-button.components-button.ecwid-toolbar-icon{padding-left:6px}.components-toolbar div:last-child .components-button.components-button.ecwid-toolbar-icon{padding-right:6px}.components-toolbar div>.components-button.components-button.ecwid-toolbar-icon{padding:0}.block-editor-block-icon.has-colors svg.ec-store-icon-color{color:#0087cd}.ecwid-store-block-icon{background:url("../images/wordpress_20x20.svg");background-size:contain;width:20px;height:20px;margin-bottom:3px}.ecwid-store-block{position:relative}.ecwid-store-block-button{font-family:Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;position:relative;top:135px;font-size:14px}.ecwid-product-block-icon{background:url("../images/gutenberg-block-product.svg");background-size:contain;width:20px;height:20px;margin-bottom:3px}.ecwid-block{text-align:center;font-size:13px;font-family:'Open Sans';padding:1em;background-color:#f8f9f9;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:220px}.ecwid-block>div{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.ecwid-block .ecwid-block-header{font-weight:600;margin-bottom:1em}.ecwid-block .ecwid-block-header svg{max-height:20px;margin-right:1ch}.ecwid-block .ecwid-store-block-icon,.ecwid-block .ecwid-product-block-icon{margin-right:10px}.ecwid-block .ecwid-block-image{height:90px;background-repeat:no-repeat;background-size:contain;background-position:50% 50%}.ecwid-block .ecwid-block-image img{width:auto;max-height:100%;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.1);box-shadow:0 2px 5px 0 rgba(0,0,0,0.1)}.ecwid-block .ecwid-block-title{margin-top:11px;margin-bottom:1em}.ecwid-block .ecwid-block-button{font-weight:400}.ecwid-selected-product{font-family:Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif}.ecwid-selected-product>div{display:table-cell}.ecwid-selected-product .ecwid-selected-product-image img{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.1);box-shadow:0 2px 5px 0 rgba(0,0,0,0.1)}.ecwid-selected-product .ecwid-selected-product-image{padding-right:25px;vertical-align:top}.ecwid-selected-product .ecwid-selected-product-details{vertical-align:middle}.ecwid-selected-product .ecwid-selected-product-name{font-size:20px;font-weight:600;margin-bottom:0.5em}.ecwid-selected-product .ecwid-selected-product-sku{font-size:16px;margin-bottom:1em}.media-frame-content.has-selected-product form,.media-frame-content.has-selected-product .products,.media-frame-content.has-selected-product .tablenav{display:none}#ecwid-product-popup-content .media-frame-content.ecwid-selected-product{padding-left:20px;padding-top:40px}.ecwid-store-block-icon{background:url("../images/wordpress_20x20.svg");background-size:contain;width:20px;height:20px;margin-bottom:3px}.ecwid-store-block{position:relative}.ecwid-store-block-button{font-family:Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;position:relative;top:135px;font-size:14px}.ecwid-product-block-icon{background:url("../../images/gutenberg-block-product.svg");background-size:contain;width:20px;height:20px;margin-bottom:3px}.ec-store-block{text-align:center;font-size:13px;font-family:'Open Sans';padding:1em;background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:220px}.ec-store-block-product{background:none;display:inline-block}.ec-store-block-product svg{margin:auto}.ec-store-product-title{font-weight:600;font-size:14px;color:#555;margin-top:5px}.ec-store-block>div{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.ec-store-block .ec-store-block-header{font-weight:600;margin-bottom:1em;line-height:24px}.ec-store-block .ec-store-block-header svg{max-height:24px;margin-right:1ch}.ec-store-block .ec-store-block-subheader{font-size:16px;font-weight:bold;line-height:24px;letter-spacing:-.1px;margin:16px 0 0}.ec-store-block .ec-store-block-subheader:first-child{margin-top:0}.ec-store-block .ec-store-store-block-icon,.ec-store-block .ec-store-product-block-icon{margin-right:10px}.ec-store-block .ec-store-block-image{max-height:149px;background-repeat:no-repeat;background-size:contain;background-position:50% 50%}.ec-store-block .ec-store-block-image img{width:auto;max-height:100%;-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,0.1);box-shadow:0 2px 5px 0 rgba(0,0,0,0.1);-o-object-fit:cover;object-fit:cover}.ec-store-block-product .ec-store-block-image,.ec-store-block-product .ec-store-block-product-preview{height:180px;min-width:180px}.ec-store-block-product .ec-store-block-product-preview{border:1px solid rgba(145,151,162,0.25)}.ec-store-block-minicart{min-height:180px;min-width:180px;display:inline-block;background:none;position:relative}.ec-store-block-minicart .image{background:url("../../images/gutenberg/minicart-widget-preview.png") 50% 50% no-repeat;background-size:50%;position:absolute;left:0;top:0;right:0;bottom:0}.ec-store-block .ec-store-block-title{margin-top:11px;margin-bottom:1em}.ec-store-block .ec-store-block-button{font-weight:400;margin-top:11px}.ec-store-block>.ec-store-products{display:block}.ec-store-products .ec-store-product-block{width:130px;margin:15px;display:inline-block}.ec-store-products .ec-store-product-block .ec-store-product{width:130px;height:130px;background-size:100% 100%}.ec-store-products .ec-store-product-block .ec-store-stub-sample{width:130px;height:40px;margin:0;background:url("../../images/gutenberg/stub-sample.png") no-repeat;background-position:center}.ec-store-products .ec-store-product-block.ec-store-product-filter{vertical-align:top}.ec-store-products .ec-store-product-block.ec-store-product-filter .ec-store-stub-sample{height:130px;background:url("../../images/gutenberg/stub-filter.png") no-repeat;background-size:contain}.ec-store-product1{background:url("../../images/gutenberg/store1.png")}.ec-store-product2{background:url("../../images/gutenberg/store2.png")}.ec-store-product3{background:url("../../images/gutenberg/store3.png")}.ec-store-product4{background:url("../../images/gutenberg/store4.png")}.ec-store-product5{background:url("../../images/gutenberg/store5.png")}.ec-store-product6{background:url("../../images/gutenberg/store6.png")}.ec-store-product-y_sneaker{background:url("../../images/gutenberg/y_sneaker.png")}.ec-store-product-y_shirt{background:url("../../images/gutenberg/y_shirt.png")}.ec-store-product-y_watch{background:url("../../images/gutenberg/y_watch.png")}.ec-store-product-y_bag{background:url("../../images/gutenberg/y_bag.png")}.ec-store-product-y_hat{background:url("../../images/gutenberg/y_hat.png")}.ec-store-product-g_sneaker{background:url("../../images/gutenberg/g_sneaker.png")}.ec-store-product-g_shirt{background:url("../../images/gutenberg/g_shirt.png")}.ec-store-product-g_watch{background:url("../../images/gutenberg/g_watch.png")}.ec-store-product-g_bag{background:url("../../images/gutenberg/g_bag.png")}.ec-store-product-g_hat{background:url("../../images/gutenberg/g_hat.png")}.ec-store-product-p_sneaker{background:url("../../images/gutenberg/p_sneaker.png")}.ec-store-product-p_shirt{background:url("../../images/gutenberg/p_shirt.png")}.ec-store-product-b_hat{background:url("../../images/gutenberg/b_hat.png")}.ec-store-product-b_watch{background:url("../../images/gutenberg/b_watch.png")}.ec-store-product-m_sneaker{background:url("../../images/gutenberg/m_sneaker.png")}.ec-store-category-shirt{background:url("../../images/gutenberg/categories1.png")}.ec-store-category-sneaker{background:url("../../images/gutenberg/categories2.png")}.ec-store-category-bag{background:url("../../images/gutenberg/categories4.png")}.ec-store-category-hat{background:url("../../images/gutenberg/categories3.png")}.ec-store-category-watch{background:url("../../images/gutenberg/categories5.png")}.ec-store-category-glasses{background:url("../../images/gutenberg/categories6.png")}.ec-store-color-picker .component-color-indicator{vertical-align:text-bottom;margin-left:0.5rem;margin-bottom:-0.2rem}.ec-store-color-picker .components-color-palette{margin-top:.6rem}.ec-store-color-picker select{margin:6px 0 10px}.ec-store-inspector-subheader-row{margin-bottom:20px}.ec-store-inspector-row{-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:15px 0}.ec-store-inspector-row label,.ec-store-inspector-row button{display:block}.ec-store-inspector-subheader{color:#191e23;font-weight:600;cursor:default}.ec-store-inspector-select{max-width:100%}.ec-store-control-select{width:100%}.ec-store-inspector-button-group{display:block}.ec-store-generic-block>div{display:block}.ec-store-block .ec-store-block-header{font-weight:600;margin-bottom:24px;line-height:24px;display:-ms-flexbox;display:flex;color:#979797}.ec-store-block .ec-store-block-header svg{max-height:20px;margin-right:.5ch;fill:#979797}.ec-store-generic-block,.ec-store-block-categories{-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,0.2);box-shadow:0 2px 4px 0 rgba(0,0,0,0.2)}.ec-store-inspector-radio .components-radio-control__option,.ec-store-inspector-radio .components-radio-control__option input,.ec-store-inspector-radio .components-radio-control__option label{display:-ms-flexbox;display:flex;min-width:16px;min-width:16px}.ec-store-inspector-radio .components-base-control__field>label{margin-bottom:12px}.ec-store-inspector-radio .components-radio-control__option label{margin-top:-2px}.ec-store-inspector-radio__title{font-weight:600}.ec-store-categories{background-size:contain}.ec-store-categories-category1{background:url("../../images/gutenberg/categories1.png")}.ec-store-categories-category2{background:url("../../images/gutenberg/categories2.png")}.ec-store-categories-category3{background:url("../../images/gutenberg/categories3.png")}.ec-store-categories-category4{background:url("../../images/gutenberg/categories4.png")}.block-editor-inserter__preview-container .ec-store-products>div,.block-editor-inserter__preview-container .ec-store-category-products>div{margin:5px}.block-editor-inserter__panel-header .ec-store-icon{width:18px;height:18px;margin-bottom:1px}.wp-block[data-type="ecwid/store-block"]{max-width:95% !important}.wp-block[data-type="ecwid/store-block"] .ec-store-with-stub{max-width:610px;margin:0 auto}.wp-block[data-type="ecwid/store-block"] #ec-store-preview{min-height:150px !important}.wp-block[data-type="ecwid/store-block"] #ec-store-search-preview,.wp-block[data-type="ecwid/store-block"] #ec-store-categories-preview{margin-bottom:1.25em}
-.wp-block-cgb-block-my-block2{background:#bada55;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}.ec-store-products .ec-store-product-block.ec-store-product-block-small{width:149px}.ec-store-products .ec-store-product-block.ec-store-product-block-small .ec-store-product{width:149px;height:149px}.ec-store-products .ec-store-product-block.ec-store-product-block-small .ec-store-stub-sample{width:149px}
-.ec-store-block-cart-page .ec-store-block-buynow-preview{max-width:90%;margin:0 auto}
-.ec-store-block-search{min-width:334px;min-height:40px;display:inline-block;background:none;position:relative}.ec-store-block-search .image{background:url("../../images/gutenberg/search-preview.png") 50% 50% no-repeat;background-size:334px 40px;position:absolute;left:0;top:0;right:0;bottom:0}
-.ec-store-block-categories{height:50px;min-height:50px}.ec-store-block-categories .ec-store-block-header{margin-bottom:0;font-weight:bold}.ec-store-block-categories .ec-store-block-header>div{height:28px}.ec-store-block-categories .ec-store-block-header .ec-store-categories-menu{width:368px;height:8px;display:inline-block;margin:auto 0 auto 44px}
-.ec-store-block-minicart{min-height:66px;min-width:210px;display:inline-block;background:none;position:relative}.ec-store-block-minicart .image{background:url("../../images/gutenberg/minicart-preview.png") 50% 50% no-repeat;background-size:100%;position:absolute;left:0;top:0;right:0;bottom:0}
-.ec-store-block>.ec-store-category{display:block}.ec-store-category-products>div{width:130px;height:130px;margin:15px;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #e2e4e7;background-size:100% 100%}.ec-store-category-product1{background:url("../../images/gutenberg/category1.png")}.ec-store-category-product2{background:url("../../images/gutenberg/category2.png")}.ec-store-category-product3{background:url("../../images/gutenberg/category3.png")}.ec-store-category-product4{background:url("../../images/gutenberg/category4.png")}.ec-store-category-product5{background:url("../../images/gutenberg/category5.png")}.ec-store-category-product6{background:url("../../images/gutenberg/category6.png")}
-.ec-store-block-content{padding:0 42px 24px}.ec-store-product-page-preview{max-width:100%}
-.ec-store-block-filters-page .ec-store-products .ec-store-product-block.ec-store-product-filter .ec-store-stub-sample{min-height:160px;height:160px;background:url("../../images/gutenberg/search-filters-stub.png") no-repeat;background-size:contain}
-.ec-store-block-cart-page img{padding:0 1em 2em;max-width:100%}
diff --git a/css/gutenberg/editor.scss b/css/gutenberg/editor.scss
deleted file mode 100644
index f41b3f3c..00000000
--- a/css/gutenberg/editor.scss
+++ /dev/null
@@ -1,370 +0,0 @@
-/**
- * #.# Editor Styles
- *
- * CSS for just Backend enqueued after style.scss
- * which makes it higher in priority.
- */
-
-.components-toolbar__control.components-button:not(:disabled).is-active>svg rect {
- fill: white;
-}
-
-.components-toolbar__control.components-button.ecwid-toolbar-icon>svg {
- padding: 0;
-}
-
-.ecwid-store-block-icon {
- background: url('../images/wordpress_20x20.svg');
- background-size: contain;
- width: 20px;
- height: 20px;
- margin-bottom: 3px;
-}
-
-.ecwid-store-block {
- position: relative;
-}
-
-.ecwid-store-block-button {
- font-family: Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;
- position: relative;
- top:135px;
- font-size: 14px;
-}
-
-.ecwid-product-block-icon {
- background: url('../images/gutenberg-block-product.svg');
- background-size: contain;
- width: 20px;
- height: 20px;
- margin-bottom: 3px;
-}
-
-.ecwid-block {
- text-align: center;
- font-size: 13px;
- font-family: 'Open Sans';
- padding: 1em;
- background-color: #f8f9f9;
- display: flex;
- flex-direction: column;
- justify-content: center;
- min-height: 220px;
-}
-
-.ecwid-block > div {
- display: flex;
- justify-content: center;
-}
-
-.ecwid-block .ecwid-block-header {
- font-weight: 600;
- margin-bottom: 1em;
-}
-
-.ecwid-block .ecwid-block-header svg {
- max-height: 20px;
- margin-right: 1ch;
-}
-
-.ecwid-block .ecwid-store-block-icon,
-.ecwid-block .ecwid-product-block-icon {
- margin-right: 10px;
-}
-
-.ecwid-block .ecwid-block-image {
- height: 90px;
- background-repeat: no-repeat;
- background-size: contain;
- background-position: 50% 50%;
-}
-
-.ecwid-block .ecwid-block-image img {
- width: auto;
- max-height: 100%;
- -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
-}
-
-.ecwid-block .ecwid-block-title {
- margin-top: 11px;
- margin-bottom: 1em;
-}
-
-.ecwid-block .ecwid-block-button {
- font-weight: 400;
-}
-
-/*
- Popup styles for selected product block
- */
-
-.ecwid-selected-product {
- font-family: Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;
-}
-
-.ecwid-selected-product > div {
- display: table-cell;
-}
-
-.ecwid-selected-product .ecwid-selected-product-image img {
- -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
-}
-
-.ecwid-selected-product .ecwid-selected-product-image {
- padding-right: 25px;
- vertical-align: top;
-}
-
-.ecwid-selected-product .ecwid-selected-product-details {
- vertical-align: middle;
-}
-
-.ecwid-selected-product .ecwid-selected-product-name {
- font-size: 20px;
- font-weight: 600;
- margin-bottom: 0.5em;
-}
-
-.ecwid-selected-product .ecwid-selected-product-sku {
- font-size: 16px;
- margin-bottom: 1em;
-}
-
-.media-frame-content.has-selected-product form,
-.media-frame-content.has-selected-product .products,
-.media-frame-content.has-selected-product .tablenav
-{
- display: none;
-}
-
-#ecwid-product-popup-content .media-frame-content.ecwid-selected-product {
- padding-left: 20px;
- padding-top: 40px;
-}
-
-
-.ecwid-store-block-icon {
- background: url('../images/wordpress_20x20.svg');
- background-size: contain;
- width: 20px;
- height: 20px;
- margin-bottom: 3px;
-}
-
-.ecwid-store-block {
- position: relative;
-}
-
-.ecwid-store-block-button {
- font-family: Open Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;
- position: relative;
- top:135px;
- font-size: 14px;
-}
-
-.ecwid-product-block-icon {
- background: url('../../images/gutenberg-block-product.svg');
- background-size: contain;
- width: 20px;
- height: 20px;
- margin-bottom: 3px;
-}
-
-.ec-store-block {
- text-align: center;
- font-size: 13px;
- font-family: 'Open Sans';
- padding: 1em;
- background-color: #f8f9f9;
- display: flex;
- flex-direction: column;
- justify-content: center;
- min-height: 220px;
-}
-
-.ec-store-block-product {
- background: none;
- display: inline-block;
-}
-
-.ec-store-block-product svg {
- margin: auto;
-}
-.ec-store-product-title {
- font-weight: 600;
- font-size: 14px;
- color: #555;
- margin-top: 5px;
-}
-
-.ec-store-block > div {
- display: flex;
- justify-content: center;
-}
-
-.ec-store-block .ec-store-block-header {
- font-weight: 600;
- margin-bottom: 1em;
- line-height: 24px;
-}
-
-.ec-store-block .ec-store-block-header svg {
- max-height: 24px;
- margin-right: 1ch;
-}
-
-.ec-store-block .ec-store-store-block-icon,
-.ec-store-block .ec-store-product-block-icon {
- margin-right: 10px;
-}
-
-.ec-store-block .ec-store-block-image {
- height: 90px;
- background-repeat: no-repeat;
- background-size: contain;
- background-position: 50% 50%;
-}
-
-.ec-store-block .ec-store-block-image img {
- width: auto;
- max-height: 100%;
- -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- -moz-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- box-shadow: 0 2px 5px 0 rgba(0,0,0,0.1);
- object-fit: cover;
-}
-
-.ec-store-block-product .ec-store-block-image,
-.ec-store-block-product .ec-store-block-product-preview {
- height: 180px;
- min-width: 180px;
-}
-
-.ec-store-block-product .ec-store-block-product-preview {
- border: 1px solid rgba(145,151,162,.25);
-}
-
-.ec-store-block-minicart {
- min-height: 180px;
- min-width: 180px;
- display: inline-block;
- background: none;
- position: relative;
-}
-
-.ec-store-block-minicart .image {
- background: url('../../images/gutenberg/minicart-widget-preview.png') 50% 50% no-repeat;
- background-size: 50%;
- position: absolute;
- left:0;
- top:0;
- right:0;
- bottom:0;
-}
-
-.ec-store-block .ec-store-block-title {
- margin-top: 11px;
- margin-bottom: 1em;
-}
-
-.ec-store-block .ec-store-block-button {
- font-weight: 400;
- margin-top: 11px;
-}
-
-.ec-store-block > .ec-store-products {
- display: block;
-}
-
-.ec-store-products > div {
- width: 130px;
- height: 130px;
- margin: 15px;
- display: inline-flex;
- border: 1px solid #e2e4e7;
- background-size: 100% 100%;
-}
-
-.ec-store-product1 {
- background: url("../../images/gutenberg/store1.png");
-}
-
-.ec-store-product2 {
- background: url("../../images/gutenberg/store2.png");
-}
-
-.ec-store-product3 {
- background: url("../../images/gutenberg/store3.png");
-
-}
-
-.ec-store-product4 {
- background: url("../../images/gutenberg/store4.png");
-}
-
-.ec-store-product5 {
- background: url("../../images/gutenberg/store5.png");
-}
-
-.ec-store-product6 {
- background: url("../../images/gutenberg/store6.png");
-}
-
-.ec-store-color-picker .component-color-indicator {
- vertical-align: text-bottom;
-}
-
-.ec-store-color-picker .components-color-palette {
- margin-top: .6rem;
-}
-
-.ec-store-inspector-subheader-row {
- margin-bottom: 20px;
-}
-
-.ec-store-inspector-row {
- justify-content: space-between;
- display: flex;
- align-items: center;
-}
-
-.ec-store-inspector-row label,
-.ec-store-inspector-row button
-{
- display: block;
-}
-
-.ec-store-inspector-subheader {
- color: #191e23;
- font-weight: 600;
- cursor: default;
-}
-
-.ec-store-inspector-row {
- margin: 15px 0;
-}
-
-.ec-store-inspector-select {
- max-width: 100%;
-}
-
-
-.ec-store-generic-block > div {
- display: block;
-}
-
-.ec-store-block .ec-store-block-header {
- font-weight: 600;
- margin-bottom: 1em;
- line-height: 24px;
- display: flex;
-}
-
-.ec-store-block .ec-store-block-header svg {
- max-height: 24px;
- margin-right: 1ch;
-}
diff --git a/ecwid-shopping-cart.php b/ecwid-shopping-cart.php
index 11665acd..4164ec58 100644
--- a/ecwid-shopping-cart.php
+++ b/ecwid-shopping-cart.php
@@ -5,7 +5,7 @@
Description: Ecwid by Lightspeed is a full-featured shopping cart. It can be easily integrated with any Wordpress blog and takes less than 5 minutes to set up.
Text Domain: ecwid-shopping-cart
Author: Ecwid Ecommerce
-Version: 7.0.2
+Version: 7.0.3
Author URI: https://ecwid.to/ecwid-site
License: GPLv2 or later
*/
diff --git a/gutenberg-blocks/block/style.scss b/gutenberg-blocks/block/style.scss
deleted file mode 100644
index 566d4f4e..00000000
--- a/gutenberg-blocks/block/style.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * #.# Styles
- *
- * CSS for both Frontend+Backend.
- */
-
-.wp-block-cgb-block-my-block {
- background: $red;
- border: 0.2rem solid $black;
- color: $black;
- margin: 0 auto;
- max-width: 740px;
- padding: 2rem;
-}
diff --git a/gutenberg-blocks/buynow/editor.scss b/gutenberg-blocks/buynow/editor.scss
deleted file mode 100644
index a08931b4..00000000
--- a/gutenberg-blocks/buynow/editor.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-/*.ec-store-block-buynow {
- min-height: 40px;
- min-width: 120px;
- display: inline-block;
- background: none;
- position: relative;
-}
-
-.ec-store-block-buynow .image {
- background: url( '../../images/gutenberg/button-preview.png') 50% 50% no-repeat;
- background-size: 120px 40px;
- position: absolute;
- left:0;
- top:0;
- right:0;
- height: 40px;
-}
-.ec-store-block-buynow .button-container {
- margin-top: 35px;
-}
-*/
-
-.ec-store-block-cart-page .ec-store-block-buynow-preview {
- max-width: 90%;
- margin: 0 auto;
-}
\ No newline at end of file
diff --git a/gutenberg-blocks/buynow/style.scss b/gutenberg-blocks/buynow/style.scss
deleted file mode 100644
index a037cccd..00000000
--- a/gutenberg-blocks/buynow/style.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * #.# Styles
- *
- * CSS for both Frontend+Backend.
- */
-
-.wp-block-cgb-block-my-block2 {
- background: $red;
- border: 0.2rem solid $black;
- color: $black;
- margin: 0 auto;
- max-width: 740px;
- padding: 2rem;
-}
diff --git a/gutenberg-blocks/cart-page/editor.scss b/gutenberg-blocks/cart-page/editor.scss
deleted file mode 100644
index 026dc076..00000000
--- a/gutenberg-blocks/cart-page/editor.scss
+++ /dev/null
@@ -1,4 +0,0 @@
-.ec-store-block-cart-page img {
- padding: 0 1em 2em;
- max-width: 100%;
-}
\ No newline at end of file
diff --git a/gutenberg-blocks/categories/editor.scss b/gutenberg-blocks/categories/editor.scss
deleted file mode 100644
index 784e1576..00000000
--- a/gutenberg-blocks/categories/editor.scss
+++ /dev/null
@@ -1,20 +0,0 @@
-.ec-store-block-categories {
- height: 50px;
- min-height: 50px;
-
- .ec-store-block-header {
- margin-bottom: 0;
- font-weight: bold;
-
- >div {
- height: 28px;
- }
-
- .ec-store-categories-menu {
- width: 368px;
- height: 8px;
- display: inline-block;
- margin: auto 0 auto 44px;
- }
- }
-}
\ No newline at end of file
diff --git a/gutenberg-blocks/category-page/editor.scss b/gutenberg-blocks/category-page/editor.scss
deleted file mode 100644
index 22239ab5..00000000
--- a/gutenberg-blocks/category-page/editor.scss
+++ /dev/null
@@ -1,38 +0,0 @@
-
-.ec-store-block > .ec-store-category {
- display: block;
-}
-
-.ec-store-category-products > div {
- width: 130px;
- height: 130px;
- margin: 15px;
- display: inline-flex;
- border: 1px solid #e2e4e7;
- background-size: 100% 100%;
-}
-
-.ec-store-category-product1 {
- background: url("../../images/gutenberg/category1.png");
-}
-
-.ec-store-category-product2 {
- background: url("../../images/gutenberg/category2.png");
-}
-
-.ec-store-category-product3 {
- background: url("../../images/gutenberg/category3.png");
-
-}
-
-.ec-store-category-product4 {
- background: url("../../images/gutenberg/category4.png");
-}
-
-.ec-store-category-product5 {
- background: url("../../images/gutenberg/category5.png");
-}
-
-.ec-store-category-product6 {
- background: url("../../images/gutenberg/category6.png");
-}
diff --git a/gutenberg-blocks/filters-page/editor.scss b/gutenberg-blocks/filters-page/editor.scss
deleted file mode 100644
index 0ffdc7e2..00000000
--- a/gutenberg-blocks/filters-page/editor.scss
+++ /dev/null
@@ -1,10 +0,0 @@
-.ec-store-block-filters-page {
-
- .ec-store-products .ec-store-product-block.ec-store-product-filter .ec-store-stub-sample {
- min-height: 160px;
- height: 160px;
- background: url("../../images/gutenberg/search-filters-stub.png") no-repeat;
- background-size: contain;
- }
-}
-
diff --git a/gutenberg-blocks/includes/color.js b/gutenberg-blocks/includes/color.js
deleted file mode 100644
index 2d63c1dd..00000000
--- a/gutenberg-blocks/includes/color.js
+++ /dev/null
@@ -1,100 +0,0 @@
-const {
- BaseControl,
- ColorPalette,
- ColorIndicator
-} = wp.components;
-
-const { withState } = wp.compose;
-
-const { __ } = wp.i18n;
-
-const colors = [{
- name: __("Pale pink"),
- slug: "pale-pink",
- color: "#f78da7"
-}, {
- name: __("Vivid red"),
- slug: "vivid-red",
- color: "#cf2e2e"
-}, {
- name: __("Luminous vivid orange"),
- slug: "luminous-vivid-orange",
- color: "#ff6900"
-}, {
- name: __("Luminous vivid amber"),
- slug: "luminous-vivid-amber",
- color: "#fcb900"
-}, {
- name: __("Light green cyan"),
- slug: "light-green-cyan",
- color: "#7bdcb5"
-}, {
- name: __("Vivid green cyan"),
- slug: "vivid-green-cyan",
- color: "#00d084"
-}, {
- name: __("Pale cyan blue"),
- slug: "pale-cyan-blue",
- color: "#8ed1fc"
-}, {
- name: __("Vivid cyan blue"),
- slug: "vivid-cyan-blue",
- color: "#0693e3"
-}, {
- name: __("Very light gray"),
- slug: "very-light-gray",
- color: "#eeeeee"
-}, {
- name: __("Cyan bluish gray"),
- slug: "cyan-bluish-gray",
- color: "#abb8c3"
-}, {
- name: __("Very dark gray"),
- slug: "very-dark-gray",
- color: "#313131"
-}];
-
-function getChameleonColorControl({ manual, color, setState }) {
- const name = arguments[0].name;
- const props = arguments[0].props;
- const titleText = arguments[0].title;
-
- if (typeof props.attributes[name] == 'undefined') props.attributes[name] = false;
-
- const isManual = manual === null && props.attributes[name] !== false && props.attributes[name] !== null && props.attributes[name] !== "" || manual === 'manual';
-
- if (!isManual) {
- props.setAttributes({ [name]: null })
- } else if (color !== null) {
- props.setAttributes({ [name]: color });
- }
-
- const currentValue = props.attributes[name] || '';
-
- const titleElement = {titleText}
- {currentValue !== null &&
{item.description}
\n {item.value == 'DEFAULT_CATEGORY_ID' && needShowCategories &&\n [select]\n }\n{__('The transition to this page is disabled in the editor, on a real storefront it works as it should.', 'ecwid-shopping-cart')}
\n \n