shopify , Shopify: How to make new products hidden by default?

Shopify: How to make new products hidden by default?


Tag: shopify

I have a shopify site that is hooked up with Lightspeed via MerchantOS. I need new products added via MerchantOS to be hidden upon sync/creation. All help is appreciated.


The Shopify product creation via API allows you to define the product visiblity (published / hidden). You should dig into MerchantOS to make sure when doing a POST to create a product at your Shopify store, it has the following property:

"published": false

Create a new, but unpublished product:

POST /admin/products.json
  "product": {
    "title": "Burton Custom Freestlye 151",
    "body_html": "<strong>Good snowboard!<\/strong>",
    "vendor": "Burton",
    "product_type": "Snowboard",
    "published": false


meteor-shopify : expected String to be a Hash

I'm using froatsnook:shopify trying to modify a custom collection's metafields. Server JS /** * Modify Shopify Custom Collection Metafields * @request PUT /admin/custom_collections/#{id}.json * * @param {Number} collection_id * @param {Object} collection_data * @param {Function} callback */ modifyShopifyCustomCollectionMetafields: function(collection_id, collection_data, callback) { var meta = ShopifyAPI.modifyCustomCollection({ id: collection_id, custom_collection :...

jQuery modal doesn't work as expected

I am trying to create an opening soon page like shopify's opening soon page here and instead of the enter password button I have a get coupon code button that allows you to get a coupon code for the store. When you click this button on my page it...

Shopify - Template check within product-loop

Does anybody know that is possible to check the template within product-loop? So, if one of the listed product's template is different, somehow I need to know. Any idea?

Shopify: how to add a class depending on collection

On a clients homepage they want 'all the products' listed with a load more button at the bottom. There are four categories and each has a different color associated. I want to pull in all the products by date listed order and apply a class to the product depending on...

Shopify API getting order by name or order_number

Im using a plugin for CakePHP to make the calls to obtain certain orders. I can call all orders with certain fields, but I was wondering how would I have to make the call to get the orders with a certain name or order_number? Here is the source for the...

Shopfy accessing all products from a collection on the product page

I'm using Shopify as my eCommerce platform. My customer has some products that are related to each other. But don't think of a typical related products system, basically these products have parts, and those individual parts can be reordered separate from the product itself. The client wants to list all...

Cloning an existing shopify site to a new site

I want to be able to clone an instance of an existing shopify site into a new shopify site. (This is in order for me to create a test / staging environment) Are there are any tools or scripts out there which could help me achieve this? The clone should...

Is there a way for concatenate two strings and then process the result inside the Output tags not as a string?

Here's what I am trying to accomplish: <ul class="site-nav__dropdown"> {% for childlink in linklists[child_list_handle].links %} this - {% assign color_from_settings = 'settings.collection_color_' | append: forloop.index %} used here - <li{% if %} class="site-nav--active" {% else %} style="background-color: {{ color_from_settings }}" {% endif %}> <a href="{{ childlink.url }}" class="site-nav__link">{{ childlink.title...

Variable within liquid if statement when calling shopify settings

I thought this would be simple to solve but I am trying to put a variable within a liquid statement. I have my variable {{ loop_index }} and I want it to be within this statement : {% if settings.dropdown-[loop_index]-select %} I tried putting [...] round it but that didn't...

Can we install Shopify on localhost for development?

Can we install shopify on localhost for development ? like: we download opencart and can install on localhost for development. IS there any way for shopify ? ...

I need to show total quantity in invoice [shopify]

I have a website in shopify and i am using the order printer app for order invoices. I want to show total number of quantity in my invoice. Could anybody please suggest a tutorial for the same?

laravel verify shopify webhook

How can I verify my shopify webhooks in laravel? Currently I'm doing the following: //Validate secret if ( Request::header( 'X-Shopify-Hmac-Sha256' ) ) { $hmac_header = Request::header( 'X-Shopify-Hmac-Sha256' ); $data = Request::json(); $calculated_hmac = base64_encode( hash_hmac( 'sha256', $data, Config::get( 'constants.SHOPIFY_APP_SECRET' ), true ) ); if ( $hmac_header != $calculated_hmac ) {...

Get a list of collections for all products in current Shopify collection

We have a primary collection of t-shirts for the product type of clothing (product type is just in case, so, nobody would bring it up). And all of them are also in a few other collections like "linen t-shirts", "silk t-shirts" etc. Let's say i'm on the page of t-shirts...

shopify liquid: plus shipping cost not working

I want to multiply the subtotal price by 21% and then add the shipping costs. Because the shipping costs are variable I use the following code. {{ order.subtotal_price | times:1.21 | plus:shipping_method.price | money }} But the shipping costs aren't added. The example code in the documentation states you can...

Can shopify be installed in xampp or any other web hosting server?

I heard shopify couple of days before, when I got a project in my office regarding shopify, and I did alot of research over this cms, but I'm still unable to know that can shopify be installed on xampp and can we customize this cms with respect to development aspects??...

Using Shopify API to create product in PHP

Thanks a lot for your solutions. I am using Shopify API along with PHP CURL POST Method to create product. The following is the code and output. $products_array = array( "product"=>array( 'title'=>'', "title"=> "Burton Custom Freestlye 151", "body_html"=> "<strong>Good snowboard!</strong>", "vendor"=> "Burton", "product_type"=> "Snowboard", "published"=> false , "variants"=>array( array( "sku"=>"t_009",...

Shopify vendor if statement

A shopify liquid question: If no vendor is available, then shopify adds the shop name as the default vendor. I'd like those instances to be blank. I'm trying to create an if statement which hides the vendor if there is no vendor or if it equals the default vendor name....

Shopify FriendBuy app javascript illegal token issue

I am using the FriendBuy app for a shopify store at this moment and am running into an issue where an illegal token is being caught, aside from that there are no other issues that I can see. What I am trying to do is activate the referral via a...

How do I change the title-Attribut in Shopify's liquid?

Can someone explain me how do I change the title-Attribut here. liquid code <ul class="material-nav"> {% for tag in collection.all_tags %} {% if current_tags contains tag %} <li class="active"> {{ tag | capitalize | link_to_tag: tag }} </li> {% else %} <li> {{ tag | capitalize | link_to_tag: tag }}...

jQuery Easing Undefined function

I recently migrated an update of a store onto a shopify server. After doing so a few jquery issues occured even though it was working on the developement server. They fail to work with the error Uncaught TypeError: undefined is not a function - Jquery Easing` Im struggling to debug...

How can I access the store address in a Shopify theme file (.liquid extension file)?

I have set store address for a Shopify site, as seen in the screenshot below. Now I want to access this address in a theme file (.liquid file). How can I do this? ...

Why do I get “identify not verified” when browsing https pages with Chrome (v42) on

It is specifically the checkout that concerns me: When I'm on the cart page and click the checkout button I'm taken to and get the issue. Why am I getting the issue and how do I fix it please? I did a search and only found this...

Posting to Shopify using PHP

I'm trying to post from a PHP page to Shopify to indicate that an order item has been fulfilled. I must not be doing this correctly because I keep getting a null result. I'm doing this on a test order that was cancelled, but I would expect that I'd at...

{{ content }} Liquid tag not showing blog posts

Link to repo: Hi all I am a beginner using jekyll and new to web development, so please be patient with me. I am coding my portfolio site, with a link to my blog. The fully processed portfolio site sits in _site/index.html which contains a link to the blog...

How to get the responses of an API call (shopify)?

I've been using rails for about a week and have found numerous good tutorials but haven't found any info for my current problem. I have a webshop running and can access it via the shopify console: ShopifyAPI::Customer.find(674469828) -> will return the customer with the id 674469828 If I use the...

Shopify + Mixpanel Integration

I am using Shopify as my store page for selling items, with Mixpanel integrated to track users through the entire purchasing process. With 4 different events: Product Viewed, Added to Cart, Began Checkout and Order Completed. In the live view all of these come up accordingly, but my problem is...

Shopify sort products on front page

I found this code that allows users to sort the products list on the collections page. I tried the code on the front page but when I click the dropdown, it redirects me to a new page but the page still used the same order as before. Is there something...

Is there way in Shopify to categorize “Collections” in lists?

Say I want to show 2 different collection lists(just the titles with links to their relative pages) on 2 different pages in Shopify; is there a way in Shopify that can be done? As far as I can see, either I show all "Collections" on a page or none at...

json to csv with php

I'm making a GET request to shopify API, and it gives back a response in json. I'm then using pHp to take the response and transform it into arrays put into a csv file. But I'm having a error. The php code: <?php $baseUrl = 'https://[email protected]/admin/'; $response = json_decode(file_get_contents($baseUrl.'orders.json?limit=250')); $fp...

Shopify get current collection

I am new to Shopify and learning it right now. I am on collection page, is there a way I can get current collection? For example, I have following collections category 1 Sub cat 1.1 Sub cat 1.2 Sub cat 1.3 category 2 Sub cat 2.1 Sub cat 2.2 Sub...

Shopify: How to make new products hidden by default?

I have a shopify site that is hooked up with Lightspeed via MerchantOS. I need new products added via MerchantOS to be hidden upon sync/creation. All help is appreciated.

Shopify - Different prices based on country

Does anyone here on stack know if it's possible, in Shopify, to use different prices for different countries/regions i.e. i want a product to cost 10€ in Europe but 10$ in North America? Most important to know whether it's possible or not (trough out the shopflow) Implementation advice would be...

Shopify Orders API redirects me to login when specifying ID

I created a private app for my Shopify account so that I can use API to interact with it. In particular when using the Orders API, https://apikey:[email protected]/admin/orders.json returns an empty json, but then when I try to retrieve a specific order using https://apikey:[email protected]/admin/orders/#{id}.json, I am redirected to the login page....

Shopify liquid get related blog posts

In shopify I am using liquid templating to get blog posts which are related to products by their tags, like so: <ul> {% for article in %} {% if article.tags contains product.handle %} <li><a href="{{ article.url }}"><p>{{ article.title }}</p></a></li> {% endif %} {% endfor %} </ul> However, if there...

Shopify cycle iteration to simplify

I am trying to use the cycle in shopify to add a class to the first 4 divs, then a new class to the second 4 divs, then a new class to the 3rd group of divs. Instead of typing like this {% cycle '<div class="1">', '<div class="1">', '<div class="1">',...

Shopify python API command working in html view but not in file

Provided this python code for a Shopify app: with request.user.session: products = shopify.Product.find() for product in products: if product.variants.0.inventory_management: make_call() So, when I use product.variants.0.inventory_management in my view file called "home.html", it displays the value "shopify" which makes sense. But when I use the exact same thing in the code...

Shopify - Update/Delete metafield via metafield API using PHP

I've been stuck trying to update or delete a metafield that i created on user registration via the shopify customer API. At first i tried to update the metafield using the customer API but it told me that the metafield already existed and i cannot add it again. Then i...

Postmates integration with Shopify Shipping/Carrier services

so we are looking to integrate this application: into our Shopify platform. For how it works please check: . So we are looking for add a Carrier Service to our store. And As Postmates provides services to few regions as follows we will add other mutiple shipping options...

Template script to make it visible only to admin on shopify

I would like to make a template on shopify visible only to admins. I can make it visible to customers only, but need a code for admin only now. The code for customers I use is: {% unless customer %} {% if template contains 'customer' %} {% assign send_to_login =...

Fetch all the products (more than 50,000) using the Shopify API

I'm trying to fetch all the products of a Shopify store in my app using the Shopify API. I have the following code to fetch all the products page wise. This script is breaking at some point of time, not sure where. How can i make a rigid script which...

Shopify and Private Applications

I have created a private app for use on my website (The idea is the website will act as the front end using shopify's api to connect to the store). When I create the application, if I edit it there is an example url which looks like this: https://926b44aa1af222f2089ffa4988bc146b:[email protected]/admin/products.json f...