Item upload from AccuTrac to Fashion Domino

Subscription Type
Please select a subscription type for Pricing.
This script will automate your item uploading from the AccuTrac ERP system to the Fashion Domino website including images. If the item already exists on Fashion Domino, only the new colors will be added to the existing item.

Pre Requsite:

You need a Fashion Domino API key.

Your image file name should not contain special characters.

 

How to Run:

1. Please login to your AccuTrac system and select "Style List" menu.

    The script will upload the displayed styles only.

2. Start the script

    Option 1. Please double click the script name "Item_Upload_from_AccuTrac" under "Fashion_Domino folder in your JaBot client.

    Option 2. Please right click on the script name and click the "Play" menu.

 

Complete Item Uploading:

Please click your JaBot "Logs" tab and check if there is no error message.

By default, the uploaded items will be in a disabled state, so please review your items and enable them in the FD admin site.

XS'; else return ${SIZE}+'XS';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${XS}; else return ${PACK}+${XS};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='s']\",\"Value\":\"S\"},{\"Command\":\"if_v2\",\"Target\":\"${S} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'S'; else return ${SIZE}+'S';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${S}; else return ${PACK}+${S};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='m']\",\"Value\":\"M\"},{\"Command\":\"if_v2\",\"Target\":\"${M} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'M'; else return ${SIZE}+'M';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${M}; else return ${PACK}+${M};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='l']\",\"Value\":\"L\"},{\"Command\":\"if_v2\",\"Target\":\"${L} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'L'; else return ${SIZE}+'L';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${L}; else return ${PACK}+${L};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='xl']\",\"Value\":\"XL\"},{\"Command\":\"if_v2\",\"Target\":\"${XL} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'XL'; else return ${SIZE}+'XL';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${XL}; else return ${PACK}+${XL};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='x1']\",\"Value\":\"1X\"},{\"Command\":\"if_v2\",\"Target\":\"${1X} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'1X'; else return ${SIZE}+'1X';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${1X}; else return ${PACK}+${1X};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='x2']\",\"Value\":\"2X\"},{\"Command\":\"if_v2\",\"Target\":\"${2X} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'2X'; else return ${SIZE}+'2X';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${2X}; else return ${PACK}+${2X};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"storeValue\",\"Target\":\"xpath=//input[@name='x3']\",\"Value\":\"3X\"},{\"Command\":\"if_v2\",\"Target\":\"${3X} > 0\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${SIZE}.length > 1) return ${SIZE}+'-'+'3X'; else return ${SIZE}+'3X';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"if(${PACK}.length > 1) return ${PACK}+'-'+${3X}; else return ${PACK}+${3X};\",\"Value\":\"PACK\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${SIZE}+')';\",\"Value\":\"SIZE\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${PACK}+')';\",\"Value\":\"PACK\"},{\"Command\":\"storeXpathCount\",\"Target\":\"xpath=//div[@id='ext-comp-1392']/div/div/div/div/div[2]/div/div\",\"Value\":\"COLOR_CNT\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return '';\",\"Value\":\"COLORS\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return '';\",\"Value\":\"IMAGES\"},{\"Command\":\"store\",\"Target\":\"1\",\"Value\":\"CDX\"},{\"Command\":\"store\",\"Target\":\"0\",\"Value\":\"VALID_COLOR_CNT\"},{\"Command\":\"while_v2\",\"Target\":\"${CDX} <= ${COLOR_CNT}\",\"Value\":\"\"},{\"Command\":\"storeXpathCount\",\"Target\":\"xpath=//div[@id='ext-comp-1392']/div/div/div/div/div[2]/div/div[${CDX}]/table/tbody/tr/td[2]/div/img\",\"Value\":\"ACTIVE_COLOR\"},{\"Command\":\"if_v2\",\"Target\":\"${ACTIVE_COLOR} < 1\",\"Value\":\"\"},{\"Command\":\"storeText\",\"Target\":\"xpath=//div[@id='ext-comp-1392']/div/div/div/div/div[2]/div/div[${CDX}]/table/tbody/tr/td[3]/div\",\"Value\":\"COLOR\"},{\"Command\":\"if_v2\",\"Target\":\"${COLORS}.length > 1\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${COLORS}.concat(',',${COLOR});\",\"Value\":\"COLORS\"},{\"Command\":\"else\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${COLORS}.concat(${COLOR});\",\"Value\":\"COLORS\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return Number(${VALID_COLOR_CNT})+1\",\"Value\":\"VALID_COLOR_CNT\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return Number(${CDX})+1\",\"Value\":\"CDX\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"store\",\"Target\":\"1\",\"Value\":\"IMGDX\"},{\"Command\":\"storeXpathCount\",\"Target\":\"xpath=//div[@id='ext-comp-1396']/div[2]/div/div/div/div[2]/div/div\",\"Value\":\"IMG_CNT\"},{\"Command\":\"while_v2\",\"Target\":\"${IMGDX} <= ${IMG_CNT}\",\"Value\":\"\"},{\"Command\":\"storeXpathCount\",\"Target\":\"xpath=//div[@id='ext-comp-1396']/div/div/div/div/div[2]/div/div[${IMGDX}]/table/tbody/tr/td[2]/div/img\",\"Value\":\"ACTIVE_IMAGE\"},{\"Command\":\"if_v2\",\"Target\":\"${ACTIVE_IMAGE} < 1\",\"Value\":\"\"},{\"Command\":\"storeAttribute\",\"Target\":\"xpath=//div[@id='ext-comp-1396']/div/div/div/div/div[2]/div/div[${IMGDX}]/table/tbody/tr/td[3]/div/img@src\",\"Value\":\"IMG_href\"},{\"Command\":\"if_v2\",\"Target\":\"${IMAGES}\",\"Value\":\"\"},{\"Command\":\"if_v2\",\"Target\":\"${VALID_COLOR_CNT} > 1\",\"Value\":\"\"},{\"Command\":\"storeText\",\"Target\":\"xpath=//div[@id='ext-comp-1396']/div/div/div/div/div[2]/div/div[${IMGDX}]/table/tbody/tr/td[4]/div\",\"Value\":\"IMG_COLOR\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${IMAGES}+','+'https://www.shopchocolateusa.com/accutrac/'+${IMG_href}+'|'+${IMG_COLOR};\",\"Value\":\"IMAGES\"},{\"Command\":\"else\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return ${IMAGES}+','+'https://www.shopchocolateusa.com/accutrac/'+${IMG_href}+'|'+${COLORS};\",\"Value\":\"IMAGES\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"else\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"if_v2\",\"Target\":\"${VALID_COLOR_CNT} > 1\",\"Value\":\"\"},{\"Command\":\"storeText\",\"Target\":\"xpath=//div[@id='ext-comp-1396']/div/div/div/div/div[2]/div/div[${IMGDX}]/table/tbody/tr/td[4]/div\",\"Value\":\"IMG_COLOR\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return 'https://www.shopchocolateusa.com/accutrac/'+${IMG_href}+'|'+${IMG_COLOR};\",\"Value\":\"IMAGES\"},{\"Command\":\"else\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return 'https://www.shopchocolateusa.com/accutrac/'+${IMG_href}+'|'+${COLORS};\",\"Value\":\"IMAGES\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"return Number(${IMGDX})+1\",\"Value\":\"IMGDX\"},{\"Command\":\"end\",\"Target\":\"\",\"Value\":\"\"},{\"Command\":\"executeScript_Sandbox\",\"Target\":\"var api_key=${API_KEY};var model=${MODEL};var name=${NAME};var category=${CATEGORY};var price=${PRICE};var special_price=${SPECIAL_PRICE};var sizes=${SIZE};var pack=${PACK};var images=${IMAGES};var colors=${COLORS};var description=${DESCRIPTION};var fabric_content=${FABRIC_CONTENT}; var formData = new FormData(); formData.append('model[]', model); formData.append('category[]', category); formData.append('price[]', price); formData.append('special_price[]', special_price); formData.append('sizes[]', sizes); formData.append('pack[]', pack); formData.append('name[]', name); formData.append('description[]', description); formData.append('fabric_content[]', fabric_content); formData.append('colors[]', colors); formData.append('images[]', images); var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function(){ if(xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200) { console.log('Successfully uploaded'); } }; xhr.open(\\\"post\\\", \\\"https://api.fashiondomino.com/index.php?route=api/product/sync&api_key=\\\"+api_key, false); xhr.send(formData);\",\"Value\":\"\"}]}}","dynamic_macro":false,"description":"

Pre Requsite:

\n

You need a Fashion Domino API key.

\n

Your image file name should not contain special characters.

\n

 

\n

How to Run:

\n

1. Please login to your AccuTrac system and select \"Style List\" menu.

\n

    The script will upload the displayed styles only.

\n

2. Start the script

\n

    Option 1. Please double click the script name \"Item_Upload_from_AccuTrac\" under \"Fashion_Domino folder in your JaBot client.

\n

    Option 2. Please right click on the script name and click the \"Play\" menu.

\n

 

\n

Complete Item Uploading:

\n

Please click your JaBot \"Logs\" tab and check if there is no error message.

\n

By default, the uploaded items will be in a disabled state, so please review your items and enable them in the FD admin site.

","meta_description":"This script will automate your item uploading from the AccuTrac ERP system to the Fashion Domino website including images. If the item already exists on Fashion Domino, only the new colors will be added to the existing item.","meta_title":"Item upload from AccuTrac to Fashion Domino Script","tags":[],"attributes":[],"enabled":true,"discontinued":false,"slug":"item_upload_from_accutrac_to_fd","sku":"item_upload_accutrac_to_fd","code":"","tax_class":"","related_product_ids":["602efd9636bc35298c53d166"],"prices":[],"quantity_inc":1,"quantity_min":1,"weight":0,"stock_quantity":999,"position":null,"date_stock_expected":null,"date_sale_from":null,"date_sale_to":null,"stock_tracking":false,"stock_preorder":false,"stock_backorder":false,"category_id":"65d3a6fdf59dfe5c02281674","category_ids":["5fd3a4f67913c90598fc8ae2","5fd3a4f67913c90598fc8ae5"],"options":[{"id":"6093fd26654a1e679a7f2f65","name":"Subscription Type","control":"select","required":true,"position":0,"values":[{"id":"6093fd63654a1e679a7f2f67","name":"Per Item"},{"id":"6093fd44654a1e679a7f2f66","name":"Per Month"}]}],"variants":[{"id":"6093fd73654a1e679a7f2f68","sku":"item_upload_accutrac_to_fd_per_month","price":50,"stock_quantity":999,"weight":0,"options":[{"option_id":"6093fd26654a1e679a7f2f65","value_id":"6093fd44654a1e679a7f2f66"}]},{"id":"609437a6654a1e679a7f2f6d","sku":"item_upload_accutrac_to_fd_per_item","price":1,"stock_quantity":999,"weight":0,"options":[{"option_id":"6093fd26654a1e679a7f2f65","value_id":"6093fd63654a1e679a7f2f67"}]}],"cost_price":0,"regular_price":50,"sale_price":0,"on_sale":false,"variable":true,"price":50,"stock_status":"available","url":"https://storlinker.com/web-to-web-automation/item_upload_from_accutrac_to_fd","path":"/web-to-web-automation/item_upload_from_accutrac_to_fd","category_name":"Web to Web Automation","category_slug":"web-to-web-automation","id":"6093f427654a1e679a7f2f64"},"categories":[{"name":"Services","slug":"services","image":"","parent_id":null,"meta_description":"STORLINKER SERVICES","meta_title":"STORLINKER SERVICES","description":"

STORELINKER SERVICES

","id":"5fd3a4f67913c90598fc8ae2","url":"https://storlinker.com/services","path":"/services"},{"name":"Sales Automation","slug":"sales-automation","image":"https://storlinker.com/images/categories/5fd3a4f67913c90598fc8ae5/sales_automation_bi.png","parent_id":"5fd3a4f67913c90598fc8ae2","description":"

STORELINKER SALES AUTOMATION

","meta_description":"SALES AUTOMATION","meta_title":"SALES AUTOMATION","id":"5fd3a4f67913c90598fc8ae5","url":"https://storlinker.com/sales-automation","path":"/sales-automation"},{"name":"Marketing Automation","slug":"marketing-automation","image":"https://storlinker.com/images/categories/5fd3a4f67913c90598fc8ae6/marketing_automation_bi.png","parent_id":"5fd3a4f67913c90598fc8ae2","description":"

STORLINKER MARKETING AUTOMATION

","meta_description":"MARKETING AUTOMATION","meta_title":"MARKETING AUTOMATION","id":"5fd3a4f67913c90598fc8ae6","url":"https://storlinker.com/marketing-automation","path":"/marketing-automation"},{"image":"","name":"Web to Web Automation","description":"

CROSS LISTING (WEB TO WEB) AUTOMATION

","meta_description":"CROSS LISTING (WEB TO WEB) AUTOMATION","meta_title":"WEB TO WEB AUTOMATION","sort":"","parent_id":"5fd3a4f67913c90598fc8ae2","position":1,"slug":"web-to-web-automation","id":"65d3a6fdf59dfe5c02281674","url":"https://storlinker.com/web-to-web-automation","path":"/web-to-web-automation"},{"image":"","name":"AI Product Listing","description":"

AI PRODUCT LISTING

","meta_description":"USING AI, DEFINE YOUR PRODUCTS","meta_title":"AI PRODUCT LISTING","sort":"","parent_id":"5fd3a4f67913c90598fc8ae2","position":2,"slug":"ai-product-listing","id":"65d3a800f59dfe5c02281675","url":"https://storlinker.com/ai-product-listing","path":"/ai-product-listing"},{"image":"","name":"Excel Data Transfer","description":"

DATA TRANSFER FROM WEB TO EXCEL, PDF TO EXCEL, or EXCEL TO WEB

","meta_description":"DATA TRANSFER FROM WEB TO EXCEL, PDF TO EXCEL, or EXCEL TO WEB","meta_title":"EXCEL DATA TRANSFER","sort":"","parent_id":"5fd3a4f67913c90598fc8ae2","position":3,"slug":"excel-data-transfer","id":"65d3a8abf59dfe5c02281676","url":"https://storlinker.com/excel-data-transfer","path":"/excel-data-transfer"},{"image":"","name":"PDF Data Transfer","description":"

DATA TRANSFER FROM PDF TO EXCEL, or PDF TO WEB

","meta_description":"DATA TRANSFER FROM PDF TO EXCEL, or PDF TO WEB","meta_title":"PDF DATA TRANSFER","sort":"","parent_id":"5fd3a4f67913c90598fc8ae2","position":4,"slug":"pdf-data-transfer","id":"65d3ac57f59dfe5c02281677","url":"https://storlinker.com/pdf-data-transfer","path":"/pdf-data-transfer"}],"products":[],"productsTotalCount":0,"productsHasMore":false,"productsMinPrice":0,"productsMaxPrice":0,"productsAttributes":[],"paymentMethods":[],"shippingMethods":[],"loadingProducts":false,"loadingMoreProducts":false,"loadingShippingMethods":false,"loadingPaymentMethods":false,"processingCheckout":false,"productFilter":{"onSale":null,"search":"","priceFrom":0,"priceTo":0,"sort":"stock_status,price,position","fields":"path,id,name,category_id,category_name,sku,images,enabled,discontinued,stock_status,stock_quantity,price,on_sale,regular_price,attributes,tags,position","limit":30},"cart":null,"order":null,"checkoutFields":[{"name":"comments","label":"Comments","placeholder":"","status":"optional"},{"name":"address2","label":"Address 2","placeholder":"","status":"optional"},{"name":"mobile","label":"Mobile Phone","placeholder":"Mobile Phone","status":"required"},{"name":"first_name","label":"First Name","placeholder":"","status":"required"},{"name":"last_name","label":"Last Name","placeholder":"","status":"required"},{"name":"email","label":"Email","placeholder":"","status":"required"},{"name":"password","label":"Password","placeholder":"","status":"required"},{"name":"password_verify","label":"Password Confirm","placeholder":"","status":"required"},{"name":"address1","label":"Address 1","placeholder":"","status":"required"},{"name":"postal_code","label":"Postal Code","placeholder":"","status":"required"},{"name":"country","label":"Country","placeholder":"","status":"required"},{"name":"state","label":"State","placeholder":"","status":"required"},{"name":"city","label":"City","placeholder":"","status":"required"}],"themeSettings":{"checkoutInputClass":"checkout-field","checkoutButtonClass":"checkout-button button is-primary","checkoutEditButtonClass":"checkout-button button","cartThumbnailWidth":100,"footer_contacts":[{"text":"info@storlinker.com"}],"footer_about":"Online Sales and Marketing Automation Company","footer_menu_2_title":"Customer service","footer_menu_1_title":"Company","footer_social":[],"footer_menu_1_items":[{"text":"About Us","url":"/about"},{"text":"Terms of Service","url":"/tos"},{"text":"Privacy Policy","url":"/privacy-policy"}],"footer_menu_2_items":[{"text":"FAQ","url":"/faq"},{"text":"Contact","url":"/contact"}],"search_placeholder":"","home_products_limit":0,"home_products_title":"FEATURED SERVICES","home_products_sort":"date_created","home_slider":[],"home_slider_color":"#848484","button_addtocart_text":"Subscribe","maxCartItemQty":100,"product_thumbnail_position":"left","bigThumbnailWidth":800,"previewThumbnailWidth":100,"list_image_max_height":280,"listThumbnailWidth":340,"show_product_filter":true,"show_category_breadcrumbs":false,"show_discount_countdown":true,"show_product_breadcrumbs":true,"sortNewest":"-date_created","sortPriceLow":"price","sortPriceHigh":"-price","footer_logo_url":"trademark.png","limit_viewed_products":4,"show_viewed_products":true,"product_gallery_shownav":true,"page_list_tag":"blog","home_gallery_shownav":false,"hide_footer_on_checkout":true,"header_menu":[{"text":"Solutions","url":"/solution"},{"text":"Pricing","url":"/services"},{"text":"Resources","url":"/resource"},{"text":"Contact","url":"/contact"}],"related_products_title":"You might also interested in...","button_loadmore_text":"Load More","button_addtocart_bg":"#423771","button_addtocart_color":"#ffffff","details_price_color":"#ff0000","button_loadmore_bg":"#000000","button_loadmore_color":"#ffffff","list_price_color":"#000000","home_products_sku":"item_upload_from_fd_to_shopify,item_upload_from_fd_to_faire,item_upload_fd_o_fg,item_upload_fd_to_las,item_upload_fd_to_os,item_upload_csv_to_fd,item_upload_myweb_to_fg,item_upload_myweb_to_las,item_upload_myweb_to_os"}},"form":{}};