shopify

Color swatch on collections page I Shopify

陌路散爱 提交于 2021-02-20 04:31:05
问题 I have a shopify store and I added a color swatch palette to my shopify collections page . How do I display only the colors that are in stock? http://gloria22x.myshopify.com/collections/alle-produkte?sort_by=manual Thanks, Alex {% for option in product.options %} {% if option == 'Color' %} {% assign index = forloop.index0 %} {% assign colorlist = '' %} {% assign color = '' %} {% for variant in product.variants %} {% capture color %} {{ variant.options[index] }} {% endcapture %} {% unless

Shopify: Pass values from non-Shopify site to Shopify Checkout and get URL

浪尽此生 提交于 2021-02-11 15:05:24
问题 I have a static (non-Shopify) HTML and JS website with a shopping cart where its functionality is carried out using JS and Jquery. I need to pass my cart values to Shopify and take the user directly to the Shopify Checkout page when user clicks on the checkout button on my site. I need to pass cart values to Shopify and load the checkout page on the browser. How can I do this? I'm new to Shopify and I need some guidance on how to do this. 回答1: If you have access to variant ids and quantities

Use js variable with Shopify liquid tag

雨燕双飞 提交于 2021-02-11 14:56:25
问题 Currently in Shopify we can create a file.js.liquid which grants access to liquid functionality. <script> var liquidData = { myValue: {{ product.image | asset_url }} } </script> How can I use a variable in the placeme of product.image? In example: var myVar = 'something.jpg' var liquidData = { myValue: {{ myVar | asset_url }} } Currently this does not work for me the path it out puts is myVar as a string not as a variable. I also tried concatenation and it also reads the variable name as a

Is It Possible To Use An External Database For User Data & Login Credentials With Shopify?

こ雲淡風輕ζ 提交于 2021-02-10 21:38:58
问题 Our client has asked us to build a Shopify site that ties into their in-house customer db (with or without using Salesforce). Is this even possible? Does Shopify support any method of cross-site database querying? The only thing I can think of to accomplish this is to write a webhook on their in-house server with a simple read-only mini DB query API. However, as that I'm not super familiar with Shopify's more obscure capabilities (and having already spent quite some time sifting through their

Is It Possible To Use An External Database For User Data & Login Credentials With Shopify?

℡╲_俬逩灬. 提交于 2021-02-10 21:37:34
问题 Our client has asked us to build a Shopify site that ties into their in-house customer db (with or without using Salesforce). Is this even possible? Does Shopify support any method of cross-site database querying? The only thing I can think of to accomplish this is to write a webhook on their in-house server with a simple read-only mini DB query API. However, as that I'm not super familiar with Shopify's more obscure capabilities (and having already spent quite some time sifting through their

call shopify api Creating a checkout response variantid is invalid

蓝咒 提交于 2021-02-10 16:26:14
问题 i call api Creating a checkout the variant_id is 38894644552 is correct ,but this api response variantid is is invalid get my shop variant id get https://suisui.myshopify.com/admin/products/9981337608/variants.json Response: { "variants": [ { "id": 38894644552, "product_id": 9981337608,... Creating a checkout with variant id POST /admin/checkouts.json HTTP/1.1 Host: suisui.myshopify.com X-Shopify-Access-Token: xxx Content-Type: application/json { "checkout": { "lineitems": [ { "variantid":

Prevent to click “Add to Cart” button if specific product not selected - Shopify

半城伤御伤魂 提交于 2021-02-10 14:18:51
问题 Hi experts have a nice day, I have a project on Shopify where I'm getting struggled on how to prevent and make alert when a specific product selected for some conditions. I made a product template where I populate list of products from collection A as a first set of selection and collection B as a second set of selection. This is a product page where I can select 1 product from collection A and also 1 product from collection B (Each product has Add to Cart button) The condition is collection

Shopify GraphQL Admin API rate limiting cost and sleep time

筅森魡賤 提交于 2021-02-10 06:14:35
问题 I am trying to consume Shopify GraphQL API for Admin in PHP ( Laravel ). Rate limiting and throttling works differently in GraphQL api as compared to REST api, its calculated based on the cost of the query. Few points to keep in mind: Maximum available cost is 1000 for one api call (query). If you have consumed some points from 1000, every second, 50 points will be restored. If you have less points of cost in your bucket, and you make a query of cost higher than that, it will throttle. The

Shopify GraphQL Admin API rate limiting cost and sleep time

倾然丶 夕夏残阳落幕 提交于 2021-02-10 06:14:18
问题 I am trying to consume Shopify GraphQL API for Admin in PHP ( Laravel ). Rate limiting and throttling works differently in GraphQL api as compared to REST api, its calculated based on the cost of the query. Few points to keep in mind: Maximum available cost is 1000 for one api call (query). If you have consumed some points from 1000, every second, 50 points will be restored. If you have less points of cost in your bucket, and you make a query of cost higher than that, it will throttle. The

upload image field on product page of shopify theme

帅比萌擦擦* 提交于 2021-01-29 21:33:46
问题 I want to add a field for my customers to upload an image when they will purchase a product or add to cart a product. When input type if file it allows to upload a photo but it does not work. Can anybody give me that solution? <div class="product-form__item product-form__item-uplpic"> <label for="photo">Upload Photo</label> <input required class="product-form__input required" id="photo" type="file" name="properties[Uploaded Image]"> </div> 回答1: You can definitely give your customers an