Skip to content

Commit 134d9c5

Browse files
committed
cleanup(shopify): make sure add to cart is default off for global component
1 parent 6c16314 commit 134d9c5

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

clients/trieve-shopify-extension/extensions/global-search/blocks/global_component.liquid

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
numberOfSuggestions: Number(getValue("{{ block.settings.number_of_suggestions }}", 3)),
4949
openLinksInNewTab: toBool(getValue("{{ block.settings.open_links_new_tab }}", true)),
5050
theme: getValue("{{ block.settings.theme }}", "light"),
51-
onAddToCart: (chunk) => {
52-
addToCart(parseInt(chunk.tracking_id))
53-
},
5451
getCartQuantity: (trackingId) => {
5552
return checkCartQuantity(parseInt(trackingId));
5653
},

clients/trieve-shopify-extension/extensions/global-search/blocks/inline_component.liquid

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@
5353
numberOfSuggestions: Number(getValue("{{ block.settings.number_of_suggestions }}", 3)),
5454
openLinksInNewTab: toBool(getValue("{{ block.settings.open_links_new_tab }}", true)),
5555
theme: getValue("{{ block.settings.theme }}", "light"),
56-
onAddToCart: (chunk) => {
57-
addToCart(parseInt(chunk.tracking_id))
58-
},
5956
getCartQuantity: (trackingId) => {
6057
return checkCartQuantity(parseInt(trackingId));
6158
},

0 commit comments

Comments
 (0)