This file contains 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 customClasses = { | |
'pages\\custom\\category\\react-demo': () => import('./theme/custom/react-demo'), // Windows | |
'pages/custom/category/react-demo': () => import('./theme/custom/react-demo'), // Mac/Linux | |
}; |
This file contains 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 React from 'react' | |
import ReactDOM from 'react-dom' | |
import PageManager from '../page-manager' | |
const HelloWorld = (props) => ( | |
<div> | |
<p>Hello World from React!</p> | |
<p>Here are my props:</p> | |
<pre>{JSON.stringify(props, null, 2)}</pre> | |
</div> |
This file contains 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
{ | |
"normalStoreUrl": "https://<store-domain>", | |
"accessToken": "<api-token>", | |
"port": 3000, | |
"customLayouts": { | |
"brand": {}, | |
"category": { | |
"react-demo.html": "/shop-all/" | |
}, | |
"page": {}, |
This file contains 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
--- | |
category: | |
shop_by_price: true | |
products: | |
limit: {{theme_settings.categorypage_products_per_page}} | |
--- | |
{{inject "categoryProductsPerPage" theme_settings.categorypage_products_per_page}} | |
{{#partial "head"}} | |
{{#if pagination.category.previous}} | |
<link rel="prev" href="{{pagination.category.previous}}"> |
This file contains 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
"CLIENT_ID": { | |
"Ref": "BCCLIENTID" | |
} |
This file contains 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
"BCCLIENTID": { | |
"Type": "String", | |
"Default": "" | |
} |
This file contains 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
{ | |
"BCCLIENTID": "<YOUR BIGCOMMERCE CLIENT ID>" | |
} |
This file contains 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
exports.handler = (event, context, callback) => { | |
if (event.request.session.length == 0) { | |
event.response.issueTokens = false | |
event.response.failAuthentication = false | |
event.response.challengeName = 'CUSTOM_CHALLENGE' | |
} else if (event.request.session.length == 1 && event.request.session[0].challengeName == 'CUSTOM_CHALLENGE' && event.request.session[0].challengeResult == true) { | |
event.response.issueTokens = true | |
event.response.failAuthentication = false | |
} else { | |
event.response.issueTokens = false |
This file contains 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
HTTPS=true |
This file contains 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
"CLIENT_ID": { | |
"Ref": "BCCLIENTID" | |
}, | |
"REDIRECT_URL": { | |
"Ref": "REDIRECTURL" | |
} |
NewerOlder