Skip to main content

Notes on Shopify Theme dev - multiple themes and environment

 


theme deploy --env=development => config.yml can store many config rather than dev

https://github.com/shopify-graveyard/shopify_theme/issues/115


Understanding Shopify product data structure. From this understand we can match our product, business logic to its. On the other hand we can copy the idea of Shopify or WooCommerce design onto our product design.

Product <= Variants

Product <= product options

Product <=> Collection

Collect "table" structure and data (mapping product <=> collection).

Product_variants.

https://shopify.dev/api/liquid/objects/product

Returns the variant object of the selected variant. The selected variant is based on the URL parameter variant.

If there is no selected variant, then the first available variant is returned. For a variant to be available, its variant.inventory_quantity must be greater than zero or variant.inventory_policy must be set to continue.


Products
  id: 5609466331285
   Options ["AXLE", "PATTERN/COLOR"]
     0: "AXLE"
     1: "PATTERN/COLOR"
  price, price_min, price_max
  type: "Brake Kits"
  variants: [{id: 35752587985045, title "Front / Silver", option1: "Front", option2: "Silver"...}]
     0: {id: 35752587985045, title: "Front / Silver", option1: "Front", option2: "Silver", option3: null...}
        available: true,
        compare_at_price: null
        inventory_management: "shopify"
        name: "PHCF.40170.02 - Front / Silver"
        option1: "Front"
        option2: "Silver"
        option3: null
        options ["Front", "Silver"]


Shopify_product:

id shopi_prod_id  sku price shopi_price handle tags published_at updated_a
variant_id
variants_json product_json

1 5654642491556 PHCR.80023.02 106.88 96.19 mazda-6-phcr-80023-02 2016..., Mazda, 2020-09-09 04:24:32 2021-06-20
36103787511972

9K records

 
Shopi_collect

id collect_id collection_id product_id sku created_at updated_at position sort_value local_updated_at

1 19395222569124 219329691812 5654731686052 NULL 2020-09-10 19:44:40 2020-09-23 19:59:26 6 0000000006 202009241

2 19395222536356 219329691812 5660213870756 NULL 2020-09-10 19:44:40 2020-09-23 20:01:17 5 0000000005 202009241

~144K

Collections

id year make model submodel handle shopi_collection_id updated_at

1 1961 Mercedes-Benz 300SE with ATE Rear Calipers 1961-mercedes-benz-300se-with-ate-rear-calipers 221892116644


  

=> Need create a fully product-variants / options for see detail what a Shopify product-variants look like.


Product Shopify have Product organization section (detail product admin page)

=> Type (search), Custom Type (ie. Brake Kits).

Wow Taxonomy https://help.shopify.com/txt/product_taxonomy/en.txt

4889 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts

4890 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts

4891 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Calipers

4892 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Levers

4893 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Rotors

4894 - Sporting Goods > Outdoor Recreation > Cycling > Bicycle Parts > Bicycle Brake Parts > Bicycle Brake Sets


Vehicles & Parts: 5454, 5455, 5456



Comments



  1. Croydon Cars MiniCab Service in London UK,Choose our Minicab for a quick trip and safely to get to the Gatwick Airport, Heathrow Airportalso offers some services to minicab drivers who are not associated with itin the area of Croydon and in other towns.We are offer Low Fair for Airport Transfers from Croydon everyday such as ?Croydon Minicabs ?Shirley Minicabs ?Waddon Minicabsand etc.We want to welcome you to our new corporate website:www.croydoncar.co.uk/

    ReplyDelete
  2. Croydoncars is the best airport taxi transfer company in London, use the SNUG RIDE app for fast and online booking at cheap rates.

    we are a taxi company that is constantly improving our services to bring you the best attention and quality, also the better experience from the moment you get into the car until you reach your destination.

    croydon minicabs | croydon taxis: croydon airport transfers: ? 020-8686-4000 ?Gatwick airport transfers ?Heathrow airport transfers ?Stansted airport transfers ?Luton airport transfers

    ReplyDelete

Post a Comment

Popular posts from this blog

Rand mm 10

https://stackoverflow.com/questions/2447791/define-vs-const Oh const vs define, many time I got unexpected interview question. As this one, I do not know much or try to study this. My work flow, and I believe of many programmer is that search topic only when we have task or job to tackle. We ignore many 'basic', 'fundamental' documents, RTFM is boring. So I think it is a trade off between the two way of study language. And I think there are a bridge or balanced way to extract both advantage of two method. There are some huge issue with programmer like me that prevent we master some technique that take only little time if doing properly. For example, some Red Hat certificate program, lesson, course that I have learned during Collage gave our exceptional useful when it cover almost all topic while working with Linux. I remember it called something like RHEL (RedHat Enterprise Linux) Certificate... I think there are many tons of documents, guide n books about Linux bu

Martin Fowler - Software Architecture - Making Architecture matter

  https://martinfowler.com/architecture/ One can appreciate the point of this presentation when one's sense of code smell is trained, functional and utilized. Those controlling the budget as well as developer leads should understand the design stamina hypothesis, so that the appropriate focus and priority is given to internal quality - otherwise pay a high price soon. Andrew Farrell 8 months ago I love that he was able to give an important lesson on the “How?” of software architecture at the very end: delegate decisions to those with the time to focus on them. Very nice and straight-forward talk about the value of software architecture For me, architecture is the distribution of complexity in a system. And also, how subsystems communicate with each other. A battle between craftmanship and the economics and economics always win... https://hackernoon.com/applying-clean-architecture-on-web-application-with-modular-pattern-7b11f1b89011 1. Independent of Frameworks 2. Testable 3. Indepe