Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • Deposits-for-WooCommerce
    • Bookings
    • Cart
    • Order
    • Other
    • Payment-Plans
      • Views
    • Products
    • Settings

Classes

  • DFW_Manage_Products

Class DFW_Manage_Products

Manage the Products data

Package: Deposits-for-WooCommerce\Products
Category: Classes
Author: Tyche Softwares
Since: 1.0
Located at includes/class-dfw-manage-products.php

Methods summary

public static boolean
# dfw_is_deposits_enabled( integer $product_id )

Check if deposit is enabled on a product

Check if deposit is enabled on a product

Parameters

$product_id
Product ID

Returns

boolean

Since

1.0
public static boolean
# dfw_is_deposits_forced( integer $product_id )

Check if deposit is forced on a product

Check if deposit is forced on a product

Parameters

$product_id
Product ID

Returns

boolean

Since

1.0
public static float
# dfw_get_deposit( integer|WC_product $product, integer $plan_id = 0, string $context = 'display', float $price = null )

Get the deposit amount based on the deposit type

Get the deposit amount based on the deposit type

Parameters

$product
Product Id or object
$plan_id
Payment Plan ID
$context
$price
Product price

Returns

float

Since

1.0
public static string
# dfw_get_deposit_type( integer $product_id )

Get the deposit type of a product

Get the deposit type of a product

Parameters

$product_id
Product ID

Returns

string

Since

1.0
public static string
# dfw_get_formatted_deposit_amount( integer $product_id )

Display the deposit amount on fron end product page

Display the deposit amount on fron end product page

Parameters

$product_id
Product ID

Returns

string

Since

1.0
public static array
# dfw_has_payment_plans( integer $product_id )

Check if the product has payment plans enabled & which plans are entered

Check if the product has payment plans enabled & which plans are entered

Parameters

$product_id
Product ID

Returns

array

Since

1.0
API documentation generated by ApiGen