shopify

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

て烟熏妆下的殇ゞ 提交于 2019-12-04 18:30:48
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 HMAC_ALGORITHM = "HmacSHA256"; String key = "hush"; String data = "shop=some-shop.myshopify.com

Adding 20% to product price via Javascript in Shopify

江枫思渺然 提交于 2019-12-04 17:20:25
There is probably a simple answer to this that someone can help me with but I'm not that great with Javascript. Basically in Shopify I've set up prices to be displayed +20% with one of their liquid tags. This works great apart from on the product page because there is a bit of Javascript that disables the add to cart button if a size is out of stock and changes the price to out of stock too. Anyway here is the code: <script> var selectCallback = function(variant, selector) { if (variant && variant.available) { // valid variant selected $('#add-to-cart').removeClass('disabled').removeAttr(

Custom fields for Shopify User Registration Form

扶醉桌前 提交于 2019-12-04 13:48:02
I can't find any documentation on how to add custom fields for the user registration forum so I tried something but didn't work: <div class="single-full-width customer"> <div class="login"> {% form 'create_customer' %} {% if form.errors %} {% for field in form.errors %} <p class="input-error-wrapper"><span>{{field}} {{ form.errors.messages[field] }}</span></p> {% endfor %} {% endif %} <p> <label>First Name:</label> <input type="text" value="" name="customer[first_name]" class="input-text-1" /> </p> <p> <label>Last Name:</label> <input type="text" value="" name="customer[last_name]" class=

How do i enable a third party payment gateway (not supported today by Shopify)

自古美人都是妖i 提交于 2019-12-04 13:20:49
In india, Shopify supports the following payment gateways: Citrus Payment Direc Pay PayU India PayU Paisa But we have an existing merchant account with Axis Bank. I have no idea where to configure my Axis Bank Payment Gateway with Shopify. So the question is: How do i configure my Axis Bank Payment Gateway with Shopify? Is it even possible to add other payment gateways, which asre not yet supported (not listed in their store admin panel) by Shopify? You can write a connector for that Gateway that follows the ActiveMerchant pattern. Once it is all tested and works, submit it to Shopify for

Shopify: Is it possible to find a product by sku number?

时光毁灭记忆、已成空白 提交于 2019-12-04 10:03:51
The data that I'm getting only contains the SKU numbers. I am trying to figure out how I can link these SKU numbers to the product variants in Shopify without the actual product id number. Example data: <Inventory ItemNumber="100B3001-B-01"> <ItemStatus Status="Avail" Quantity="0" /> </Inventory> <Inventory ItemNumber="100B3001-B-02"> <ItemStatus Status="Avail" Quantity="0" /> </Inventory> <Inventory ItemNumber="100B3001-B-03"> <ItemStatus Status="Avail" Quantity="-1" /> <ItemStatus Status="Alloc" Quantity="1" /> </Inventory> <Inventory ItemNumber="100B3001-B-04"> <ItemStatus Status="Avail"

Update/Remove cart attributes in Shopify

只谈情不闲聊 提交于 2019-12-04 08:23:36
I am using cart attributes to add extra information for each product to the cart (from the product page). I am specifically using cart attributes over line item properties because the client needs to be able to edit this information in the order later on which line item properties don't allow . Adding the information works just fine, the problem comes in when a customer decides to remove an item from the cart because although the item is removed, the cart attribute remains since it is not specifically tied to the product (other than a naming convention that we give it.) So, is there a way to

Shopify Plugin for making custom payement gateway

本小妞迷上赌 提交于 2019-12-04 06:56:26
问题 I want to make the custom payement gateway in the shopify so which programming language would be suitable for making plugin and also give some hint how to proceed in it. For making plugin for payement gateway do we have to use public app or private app??? 回答1: Since Shopify apps integrate via REST any app language that you are comfortable with will work. Shopify officially supports Ruby, Python and Node However as @david-lazar writes you cannot directly integrate a gateway. Shopify does

Shopify Product images of an order items

落花浮王杯 提交于 2019-12-04 05:56:26
问题 I want to show the images of products in an order for the plugin I'm developing. But with the response returned for orders(from shopify admin API), in it line_items doesn't contain a product object or any other object that have the link for shopify cdn link of a product image, but the product id. What I'm planning now is to call the admin api again with product id to get images which looks costly as I have to do it to all the items in an order and do that for all orders. My question is

Script Tags in shopify checkout

允我心安 提交于 2019-12-04 05:32:51
I'm looking at developing an app for Shopify which will add functionality to a store's checkout page. It would be ideal if the user didn't have to copy and paste code into files themselves hence I was looking at using the ScriptTag API ( http://api.shopify.com/scripttag.html ) to include a custom javascript file. I've worked through some of the examples on the aforementioned API page and can get a custom script included on every page on my test store except for the checkout page. I've changed the src to start with 'https://' as suggested by the tutorial but my script still doesn't run or even

AJAX a form submission with Rails 3.2

心不动则不痛 提交于 2019-12-03 21:54:12
This is my form, and it works fine, but now I want to AJAX it. <%= form_tag variant_path(variant.id), :method => :put, :class => 'update_inv_form' do %> <%= text_field_tag :inventory_quantity, variant.inventory_quantity %> <%= submit_tag 'Update' %> <% end %> When I add the :remote => true attribute the form successfully submits via AJAX (I can see it happening on the server and I can see the changes when I refresh the page). I want to update the view properly to show the changes without refreshing the page. This is my update action: (Note that I am not working with ActiveRecord Models here.)