View extra_field_datepicker_with_conditions.js
// Выбор даты самовывоза, несколько пунктов самовывоза
ec.order.extra_fields.ecwid_pickup_time = {
'key': 'ecwid_pickup_time', // Ключ поля в базе.
'title': '_msg_schedule_pickup_time',
'required': true,
'type': 'date',
'checkout_display_section': 'pickup_customer_info',
'datepicker_options': {
'limit_maximum_date_interval_days': 14,
'show_time': true, // Показывать ли селектор времени
View ec.order.extra_fields.spec.js
ec.order = ec.order || {};
ec.order.extraFields = ec.order.extraFields || {};
// A text input that asks a buyer how to sign the package
ec.order.extraFields.wrapping_box_signature = {
'title': 'How should we sign the package?',
'textPlaceholder': 'Package sign',
'type': 'text',
'tip': 'We will put a label on a box so the recipient knows who it is from',
'required': false,
View ecwid_clean_urls_setup_examples.md

Setting up SEO friendly clean URLs in Ecwid (Examples)

This is a followup on the Ecwid blog post about the new SEO friendly clean URLs available for Ecwid stores. If you have your Ecwid store installed on a platform or sitebuilder including Wordpress, Wix, Adobe Muse or Ecwid Starter Site, you should have the clean URLs enabled automatically (see the blog post for the details). On the other hand, if you run a custom made web site, you will need to adjust your site setup a bit to enable the clean URLs as explained in the Ecwid API docs.

Below are examples of clean URLs setup on custom made websites.

View ecwid_expand_wholesale_prices_by_default.html
<!--
An HTML/JS snippet for Ecwid to display wholesale pricing block (bulk pricing) explanded by default on the product detail pages
Put this code after Ecwid integration code on your site
-->
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
if (page.type == "PRODUCT") {
setTimeout(
function () {
View ecwid_move_cat_descr_and_subcats_below_products.html
<!--
An HTML/JS snippet for Ecwid to move category description and subcategories under the subcategories/products listing
https://gist.github.com/makfruit/8f55e57945de9089a014
Put this code after Ecwid integration code on your site
-->
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
Ecwid.OnPageLoaded.add(function(page) {
if (page.type == 'CATEGORY') {
View ecwid_add_product.js
var product = {
id: 10,
quantity: 3,
options: {
someTextOption: "optionVal",
someDateOption: new Date().getTime().toString(),
someRadioOption: "optionVal",
someDropDownOption: "optionVal",
someCheckboxOption: ["optionVal1", "optionVal2"]
},
View ecwid_move_cat_descr_below_products.html
<!--
An HTML/JS snippet for Ecwid to move category description under the subcategories/products listing
https://gist.github.com/makfruit/11148226
Put this code after Ecwid integration code on your site
-->
<script src="//code.jquery.com/jquery.min.js"></script>
<script>
Ecwid.OnPageLoaded.add(function(page) {
if (page.type == 'CATEGORY') {
View ecwid-frame-for-category-thumbnails.css
table.ecwid-productBrowser-subcategories-mainTable img {
border-style: solid !important;
border: 2px solid #D8D8D8;
}
View ecwid-product-descr-next-to-image.css
div.ecwid-productBrowser-details-leftPanel div {
float: left;
}
div.ecwid-productBrowser-details-thumbnail {
width: 225px;
margin-right: 5px;
}
div.ecwid-productBrowser-details-leftPanel div.ecwid-productBrowser-details-descr,
View ecwid-hide-prices-in-category.css
div.ecwid-productBrowser-category div.ecwid-productBrowser-price,
div.ecwid-productBrowser-category td.ecwid-productBrowser-productsTable-price {
display: none;
}