Plugin Directory

Changeset 2696481


Ignore:
Timestamp:
03/19/2022 07:01:27 PM (4 years ago)
Author:
ascendedcrow
Message:

1.0.9

1) Add default values when saving a mapping for the first time.

Location:
shop-2-api/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/assets/bol2api_category_mapping_scripts.js

    r2635233 r2696481  
    120120                    'bol_cat_name': dropdown_changed.selectedOptions[0].innerHTML,
    121121                    'wc_field_values': [wc_cat_id],
    122                     'mapping': {}
     122                    'mapping': default_mapping
    123123                }
    124124            }
     
    141141    }
    142142
     143    let default_mapping = {
     144        "ean": {
     145            "type": "Product",
     146            "value": "sku"
     147        },
     148        "Name": {
     149            "type": "Product",
     150            "value": "name"
     151        },
     152        "Description": {
     153            "type": "Product",
     154            "value": "description"
     155        },
     156        "stock.amount": {
     157            "type": "Product",
     158            "value": "stock_quantity"
     159        },
     160        "condition.name": {
     161            "type": "OwnValue",
     162            "value": "NEW"
     163        },
     164        "Cover Image URL": {
     165            "type": "Product",
     166            "value": "images|src"
     167        },
     168        "fulfilment.method": {
     169            "type": "OwnValue",
     170            "value": "FBR"
     171        },
     172        "Internal Reference": {
     173            "type": "Product",
     174            "value": "sku"
     175        },
     176        "unknownProductTitle": {
     177            "type": "Product",
     178            "value": "name"
     179        },
     180        "fulfilment.deliveryCode": {
     181            "type": "OwnValue",
     182            "value": "1-2d"
     183        },
     184        "stock.managedByRetailer": {
     185            "type": "OwnValue",
     186            "value": "true"
     187        },
     188        "pricing.bundlePrices.quantity": {
     189            "type": "OwnValue",
     190            "value": "1"
     191        },
     192        "pricing.bundlePrices.unitPrice": {
     193            "type": "Product",
     194            "value": "price"
     195        }
     196    }
    143197})(jQuery);
  • shop-2-api/trunk/assets/bol2api_dashboard.js

    r2637595 r2696481  
    11( function( $ ) {
    22    $( document ).ready( function() {
    3         // Default Hiddens
     3        // Default Hidden
    44        $('#shop2api-enter-token').hide();
    55        $('#register-free-account-modal').hide();
  • shop-2-api/trunk/readme.txt

    r2643034 r2696481  
    76764) Bug Fixes
    7777
     78= 1.0.9 =
     791) Add default values when saving a mapping for the first time.
     80
    7881== Instructions ==
    79821) After installing Shop2Api, a new menu item will be available in your WordPress installation, you can continue and click on it and enter you token which was mailed to you.
  • shop-2-api/trunk/shop-2-api.php

    r2643033 r2696481  
    55Plugin URI: https://wordpress.org/plugins/shop-2-api/
    66Description: The plugin Shop2Api will sync products between e-Commerce platforms. The current supported e-Commerce platforms are WooCommerce to Bol.com, and we are working on Amazon, Shopify and others.  We added a koopblok service so that you can check if you lower your price can you get koopblok.
    7 Version: 1.0.8
     7Version: 1.0.9
    88Requires at least: 5.0
    99Requires PHP:      7.2
     
    3434define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ ));
    3535define('SHOP2API_PLUGIN', plugin_basename( __FILE__ ));
    36 define ('VERSION', '1.0.8');
     36define ('VERSION', '1.0.9');
    3737
    3838// Register items in the project.
Note: See TracChangeset for help on using the changeset viewer.