This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% liquid | |
| assign app_namespace = 'app--67872686081' | |
| assign cross_sell_bundle_config = product.metafields[app_namespace].cross_sell_products.value | |
| assign active = cross_sell_bundle_config.active | |
| %} | |
| <p> | |
| <strong>Active: </strong> | |
| {{ active }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| // refferred to as utils.js in the gist | |
| import { every, groupBy, isEmpty } from "./utils/methods"; | |
| /** | |
| * @typedef {import("../generated/api").InputQuery} InputQuery | |
| * @typedef {import("../generated/api").FunctionResult} FunctionResult | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| /** | |
| * @typedef {import("../generated/api").InputQuery} InputQuery | |
| * @typedef {import("../generated/api").FunctionResult} FunctionResult | |
| */ | |
| /** | |
| * @type {FunctionResult} | |
| */ |