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


Shopify: How to make new products hidden by default?

Question:

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.


Answer:

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
  }
}

Related:


meteor-shopify : expected String to be a Hash


javascript,meteor,shopify
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


jquery,html,css,shopify
I am trying to create an opening soon page like shopify's opening soon page here freakytech.myshopify.com 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


shopify
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


collections,filtering,shopify,liquid
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


api,cakephp,shopify,restful-url
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


collections,shopify,product,liquid
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


clone,shopify
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?


shopify,liquid
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 childlink.active %} 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


shopify,liquid
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?


shopify
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]


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


laravel,shopify,sha256,webhooks,verify
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


shopify,liquid
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


shopify,liquid
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?


php,xampp,shopify
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


php,curl,shopify
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


shopify,liquid
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


javascript,shopify
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?


html,shopify,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


jquery,shopify,easing,uncaught-exception
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)?


shopify
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 Shopify.com


google-chrome,ssl,https,shopify
It is specifically the checkout that concerns me: https://checkout.shopify.com/5045549/checkouts/6321b0e319fdc3cab47b8ba2d1e30b46?_ga=1.255397768.1085821832.1430095488 When I'm on the cart page http://store.rockettags.com/cart and click the checkout button I'm taken to https://checkout.shopify.com 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


php,json,shopify
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


html,tags,jekyll,shopify,liquid
Link to repo: https://github.com/AlvSovereign/AlvSovereign.github.io 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)?


ruby-on-rails,api,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


javascript,web,shopify,mixpanel
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


shopify
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?


collections,tags,shopify,product,liquid
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


php,json,csv,shopify
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


shopify
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?


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.

Shopify - Different prices based on country


e-commerce,shopify
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


php,shopify
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


html,shopify,liquid,templating
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 blogs.blog.articles %} {% 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


loops,logic,shopify,liquid
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 views.py file


django,python-2.7,shopify
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


php,curl,shopify
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


api,shopify,shipping
so we are looking to integrate this application: https://postmates.com/developer/docs into our Shopify platform. For how it works please check: http://blog.postmates.com/post/104856343907/a-technical-perspective-on-the-postmates-api . 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


javascript,php,web-applications,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


php,api,curl,shopify
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


c#,jquery,oauth,oauth-2.0,shopify
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...