shopify

Can I change a date on shopify blog using api?

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:43:12
问题 I must be brief, not much time left... I'm trying to backdate some blog posts that were written in the run-up to our store launch. I'm using curl from the command line and I can POST new blog articles, and I can PUT changes to existing blog articles, but I can't adjust the date of the existing articles yet. Can you help me? Thanks! Here's my curl request... curl -i -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d '{ "article": {"id": xxxxxx, "created_at": "2012-08

shopify click on different button will run different liquid code

依然范特西╮ 提交于 2019-12-12 03:36:25
问题 If a user click on a button which has class name: '3-col', it will execute the following code: '{% assign products_per_row = "3" %}'. and if a user click on a '4-col' button, it will execute the following code: '{% assign products_per_row = "4" %}'. However the code below doesn't work. I have researched all ways to do that, but I couldn't. Any advice is appreciated. Thanks! <button class='3-col' onclick="prod3()"></button> <button class='4-col'onclick="prod4()" ></button> {% include 'product

issue with @font-face on mozilla while using Shopify

最后都变了- 提交于 2019-12-12 03:35:31
问题 I am using the css @font-face { font-family: ChangaOne-Regular; src: url({{ 'changaone-regular.eot' | asset_url }}); src: url({{ 'changaone-regular.eot?#iefix' | asset_url }}) format('embedded-opentype'), url({{ 'changaone-regular.woff' | asset_url }}) format('woff'), url({{ 'changaone-regular.ttf' | asset_url }}) format('truetype'), url({{'changaone-regular.svg#changaone-regular' | asset_url }}) format('svg'); font-weight: normal; font-style: normal; } I have saved the font in images folder.

Django signals with shopify webhooks

半腔热情 提交于 2019-12-12 02:59:38
问题 I am new to Django signals and Shopify webhooks, but I want to implement this feature in to a project. I am using this package, which also includes a set of WebhookSignals, to receive and verify the Shopify webhook, but then I want to do stuff with the information I receive (to be specific, I want to handle the customer information of an order and store it in a databse). I believe I need to use the provided signals to do this, but I don't really understand how to. So far, I've tried to put a

Check if current customer is an admin in Shopify?

不想你离开。 提交于 2019-12-12 01:57:50
问题 I would like to add a conditional on some pages in my Shopify theme that displays more info if the user viewing the page is an admin (and is logged in). Is there a way to do this? The obvious way is to check the customer.email property against some hard-coded values that belong to admins. But that's a maintenance headache and a poor design. Is there a better way? Thanks. 回答1: There is no list of Shop accounts available to check against. The only check you could make against is the shop email

Shopify: Getting highest price item from collection

末鹿安然 提交于 2019-12-12 01:39:36
问题 Does anyone know how I could get the highest price product from a category? It would be better if it was via Liquid, but if its with JavaScript its ok as well. Any ideas are welcome :P I only need to get the highest price item on a category. Ive stumbled upon the next liquid code: {% assign products = collection.products | sort: 'price' %} {% for product in products %} <h4>{{ product.title }}</h4> {% endfor %} But I cant seem to get this working to sort by price-descending. Is there a way to

Shopify script tag does not insert script tag to store

旧街凉风 提交于 2019-12-12 00:35:40
问题 With all the proper authentication, these are the results : ipdb> shopify.ScriptTag.find() [script_tag(347035)] ipdb> shopify.ScriptTag.get(347035) {'updated_at': datetime.datetime(2013, 5, 9, 11, 29, 17, tzinfo=tzoffset(None, 19800)), 'src': 'http://itestifyit.com/widget/v1/mystore/script.js', 'created_at': datetime.datetime(2013, 5, 9, 11, 29, 17, tzinfo=tzoffset(None, 19800)), 'event': 'onload', 'id': 347035} This means a script has been uploaded but I'm unable to find my script tag in the

How do I prevent the cart modal (ajax) from opening after adding a product?

99封情书 提交于 2019-12-11 20:43:33
问题 Every time I add a new product, the cart opens up as a modal. I do need, want and like the modal method of the cart, I just want to disable it from opening every time a product gets added. The code has to be somewhere in here: http://cdn.shopify.com/s/files/1/0656/8697/t/7/assets/ajaxify.js?8066. I've tried removing buildCart(cart) (line 711 in ajaxify.js) from this method: cartUpdateCallback = function (cart) { // Update quantity and price updateCountPrice(cart); switch (settings.method) {

Sass variable concatenation in loops in Shopify

霸气de小男生 提交于 2019-12-11 19:48:18
问题 My SCSS compiles fine on sassmeister 1: $black: "black_rgb(0,0,0)"; $honey-brown: "honey-brown_rgb(144,122,106)"; $red: "red_rgb(255,0,0)"; $paints: $black, $honey-brown, $red; @each $color in $paints { $colSplit: str-index($color, _); $colName: str-slice($color, 1, $colSplit - 1); $colVal: str-slice($color, $colSplit + 1); .paint-#{$colName}-paint {background-color: #{$colVal};} } However Shopify is throwing an error: Invalid CSS after ".paint-str-slice": expected selector, was "("black_rgb

Chang the product price when custom checkbox is selected in Shopify

不想你离开。 提交于 2019-12-11 18:53:44
问题 I need to be able to change the product price when a custom checkbox is selected. I want to add $10.00 for engraving on one product and $20 to other products for engraving. I can't add it as a variant in Shopify because they handle inventory based off variants. I am using the Debut theme. I have the custom checkbox working in liquid and the textbox show/hide functioning. 回答1: When someone checks the box for engraving, what they are doing is say, put a $10 product in my cart to go with this