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
  • Overview
  • How It Works
  • Step 1: enable Colorify feature in general settings for this product
  • Step 2: prepare .png layers and encode each of them in base64
  • Step 3: add custom Option, connect it <- re create this step for as many Options as you need
  • Final:

Was this helpful?

  1. How To Use

Colorify Feature

PreviousValidation Conditional LogicNextImagify Feature

Last updated 5 years ago

Was this helpful?

Overview

This video showcases how the feature works:

Briefly, Colorify functionality adds a possibility of coloring parts of an image upon selection in custom option. It is possible to connect 2 or more custom options and change color of certain parts of image upon selection in connected options.

How It Works

Step 1: enable Colorify feature in for this product

Step 2: prepare .png layers and encode each of them in base64

The image for Colorify functionality is not a single image but 2 or more layer-like images each of which is placed on top of each other. This is an archive with . Each layer is a part of the whole image isolated on transparent background.

Next sub step is to encode each such image-layer to base64. It easy to do with this service: . Just upload your image and get its encoded value. Save the code somewhere, we will need it later.

Step 3: add custom Option, connect it <- re create this step for as many Options as you need

👉 Currently, only Radio Option type can be used for Colorify functionality. Also, you have to switch the Option to Colour mode:

Locate "_Base64 Encoded Image" _setting and paste the code for one of the layers:

Now add some suboptions, choose colour for each of them:

Save this option.

Final:

This is how the product looks like in our demo:

My image consists of 4 layers, so I have added 4 custom options. Each Option changes a colour of certain part of the image. I have done step 3 for each of my options.

⚠️ Important: the order of custom options matters! Place your options in the order of the desired appearance of the image parts.

UniCPO 4 Colorify feature demo
general settings
examples of such image-layers
b64.io