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

Was this helpful?

  1. For developers

JS events

We use jQuery and its '.trigger' function to fire events. Therefore, those events are available only when you use jQuery as well.

Event uni_cpo_options_data_ajax_before_send

Contains form data just before sending request to backend.

Event uni_cpo_options_data_ajax_success

Is fired if ajax request was successful. Contains both form data and response data.

Event uni_cpo_options_data_ajax_fail

Is fired when ajax request was not successful. Contains both form data and response data.

Event uni_cpo_set_price_event

This event is fired when the price has just been updated after price calculation is made. It receives a string value of the updated price.

Event uni_cpo_set_btn_state_event

Fires when price calculation has just been made and holds the value of the 'add to cart' button. It can be either true or false.

Class uni_add_to_cart

This class is added to 'add to cart' button and is used to add add to cart via ajax functionality. You can add this class to your custom button(s) and achieve the same effect.

PreviousActions & FiltersNextExtending Uni CPO

Last updated 4 years ago

Was this helpful?