shopify

Shopify : How to test webhooks in php

孤街醉人 提交于 2019-12-13 11:05:31
问题 I am new in shopify. I have created one app in php for shopify. I have registered webhooks using admin apis. But i don't know how to test webhooks. I have spent lots of time to figure out but not getting any proper response. How to get response and write stuff over there? Is it like Apis? How to notify that webhooks are called or not. Please help me. 回答1: Unlike APIs, Webhook is event driven(triggered on any event e.g. Order Creation) and send data in JSON/XML format to particular URL. You

How do I enable a third party payment gateway which Shopify does not want to support?

女生的网名这么多〃 提交于 2019-12-13 08:17:10
问题 Same as this question which got an accepted answer, but the only answer doesn't cover plan B - what if Shopify rejects to support the integration submitted to ActiveMerchant? I'm tagging javascript here because I have a feeling that the solution probably entails coding the entire thing in client-side javascript code assuming this can be done safely 回答1: You might want to consider adding your gateway as an off-site payment? As per iframes or embedded JS inside Shopify's PCI compliant checkout

How to add collection.liquid to an existing page?

回眸只為那壹抹淺笑 提交于 2019-12-13 06:51:01
问题 In Shopify, I'm trying to take the template collection.liquid and render it in another page, just like embedding it. But i'm not sure how to accomplish that. {% paginate collection.products by 50 %} {% include 'breadcrumb' %} {% if settings.show_sort_by and collection.products_count > 1 %} {% include 'collection-sort' %} {% endif %} {% if current_tags.size > 0 %} <h1>{{ current_tags.first }}</h1> {% else %} {% endif %} {% if collection.description.size > 0 %} <!--START HERO--> <!--END HERO-->

Shopify blog feeding mailchimp campaign doesn't display images

醉酒当歌 提交于 2019-12-13 05:43:17
问题 I'm setting up a simple Mailchimp campaign for a client which mails the latest blog post on a Shopify website. Mailchimp reads the entries from the site's RSS feed (via feedburner) and displays them in an email template but the blog's images are always broken links. The images have been uploaded directly to Shopify for the articles and are delivered through it's content delivery network. References appear similar to: <img src="//cdn.shopify.com/s/files/1/2222/3333/files/my-image.jpg?1234" />

Editing JSON data from within a shopify liquid page

不羁的心 提交于 2019-12-13 05:20:33
问题 New to shopify and the liquid library, I have a customer who needs product pages to be a bit custom. One collection of items product page does not look similar to another. My plan is to simply toggle on/off the JSON settings that display the unwanted elements. *Pseudocode* If "product is in collection that doesnt need this element" " JSON that displays it = false" How exactly do I access that JSON object from within the liquid pages? Also, is this the best way to go about doing this? My other

How do I unbind this piece of jquery?

本小妞迷上赌 提交于 2019-12-13 04:55:25
问题 My Shopify store uses Ajax call's to add products to the cart and jQuery to update the front-end. I recently installed infinite-ajax-scroll but this brought some issues. When scrolling down to the products loaded by infinite-ajax-scroll, and then click on the add to cart button, the ajax calls & jQuery updates don't work anymore, it redirects me to the cart page. I solved this by reinitialising the piece of jQuery code that "ajaxifies" the shop using infinite-ajax-scroll's rendered event. But

How can I get the cart's shipping address in the cart.liquid file?

笑着哭i 提交于 2019-12-13 03:51:36
问题 I'm trying to change the tax and shipping method prompt based on the user's current shipping address. Obviously, they are not yet at checkout so have not had the opportunity to input their shipping address. Is there anything else I can check at this stage to find out which country they are from? {% if shipping_address.country_code = 'CA' %} <p class="cart-message meta">INCLUDING TAX AND SHIPPING (U.S. AND CANADA)</p> {% else %} <p class="cart-message meta">{{ 'cart.general.tax_and_shipping' |

Deleting Webhooks

怎甘沉沦 提交于 2019-12-13 03:37:28
问题 I have a shop with permission to read|write both orders and products. I setup some Webhooks and now I want to delete them. I am getting back 401 errors. Starting with 4 webhooks Trying to delete webhook 1982492 Error nil, Failed. Response code = 401. Response message = Unauthorized. Trying to delete webhook 1982494 Error nil, Failed. Response code = 401. Response message = Unauthorized. Trying to delete webhook 1982496 Error nil, Failed. Response code = 401. Response message = Unauthorized.

Streaming a PHP Barcode to and IMG tag

别来无恙 提交于 2019-12-13 00:53:51
问题 I have a unique problem where I have to use only HTML because of platform constraints to send out receipt emails. The receipts need to have a CODE128 Barcode generated on them. Unfortunately because I can only use HTML in the email template I am looking to figure out how to create these barcodes and link them with an IMG tag. So my current idea is to use the PDFCrowd php library on a different server and then create an IMG tag in the email template with the SRC being a GET Request URL to the

Creating a new product with image using the shopify_api Ruby gem

送分小仙女□ 提交于 2019-12-12 20:25:36
问题 Shopify have a RESTful API and a handy shopify_api ruby gem that I already use for updating inventory levels. Today I have to do something new, creating a new product with image, and I'd like to use the shopify_api gem instead of using something like rest-client or httparty to interact with the API. The Shopify API supports the simultanious creation of a new product with the default variant and a product image which will be downloaded by Shopify using this call: POST /admin/products.json With