Agile - Premium Shopify Theme
Shopify GuidesContact Us
  • Agile - Greeting
  • THEME INSTALLATION
    • Recommended Apps
    • Create Required Metafields
  • Theme Setting
    • Favicon
    • Layout
    • Badges
    • Colors
    • Typography
    • Product
    • Color swatches
    • Social media
    • Search behavior
    • Animation
    • Currency format
    • Cart
    • Checkout
    • Cookies
    • Custom CSS
  • Sections
    • Announcement bar
    • Header
    • Featured product
    • Collection list
    • Rich text
    • Image with text
    • Slideshow
    • Newsletter
    • Contact form
    • Video
    • Custom liquid
    • Blog posts
    • Countdown timer
    • Divider
    • FAQ
    • Google map
    • Icons with text
    • Image with text overlay
    • Logo list
    • Promotion banner
    • Recently viewed products
    • Scrolling text
    • Shopable image
    • Spacing
    • Testimonials
    • Tiktok video
    • Video with text overlay
    • Featured collection
    • Search
    • Quick shop
    • Newsletter popup
    • Age verifier popup
    • Footer
    • Mobile navigation bar
    • Cart drawer
    • Page heading
    • Product testimonials
    • Shopable video
    • Image tabs
    • Image testimonials
    • Image comparison slide
    • Bundle products
  • Collections & Products Pages
    • Products
      • Page template sections
        • Product information
        • App
        • Related products
    • Collections
      • Page template sections
        • Product grid
        • Collection banner
    • Collections list
      • Page template sections
        • Collection list page
  • Other pages
    • Cart
    • Checkout
    • Search
    • Blogs
      • Page template sections
        • Blog carousel
        • Blog posts
    • Blog posts
    • 404 page
    • Password
    • Our store
    • About us
      • Page template sections
    • Contact us
      • Page template sections
    • Faqs
  • FREQUENTLY ASKED QUESTIONS
    • How to change Elements of page?
      • Home Page
        • Gorde
        • Obik
        • Glamor
        • Serums
        • Rustic
    • How to translate a theme after adding a new default language?
    • Theme translation
    • Change currency
    • The desktop screen look more like on a tablet
    • Change free shipping message
    • How to setup pre-order products?
    • Staff account
Powered by GitBook
On this page
  • 1. Countdown timer
  • 2. Custom product badge
  • 3. External/Affiliate
  • 4. Short description
  1. THEME INSTALLATION

Create Required Metafields

Last updated 5 months ago

You can read more about metafields here:

Step

  1. Login to your Shopify store, click to Settings

  2. Click to Custom data and select Products

  3. Add metafields as follow:

    1. Countdown timer.

    2. Custom product badge.

    3. External/Affiliate.

    4. Short description.

1. Countdown timer

  • Name: Countdown timer

  • Namespace and key: custom.countdown_timer

  • Content type: Date and time

In product :

Result:

2. Custom product badge

  • Name: Custom product badge

  • Namespace and key: custom.custom_product_badge

  • Type: Single line text - One value

  • In product:

  • Result:

3. External/Affiliate

Step Create Metaobjects

  1. Login to your Shopify store, click to Settings

  2. Click to Custom data --> Metaobjects and Click Add definition

  3. Add metaobject definition with 2 fields as bellow:

- Name: External/Affiliate product

- Field 1:

* Type: URL

* Name: External Link

- Field 2:

* Type: Single line text

* Name: Button Text

Step Create Metafields

  1. Back to Custom data -> Metafields -> Products

  2. Add a metafield as bellow:

    - Name: External/Affiliate

    - Type: Mixed reference

    - Validation: External/Affiliate

    - Namespace and key: custom.external_affiliate

  3. Setup metafield for a product and you can see the result.

In product:

  • Add new entry:

  • Choose and save:

Result: Auto change to External/Affiliate button

4. Short description

  • Name: Short description

  • Namespace and key: custom.short_description

  • Type: Single line text - One value

In product:

Result:

link