Hotel-X Shopify
  • Greeting
  • INSTALLATION
    • Install Theme
    • Install App
  • BASIC CONFIGURATION
    • Customer Registration
    • Shipping Rates
    • Navigation
  • THEME SETTINGS
    • General
    • Breadcrumbs
    • Wishlist Url
    • Color
    • Typography
    • Layout
    • Animations
    • Buttons
    • Variant Pills
    • Inputs
    • Product Cards
    • Product page
    • Filter
    • Pagination
    • Collection cards
    • Blog cards
    • Content Containers
    • Media
    • Dropdowns and pop-ups
    • Drawers
    • Badges
    • Social media
    • Payment icon
    • Search suggestion
    • Currency format
    • Cart
    • Sub page
    • Back to top
    • Custom CSS
  • Header
    • Header settings
  • Extension group
    • Newsletter popup.
    • Navigation bar mobile
    • Popup form booking
  • Footer
    • Footer settings
  • SECTIONS
    • Section On Every Page
    • Slideshow
    • Featured collection
    • Video MP4
    • Collection list
    • Rich text
    • Image with text
    • Image banner
    • Collage
    • Multicolumn
    • Multirow
    • Newsletter
    • Contact Form.
    • Video
    • Blog posts
    • Custom Liquid
    • Page
    • Additional Services
    • Brand
    • Collection List With Banner
    • Google Maps Iframe
    • Icon with text
    • Search
    • Spotlight
  • Collections List
    • Collections List Settings
  • Collection Page
    • Collection Page Settings
  • PRODUCT PAGE
    • Product Page Settings
  • Product Metafield Setup
    • Address
    • Guests
    • Bedroom
    • Bathroom
    • Welcome
    • Bed sizes
    • Amenities
    • Location
  • BLOG
    • Blog Page Settings
  • ARTICLE
    • Article Page Settings
  • PAGE
    • Contact Page
    • FAQs Page
    • About Us Page
    • Wishlist Page
    • 404 Page
    • Comming Soon Page
  • Theme Support
Powered by GitBook
On this page
  • Step 1: Create metafield object.
  • Step 2: Add content to the field.
  • Step 3: Create metafield.
  • Step 4: Add the metaobject to the product.
  1. Product Metafield Setup

Bedroom

PreviousGuestsNextBathroom

Last updated 9 months ago

Step 1: Create metafield object.

  1. From your Shopify admin, go to Content -> Metaobjects.

  2. Click Add definition.

  3. Add metaobject definition.

Note: The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

Name: Bedroom

Fields
Name
Type

Field

Number Bedroom

Single line text

After you have finished creating, you will have a result similar to the attached image below.

Step 2: Add content to the field.

After you have completed step 1, you will have a metaobject. Next, you will 'Add entry' and enter content for each field.

  1. From your Shopify admin, navigate to 'Content' -> 'Metaobjects'.

  2. Select the 'Definition name' you wish to set up.

  3. Click 'Add entry'.

  4. Add content to each created field.

  5. Click 'Save'.

Step 3: Create metafield.

  1. From your Shopify admin, go to Settings -> Custom data.

  2. Click Products → Add Definition.

  3. Please enter correct Namespace and Key as we noted below.

Note: The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

Name: Bedroom
Namespace and key: custom.bedroom
Select content type: Metaobject
Reference: List of entries

Step 4: Add the metaobject to the product.

  1. From your Shopify admin, go to Products -> All products.

  2. Find and choose the product that you want to edit.

  3. In the Metafields, please insert content for "Bedroom" field.