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

Packages

  • None
  • Product-Delivery-Date-Pro-for-WooCommerce
    • Addon
    • Admin
      • Settings
        • Field-Labels
        • General
        • Google-Sync
      • View-Deliveries
    • Calendar
    • Common-Functions
    • Configuration
    • Delivery-Charges
    • Edit-Deliveries
    • Emails
    • Frontend
      • Cart
      • Checkout
    • Google-Calendar
    • Languages
    • License
    • Reschedule-Deliveries
    • View-Deliveries

Classes

  • prdd_cart

Class prdd_cart

Cart page process class

Package: Product-Delivery-Date-Pro-for-WooCommerce\Frontend\Cart
Author: Tyche Softwares
Since: 1.0
Located at prdd-cart.php

Methods summary

public static array
# prdd_add_cart_item( array $cart_item )

This function adjust the extra prices for the product with the price calculated from the plugin.

This function adjust the extra prices for the product with the price calculated from the plugin.

Parameters

$cart_item
Cart item array

Returns

array
Cart item array with adjusted price

Since

1.0

Todo

Unused function. Need to check and delete it.

Globals

resource $wpdb WordPress object
public static array
# prdd_add_cart_item_data( array $cart_item_meta, integer $product_id )

This function returns the cart_item_meta with the delivery details of the product when add to cart button is clicked.

This function returns the cart_item_meta with the delivery details of the product when add to cart button is clicked.

Parameters

$cart_item_meta
Cart item data.
$product_id
Product ID for the product added to the cart.

Returns

array
Cart item data with delivery details.

Since

1.0

Globals

resource $wpdb WordPress object
array $prdd_date_formats Delivery date formats

Hook

woocommerce_add_cart_item_data
public static array
# prdd_get_cart_item_from_session( array $cart_item, array $values )

This function adjust the prices calculated from the plugin in the cart session.

This function adjust the prices calculated from the plugin in the cart session.

Parameters

$cart_item
Cart item data.
$values
$_POST values.

Returns

array
Cart item data with delivery details.

Since

1.0

Globals

resource $wpdb WordPress object.

Hook

woocommerce_get_cart_item_from_session
public static array
# prdd_get_item_data( array $other_data, array $cart_item )

This function displays the delivery details on cart page, checkout page.

This function displays the delivery details on cart page, checkout page.

Parameters

$other_data
Additional data to be displayed.
$cart_item
Cart item data.

Returns

array
Additional data to be displayed with delivery fields.

Since

1.0

Globals

resource $wpdb WordPress object.

Hook

woocommerce_get_item_data
public static array
# prdd_woo_cart_widget_subtotal( array $fragments )

This function modified the product price in the Woocommerce cart widget.

This function modified the product price in the Woocommerce cart widget.

Parameters

$fragments
Data to be displayed on cart widget.

Returns

array
Data to be displayed on cart widget.

Since

1.0

Globals

resource $woocommerce WooCommerce object.

Hook

woocommerce_add_to_cart_fragments
API documentation generated by ApiGen