skip to Main Content

How to set all products to untaxable in Shopify using the shopify_api Ruby gem?

I need to set 10,000+ product variants to untaxable in Shopify using the shopify_api Ruby gem. I have tried: irb(main):001:0> ShopifyAPI::Variant.update_all(taxable: false) but I get the error message: NoMethodError: undefined method `update_all' for ShopifyAPI::Variant:Class from (irb):1 from /var/lib/gems/2.3.0/gems/shopify_api_console-2.0.0/lib/shopify_api_console/console.rb:156:in `launch_shell' from…

VIEW QUESTION

Getting list of all vendors? – Shopify

I am doing the following to take the vendor out of the products and using unique to get it to the front end to list each vendor on a store. Controller: @count = ShopifyAPI::Product.count @n = 1 @products = ShopifyAPI::Product.find(:all,…

VIEW QUESTION

Rails keeping params DRY – SEO

I have a model named "seo" class Seo < ApplicationRecord belongs_to :seoable, polymorphic: true # more code end Many models in my application has_one seo. For example class Post < ApplicationRecord has_one :seo, as: :seoable accepts_nested_attributes_for :seo, dependent: :destroy #…

VIEW QUESTION
Back To Top
Search