Building your Integration
Tech Partner Block Requirements
Your block will be required to have the following completed in order to get approved.
- Add Tagging
- QA your block on 3+ merchants
Adding Tagging to a your Custom Block
When building a custom block, we require you to add tagging in order for us to help provide adoption metrics back to you as your block is distributed. To add tagging you should follow the following pattern
Tagging Key | Field Description | Field type | Example |
---|---|---|---|
block-vendor | Name of the tech partner | string | tapcart |
block-type | Generic name for the type of block created | string | chatbot |
Currently we have the following block-type categories which we recommend you consider when assigning a block-type however you are not restricted to these categories. You may apply
- chatbot
- review
- loyalty
- product-recommendations
- quizzes
- smsform
To add your tag to the block, at the end of your javascript append the tagging similar to the example below
function skuFinder(product) {
const tc = product;
const found = tc.variants.find(element => element.id === tc.selectedVariant.id);
console.log(found.sku);
document.querySelector(".sku").innerText = found.sku;
}
skuFinder(Tapcart.variables.product);
// block-vendor:tapcart
// block-type:product-recommendations
Updated over 1 year ago