Posts

Showing posts with the label shopify

Ajax/jQuery autocomplete in search box (Shopify)

Ajax/jQuery autocomplete in search box (Shopify) I am looking to get autocomplete setup on my search bars within my Shopify shop- this uses Liquid and ajax I found this tutorial, and implemented it as it says, however it is not working, nothing gets autocompleted on any search bar on the site- I think it may be quite old and was written before the updates/changes to Minimal/Shopify search functionality. https://help.shopify.com/themes/customization/store/enable-autocomplete-for-search-boxes I can follow it through with Chrome dev tools, and it seems like it gets stuck where it adds the search-results list $('<ul class="search-results"></ul>').appendTo($(this)).hide(); , this doesn't appear when tracing the HTML of the page. This means that when it later tries to find this list var resultsList = form.find('.search-results'); it doesn't find it, and thus cannot populate with items. $('<ul class="search-results"></ul...

How to add item quantity of the cart specify by a variant to the related product

How to add item quantity of the cart specify by a variant to the related product I've tried many ways to show item quantity in cart based on product variant. Please take a look here https://chaldal.com/fresh-vegetable and try to add a product with the different variant. The quantity only showing for the related products in the cart button By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Shopify order webhooks

Shopify order webhooks I looked into the different order webhooks and was wondering when they are triggered. This is what I figured out so far: orders/updated orders/create orders/create orders/paid orders/fulfilled orders/cancelled Since orders/updated is also fired whenever the other hooks are fired, it seems as if adding an update webhook would be good enough for keeping a local datastore synced to the shop data. However, I want to confirm that my understanding of those webhooks is correct, i.e. is it true that orders/updated is always fired whenever an order changes in any way. and that the other webhooks are just aimed at more specific use cases? orders/updated orders/updated 1 Answer 1 I'd say for sake of keeping the code easier to understand it would be in your best interest to handle the appropriate webhooks just to keep the code easier to understand. If all you're doing is trackin...