YayExtra - WooCommerce Extra Product Options
  • YayExtra Documentation
  • Getting Started
    • Introduction
    • How to Install
    • Enter License Key
    • System Requirements
    • How to Update YayExtra
    • Uninstall and Delete
  • How it Works
    • How to Create Option Set
      • Add div element for option sets to style
    • How to Add Different Option Types
    • Common Options Settings
    • Sorting
    • Option Types
      • Text Option
      • Number Option
      • Button Option
      • Dropdown Option
      • Swatches Option
      • File Upload Option
      • Date Picker Option
      • Time Picker Option (with Conditional Logic)
      • File Download
      • Image Upload
      • How the Above Sample Appears on the Product Page
    • Add Action to Options Using Conditions
    • Assign Option Set to Products
    • Add Percentage Custom Fees
  • Customize
  • Settings
  • Developer zone
  • Why Upgrade?
  • Other Links
    • FAQs
    • Changelog
    • Support
Powered by GitBook
On this page

Was this helpful?

Developer zone

  1. Hook for before_calculate_totals function:

  • yaye_cart_line_total

  • yaye_cart_line_regular_total

$cost_total         = apply_filters('yaye_cart_line_total', Utils::get_price_from_yaycurrency( $cost_total ), $cart_value);
				$cost_regular_total = apply_filters('yaye_cart_line_regular_total', Utils::get_price_from_yaycurrency( $cost_regular_total ), $cart_value);

				$cart_value['data']->set_price( $cost_total );
				$cart_value['data']->set_regular_price( $cost_regular_total );
PreviousSettingsNextWhy Upgrade?

Last updated 1 year ago

Was this helpful?