Uni CPO 4 Documentation
  • Introduction
  • Why Uni CPO?
  • Installation
    • Upgrade
  • How To Use
    • Plugin's Settings
    • Builder
      • Data Structure
      • General Settings
      • Non Option Variable (NOV)
      • Weight Conditional Logic
      • Dimensions Settings
      • Image Conditional Logic
      • Formula Conditional Logic
      • Dynamic labels for options/suboptions
      • Shipping Classes Conditional Logic
      • Cart Discounts
    • Basic Modules
      • Row
      • Column
      • Paragraph
      • Button
      • Image
    • Options
      • Text Input
      • Text Area
      • Select
      • Radio Inputs
      • Checkbox Inputs
      • Date Picker
      • File Upload
      • Dynamic Notice
      • Range Slider
      • Matrix
      • Extra Cart Button
      • Google Map
      • Distance by Postcode
      • Font Preview
    • Fields Conditional Logic
    • Validation Conditional Logic
    • Colorify Feature
    • Imagify Feature
    • "Free Sample" Feature
    • Arithmetic Operators
    • Manage Order Items
    • Suboptions export/import
  • For developers
    • Actions & Filters
    • JS events
    • Extending Uni CPO
  • Duplicating options and products
  • How to debug
  • Affiliation
  • Themes & Plugins Compatibility
    • Popup Maker How To
    • Boxtal
    • Pitchprint.com
    • NBDesigner
    • Toggle Tax For Woocommerce
  • FAQ
  • Refund Policy
  • Managing licenses and billing info
    • License Utilization
  • Uni CPO Add-ons
    • Custom dynamic SKU (paid)
      • Stock management based on dynamic SKU
    • "Send Inquiry" (free)
    • Hidden/disabled option (free)
Powered by GitBook
On this page
  • Product related data
  • Option related data
  • 💡 The most important thing to understand is there are two types of option related data: the one piece of the data that is responsible for the visual appearance (how options look like, their styles etc) and the second one piece that is responsible for the price calculation (price/rate settings, suboptions data etc).
  • The practical use of the two types of the information has some limitations as well as advantages you should be aware of.

Was this helpful?

  1. How To Use
  2. Builder

Data Structure

PreviousBuilderNextGeneral Settings

Last updated 5 years ago

Was this helpful?

The information about the changes in the builder is stored on different layers. Understanding the difference between them is the key for using the plugin at full power ;) Also, this article contains the information that will help you not overwrite your product price config by accident.

Product related data

The data from the modals which can be accessed from the builder panel are saved directly to the DB. None of this info is used for modifying the visual appearance of the form.

The builder content data is a collection of information about each module/option settings. The builder content is getting updated every time any changes in option's settings are made. You have to save builder content after that.

The green diskette icon becomes yellow and a small yellow exclamation sign is added to open/close builder panel button. It means, that builder content has to be saved in order to publish changes made in visual builder.

Option related data

💡 The most important thing to understand is there are two types of option related data: the one piece of the data that is responsible for the visual appearance (how options look like, their styles etc) and the second one piece that is responsible for the price calculation (price/rate settings, suboptions data etc).

The data from module/option setting modal are saved both as a part of the builder content (used for modifying the visual appearance) and directly to DB (used in price calculation and/or service data to be used in cart/order). So, when you click on Save button in option's settings modal window without 'add to DB' checkbox checked, only builder content will be updated. If you click that button with 'add to DB' checkbox checked, builder content will be updated as well as option's setting (all its settings) will be saved to DB.

👉 At the moment, any Module settings are saved as a part of the builder content ONLY. Therefore, you have to save the builder content in order to publish any changes made.

The practical use of the two types of the information has some limitations as well as advantages you should be aware of.

The limitation is that the marked settings cannot be different for the different instances of the same Option (Option with the same slug). However, those settings which are not marked with the yellow sign CAN! 💪 😎 The biggest and most significant advantage is a possibility to create only one specific Option and re-use it in other products. For instance, you can have different labels for the different instances of 'width' Option on different product pages for the same Option (Option with the same slug). Or you can have different colors for texts, borders, paddings, margins etc in the different instances of the same option.

Another disadvantage is that the info displayed in the Option's settings modal window is incorrect for this specific instance of the Option. For instance, you have changed "Price/Rate" setting for this Option, saved the changes to DB then. Of course, the builder content will be instantly updated with the new changes, but let's imagine that you did not saved the builder content and closed the builder. What happened now is that the builder content data contain the old info about "Price/Rate" setting, but the new values are actually used during the price calculation because they are pulled directly from the DB but not from the builder content. And this is confusing, I agree. But... see the previously described advantage. Is not it cool? :)

The second major advantage is that the Option settings data saved to DB is used when you duplicate this Option. So, by creating an Option and filling in its settings once - it is possible to quickly replicate Option (create many instances of the Option) in other products. Awesome! :)

As it has already been said, options' settings are actually of two types. Some of them are important for visual appearance. Others are used only during the price calculation/in the cart/on the order page, therefore must be saved to DB. The second type of settings is marked with a yellow sign. It looks like this:In this example, both "Price/Rate" and "Label text in cart/order meta" are marked by the yellow sign. Changes in these settings MUST be saved to DB (saved with checked 'Save to DB?' checkbox). Otherwise they will NOT take any effect!

Please, .

read more about this and option's 'Sync' setting here (section 'Basics')