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
--- | |
product: | |
videos: | |
limit: {{theme_settings.productpage_videos_count}} | |
reviews: | |
limit: {{theme_settings.productpage_reviews_count}} | |
related_products: | |
limit: {{theme_settings.productpage_related_products_count}} | |
similar_by_views: | |
limit: {{theme_settings.productpage_similar_by_views_count}} |
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
import PageManager from "./page-manager"; | |
const fetch = require('node-fetch'); | |
export default class Custom extends PageManager { | |
constructor(context) { | |
super(context); | |
this.url = window.location.href; | |
} | |
onReady(){ | |
const token = jsContext.token; |
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
const getWishlists = new Promise(async function(resolve, reject) { | |
await bigCommerce.get('/wishlists').then(data => { | |
Arr = data.data; | |
let wArr = []; | |
for (let [key, value] of Object.entries(Arr)) { | |
if (value.id) { | |
wArr.push(value.id); | |
} | |
} | |
e(); |
NewerOlder