|
13 | 13 | </button> |
14 | 14 | <div class="flex-grow"> |
15 | 15 | <label class="text-sm block">Select dataset</label> |
16 | | - <select :value="context.datasetId" |
17 | | - class="mb-6" |
18 | | - @change="setDataset(($event.target as HTMLInputElement).value)"> |
| 16 | + <select :value="context.datasetId" class="mb-6" |
| 17 | + @change="setDataset(($event.target as HTMLInputElement).value)"> |
19 | 18 | <option v-for="dataset in datasets" :key="dataset.datasetId" :value="dataset.datasetId"> |
20 | 19 | {{ dataset.displayName }} ({{ dataset.datasetId }}) |
21 | 20 | </option> |
|
46 | 45 | <label class="text-sm block mt-6">API Key</label> |
47 | 46 | <input v-model="context.apiKey" type="text" placeholder="Api key"> |
48 | 47 |
|
49 | | - <ListValues label="Languages" |
50 | | - :items="context.allLanguages" |
51 | | - :single-item="context.language" |
52 | | - input-placeholder="LanguageCode" |
53 | | - new-item-placeholder="New Language"/> |
| 48 | + <ListValues label="Languages" :items="context.allLanguages" :single-item="context.language" |
| 49 | + input-placeholder="LanguageCode" new-item-placeholder="New Language" /> |
54 | 50 |
|
55 | | - <ListValues label="Currencies" |
56 | | - :items="context.allCurrencies" |
57 | | - :single-item="context.currencyCode" |
58 | | - input-placeholder="CurrencyCode" |
59 | | - new-item-placeholder="New Currency"/> |
| 51 | + <ListValues label="Currencies" :items="context.allCurrencies" :single-item="context.currencyCode" |
| 52 | + input-placeholder="CurrencyCode" new-item-placeholder="New Currency" /> |
60 | 53 |
|
61 | 54 | <label class="text-sm block mt-6">Server url</label> |
62 | 55 | <input v-model="context.serverUrl" type="text" placeholder="Server Url"> |
|
70 | 63 | <div class="pl-8 flex flex-col gap-6"> |
71 | 64 | <div> |
72 | 65 | <label class="flex mt-2 items-center"> |
73 | | - <input v-model="context.allowThirdLevelCategories" |
74 | | - class="accent-brand-500 mr-3 h-5 w-5" |
75 | | - type="checkbox"> |
| 66 | + <input v-model="context.allowThirdLevelCategories" class="accent-brand-500 mr-3 h-5 w-5" |
| 67 | + type="checkbox"> |
76 | 68 | Third level categories</label> |
77 | 69 |
|
78 | 70 | <p class="text-gray-500 text-sm mt-1"> |
|
95 | 87 |
|
96 | 88 | <div> |
97 | 89 | <label class="flex mt-2 items-center"> |
98 | | - <input v-model="context.userClassificationFilters" class="accent-brand-500 mr-3 h-5 w-5" type="checkbox"> |
99 | | - Hide products not available for the user's <code class="px-1">country</code> or <code class="px-1">channel</code> classification |
| 90 | + <input v-model="context.userClassificationFilters" class="accent-brand-500 mr-3 h-5 w-5" |
| 91 | + type="checkbox"> |
| 92 | + Hide products not available for the user's <code class="px-1">country</code> or <code |
| 93 | + class="px-1">channel</code> classification |
100 | 94 | </label> |
101 | 95 | <p class="text-gray-500 text-sm mt-1"> |
102 | | - We base the filters on the product's <code>AvailableInMarkets</code> and <code>AvailableInChannels</code> data keys. |
| 96 | + We base the filters on the product's <code>AvailableInMarkets</code> and |
| 97 | + <code>AvailableInChannels</code> |
| 98 | + data keys. |
103 | 99 | </p> |
104 | 100 | </div> |
105 | 101 |
|
106 | 102 | <div> |
107 | 103 | <label class="flex mt-2 items-center"> |
108 | | - <input v-model="context.showProductRelevanceScore" class="accent-brand-500 mr-3 h-5 w-5" type="checkbox"> |
| 104 | + <input v-model="context.showProductRelevanceScore" class="accent-brand-500 mr-3 h-5 w-5" |
| 105 | + type="checkbox"> |
109 | 106 | Show Product Relevance Score in Search</label> |
110 | 107 |
|
111 | 108 | <p class="text-gray-500 text-sm mt-1"> |
112 | | - This will show the product relevance score in search. This can be helpful when showcasing Quality Score Thresholds for Retail Media, as it allows you to see the score and it's therefore easier to set the correct threshold. |
| 109 | + This will show the product relevance score in search. This can be helpful when showcasing Quality |
| 110 | + Score |
| 111 | + Thresholds for Retail Media, as it allows you to see the score and it's therefore easier to set the |
| 112 | + correct |
| 113 | + threshold. |
113 | 114 | </p> |
114 | 115 | </div> |
115 | 116 |
|
|
119 | 120 | Enable B2B recommendations</label> |
120 | 121 |
|
121 | 122 | <p class="text-gray-500 text-sm mt-1"> |
122 | | - This will replace the recommendation on the cart page with popular products for category with id '3_5'. |
| 123 | + This will replace the recommendation on the cart page with popular products for category with id |
| 124 | + '3_5'. |
123 | 125 | </p> |
124 | 126 | </div> |
125 | 127 |
|
|
132 | 134 | This will add a badge to product tiles when the product has variants available. |
133 | 135 | </p> |
134 | 136 | </div> |
135 | | - |
| 137 | + |
136 | 138 | <div> |
137 | 139 | <label class="flex mt-2 items-center"> |
138 | 140 | <input v-model="context.similarProductsOnPdp" class="accent-brand-500 mr-3 h-5 w-5" type="checkbox"> |
139 | 141 | Similar products recommendation on PDP</label> |
140 | 142 |
|
141 | 143 | <p class="text-gray-500 text-sm mt-1"> |
142 | | - This will replace the recommendation on the PDP with a similar products recommendation with a specific category id filter when the product is sold out. |
| 144 | + This will replace the recommendation on the PDP with a similar products recommendation with a |
| 145 | + specific |
| 146 | + category id filter when the product is sold out. |
143 | 147 | </p> |
144 | 148 | </div> |
145 | 149 |
|
146 | 150 | <div> |
147 | 151 | <label class="flex mt-2 items-center"> |
148 | | - <input v-model="context.variantBasedSearchOverlay" |
149 | | - class="accent-brand-500 mr-3 h-5 w-5" |
150 | | - type="checkbox"> |
| 152 | + <input v-model="context.variantBasedSearchOverlay" class="accent-brand-500 mr-3 h-5 w-5" |
| 153 | + type="checkbox"> |
151 | 154 | Turn on the variant-based search overlay</label> |
152 | 155 |
|
153 | 156 | <p class="text-gray-500 text-sm mt-1"> |
|
157 | 160 |
|
158 | 161 | <div> |
159 | 162 | <label class="flex mt-2 items-center"> |
160 | | - <input v-model="context.searchHighlight" |
161 | | - class="accent-brand-500 mr-3 h-5 w-5" |
162 | | - type="checkbox"> |
| 163 | + <input v-model="context.searchHighlight" class="accent-brand-500 mr-3 h-5 w-5" type="checkbox"> |
163 | 164 | Search Highlight</label> |
164 | 165 |
|
165 | 166 | <p class="text-gray-500 text-sm mt-1"> |
166 | | - When this is enabled, matched words in the display name of products & content in the search overlay will be highlighted. |
| 167 | + When this is enabled, matched words in the display name of products & content in the search overlay |
| 168 | + will be |
| 169 | + highlighted. |
167 | 170 | </p> |
168 | 171 | </div> |
169 | 172 |
|
170 | 173 | <div> |
171 | 174 | <label class="flex mt-2 items-center"> |
172 | | - <input v-model="context.contentSearch" |
173 | | - class="accent-brand-500 mr-3 h-5 w-5" |
174 | | - type="checkbox"> |
| 175 | + <input v-model="context.contentSearch" class="accent-brand-500 mr-3 h-5 w-5" type="checkbox"> |
175 | 176 | Content Search</label> |
176 | 177 |
|
177 | 178 | <p class="text-gray-500 text-sm mt-1"> |
178 | 179 | When this is enabled, content will be able to be searched for in the search overlay. |
179 | 180 | </p> |
180 | 181 | </div> |
181 | 182 |
|
| 183 | + <div> |
| 184 | + <label class="flex mt-2 items-center"> |
| 185 | + <input v-model="context.shoppertainmentEnabled" class="accent-brand-500 mr-3 h-5 w-5" |
| 186 | + type="checkbox"> |
| 187 | + Shoppertainment</label> |
| 188 | + |
| 189 | + <p class="text-gray-500 text-sm mt-1"> |
| 190 | + <strong>Feature is in preview. This is not enabled on all datasets yet.</strong> |
| 191 | + When this is enabled, the Shoppertainment link wil appear in the navigation. |
| 192 | + </p> |
| 193 | + </div> |
| 194 | + |
182 | 195 | <div> |
183 | 196 | <label class="text-sm block mt-6">Set 'Minutes ago' used for recommendations</label> |
184 | 197 | <input v-model="context.recommendationsMinutesAgo" type="text"> |
|
193 | 206 | </label> |
194 | 207 |
|
195 | 208 | <p class="text-gray-500 text-sm mt-1"> |
196 | | - Automatically boosts specific products in search results and product listings based on UTM parameters in the URL: |
| 209 | + Automatically boosts specific products in search results and product listings based on UTM |
| 210 | + parameters in the |
| 211 | + URL: |
197 | 212 | <br><br> |
198 | | - • When UTM value is <code>promoted</code>: Products with the Data Key "Promoted" as <code>true</code> will receive a 50% relevance boost |
| 213 | + • When UTM value is <code>promoted</code>: Products with the Data Key "Promoted" as |
| 214 | + <code>true</code> will |
| 215 | + receive a 50% relevance boost |
199 | 216 | <br> |
200 | | - • For all other UTM values: Products with matching campaign IDs in Data Key <code>campaignIds</code> will receive a 50% relevance boost |
| 217 | + • For all other UTM values: Products with matching campaign IDs in Data Key <code>campaignIds</code> |
| 218 | + will |
| 219 | + receive a 50% relevance boost |
201 | 220 | <br><br> |
202 | | - Supported UTM parameters: <code>utm_source</code>, <code>utm_medium</code>, <code>utm_campaign</code>, <code>utm_term</code>, <code>utm_content</code> |
| 221 | + Supported UTM parameters: <code>utm_source</code>, <code>utm_medium</code>, |
| 222 | + <code>utm_campaign</code>, |
| 223 | + <code>utm_term</code>, <code>utm_content</code> |
203 | 224 | </p> |
204 | 225 | </div> |
205 | 226 | </div> |
|
222 | 243 | <button class="" @click="save"> |
223 | 244 | Save |
224 | 245 | </button> |
225 | | - |
| 246 | + |
226 | 247 | <span v-if="saved" class="ml-4 text-green-600"> |
227 | 248 | Settings have been saved. |
228 | 249 | </span> |
|
0 commit comments