shopify

How to get the page scope id of Facebook when user checkout in my Shopify store?

断了今生、忘了曾经 提交于 2019-12-12 19:21:14
问题 Before facebook last update I was using Facebook Send message API by passing user reference. I was getting this information by checking the checkbox during checkout in my store (Shopify) using Facebook. Now the Facebook Send message API no longer returns recipient_id in the response for message sends that use recipient.user_ref or recipient.phone_number to identify the message recipient. Now they are using the Page scope id syntax is recipient": { "id": "<PSID>" }, i am using this API How can

Show product quantity in cart in products div with ajax

社会主义新天地 提交于 2019-12-12 16:54:37
问题 I'm using the default Supply theme for my Shopify store and I've enabled Ajaxify Cart option. I've customised the theme so that if a customers add Product X to the cart, reloads and hovers over the product (on the collections page) it shows that Product X is added 1 time to the cart. This is the liquid code that shows the quantity of Product X in the cart: <!-- Snippet from product-grid-item.liquid --> {% assign count = 0 %} {% for item in cart.items %} {% if product.id == item.product.id %}

Does Shopify Order API allows filtering by nested fields?

荒凉一梦 提交于 2019-12-12 10:46:35
问题 I'm using the shopify_api gem. The API doc shows that you can skinny down a ShopifyAPI::Order response by telling it which fields to return. For example, the following will return only the id attribute, and the shipping_address attribute(s) ShopifyAPI::Order.find(:all, params: {fields: "id,shipping_address"}) shipping_address happens to be a hash with multiple fields inside it. Is it possible to specify which fields nested within shipping_address to return? e.g. ShopifyAPI::Order.find(:all,

HMAC-SHA256 issue in Shopify oauth (Output does not match)

你离开我真会死。 提交于 2019-12-12 09:16:47
问题 I'm trying to publish an app on Shopify marketplace by following this documentation. And I'm stuck on step-3 of the oauth documentation wherein you have to do 'HMAC Signature Validation'. Documentation states that you have to process the string (specified below) through HMAC-SHA256 using app's shared secret key. String = "shop=some-shop.myshopify.com&timestamp=1337178173" I'm trying to implement the steps using Java. Following is gist of the code that I have used. private static final String

how to use sublime text 2 for grunt-shopify

只愿长相守 提交于 2019-12-12 06:21:06
问题 I am very new to Node.js, Grunt and even Sublime text 2 Following this short tutorial: https://www.otreva.com/web-development/shopify-desktop-theme-editor-windows-linux/ I think I've finally reached the 6th (last) step. All I need to know is how to complete step 6 ' grunt watch:shopify ' Can anyone give me a pointer on this? Where and how do I Start the Grunt and watch it upload your theme files within ‘/shop/’ each time you modify and save them! Make sure you leave the terminal window open.

Shopify image slider- Always extend to users full screen

落爺英雄遲暮 提交于 2019-12-12 05:36:52
问题 right so, i would really appreciate some help here. this code is well over my head Basically the site is 976px; the slider is fitting to this at most( if i extend the site size the slider stays at this 976px.) anything under this it works well. (scales to mobile) i want to increase the height it takes up and also i want to make it so it is width is always 100% of the users screen. index page calling the slider {% include 'slider' %} slider.liquid {% if settings.slider_home_enable %} <div

How to keep the user logged in or check if the user is logged in or not in Shopify?

最后都变了- 提交于 2019-12-12 04:29:31
问题 Hi I used the following code to login a user in Shopify. NSArray *items = @[[BUYAccountCredentialItem itemWithEmail:email], [BUYAccountCredentialItem itemWithPassword:password]]; BUYAccountCredentials *credentials = [BUYAccountCredentials credentialsWithItems:items]; [self.client loginCustomerWithCredentials:credentials callback:^(BUYCustomer * customer, BUYCustomerToken * token, NSError * _Nullable error) { if (customer && !error) { NSUserDefaults *prefs = [NSUserDefaults

Metafields in Shopify: Trying to display Final Sale message for products that are 60% off

限于喜欢 提交于 2019-12-12 04:12:25
问题 In my customized Shopify theme, a "Final Sale" message displays for any product that is 70% off using the following code: {% assign finalSale = product.metafields.details.final_sale | upcase %} {% if finalSale == 'TRUE' %} <p style="color: #B21F1F;"> This item is final sale -- no returns or exchanges are accepted. </p> {% endif %} I am trying to change this so it displays the Final Sale message when the product is 60% off. My theme is using the Metafields 2 app and I do see the active

(Shopify) How to show stock level on product page?

老子叫甜甜 提交于 2019-12-12 04:05:11
问题 Coding noob here. I give up. Been trying to this on my own for a week. I can't display the stock level on my product page (based on inventory). I'm using the theme "Debut". I saw this and this, but can't make things happen. Any help would be very much appreciated!! 回答1: Debut does not have selectCallback. If you use another template, like Launchpad-Star, the instructions work perfectly. 1) Edit the product in question and be sure Inventory policy is set to "Shopify tracks this product's

Using javascript variables in Shopify liquid

空扰寡人 提交于 2019-12-12 03:53:43
问题 I am trying to use a javascript variable inside the image tag but it is not working. I want to create a filter for my collection in a developing project, where I can filter products by the textures of products. I have coded the following: <div class="collection-filter-navbar-nav"> {% assign tags = 'white, yellow, golden' | split: ',' %} <ul class="fabric-filter"> <li><a href="javascript:void(0);" >All</a></li> {% for t in tags %} {% assign tag = t | strip %} {% if current_tags contains tag %}