- In DC go to Development > Content Type Schemas
- Create a new schema
- id: http://example.com/blogpost-algolia-demo.json
- Used for: Content Type
- Paste in the json from blogpost-algolia-demo.json and save the schema
- Go to Development > Content Types
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,700&display=swap"> | |
<style> | |
body { | |
font-family: 'Roboto', sans-serif; | |
} | |
.ampx-body, |
/** | |
* Class which process all of the already parsed images: generates an object with images ready for import and generates a report for the import | |
* | |
*/ | |
importPackage( dw.system ); | |
importPackage( dw.catalog ); | |
importPackage( dw.util ); | |
importScript( "dm/util/ProcessingLogger.ds" ); | |
importScript( "dm/util/ManifestImportReportLogger.ds" ); |
diff --git a/cartridges/bc_amplience/cartridge/scripts/api/libAmplienceAPIAuth.ds b/cartridges/bc_amplience/cartridge/scripts/api/libAmplienceAPIAuth.ds | |
index dd9bc27..1a480ca 100644 | |
--- a/cartridges/bc_amplience/cartridge/scripts/api/libAmplienceAPIAuth.ds | |
+++ b/cartridges/bc_amplience/cartridge/scripts/api/libAmplienceAPIAuth.ds | |
@@ -7,7 +7,7 @@ | |
/** @module api/libAmplienceAPIAuth */ | |
/* API Includes */ | |
-var ServiceRegistry = require('dw/svc/ServiceRegistry'); | |
+importScript("init/httpServiceInit.ds"); |
{ | |
"_v": "18.7", | |
"clients": [{ | |
"client_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", | |
"resources": [{ | |
"resource_id": "/sites/*/slot_configurations", | |
"methods": ["post"], | |
"read_attributes": "(**)", | |
"write_attributes": "(**)" | |
}, { |
var renderTypes = { | |
"blog": "3f6a5662-1998-4cf0-b369-f8ee6a7f0e42", | |
"image": "f0b1f9c8-9fbd-4470-aeb2-543c3cb01f19", | |
"text": "c6fe6238-4752-47bc-bc5e-3413d0d08d30", | |
"banner": "1dc05e15-e2cb-4b7a-84d6-354bc31aae7b", | |
"link": "7b908316-30d9-409e-8ff7-c23fa8526cfe", | |
"video": "eac8a783-932e-4900-bd96-bcaa84646499", | |
"slider": "7940d31f-513c-405b-b7b8-f60e6af8420a", | |
"snippet": "52a76880-f196-4e4e-9153-a32bcd24015f", | |
"card": "8b7fa2a3-2dee-494d-9eeb-0a46deaca253", |
dataLayer = dataLayer.filter (function (el) { | |
/* Clean up datalayer so there are not multiple impressions objects */ | |
if (el.ecommerce) { | |
return !el.ecommerce.impressions; | |
} else { | |
return el; | |
} | |
}); |
orderItems: function (el) { | |
// Find each description list | |
var dls = $('.js-orditems'); | |
var arr = []; | |
for (var i = 0, l = dls.length; i < l; i++) { | |
var $this = $(dls[i]); | |
var dts = $($this).find('dt'); | |
var dtdds = {}; /* object to hold the dts and dds */ |