RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_payment_cart_details

rpress_payment_cart_details

The rpress_payment_cart_details filter is used to retrieve payment cart details, the filter includes a two-parameters.
$art_details ->is an array containing cart items details
$ID -> get fooditems id.

An example of how you can append additional information:

function get_payment_cart_details($cart_details) {
$cart_details = //get cart items price details.
}
add_filter( 'rpress_payment_cart_details', 'get_payment_cart_details' ,10 ,2 );

 

How can we help?