Přidání řádku faktury při dárkovém poukazu

[ad_1]

Dobrý deň,

pre pridanie poukazu do popisu položky na faktúre môžte použiť filter sf_item_data, napríklad takto:

function my_sf_item_data($item_data, $order, $product) {
    $item_data['description'] .= " Poukaz: 850C-E473-8B8B-6667";
    return $item_data;
}
add_filter('sf_item_data', 'my_sf_item_data', 10, 3);

Údaje o objednávke a produkte vstupujú do funkcie v premenných $order a $product, podľa nich sa teda dostanete ku konkrétnym hodnotám meta dát objednávky alebo produktu, ktoré na faktúre potrebujete.

 

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