Pridať do poľa Popis produktu meta _wceb_product_booked_dates

[ad_1]

Dobrý deň,

pomocou filtra sf_item_data môžte údaje o položke faktúry zmeniť ako potrebujete. Popis produktu napríklad takto:

function my_invoice_data($invoice_data, $order, $type) {
    $invoice_data['description'] .= sprintf("\r\n Rezervácia: %s", $order->get_meta('_wceb_product_booked_dates'));
    return $invoice_data;
}
add_filter('sf_invoice_data', 'my_invoice_data', 10, 3);

Je to len príklad, pravdepodobne ho budete musieť upraviť podľa toho ako a kde plugin Easy Booking dátumy ukladá. Možno budete musieť zmeniť formát dátumov, alebo ťahať údaje z meta dát položky a nie objednávky.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer