Úprava čísla účtenky

[et_pb_section transparent_background=“off“ background_color=“#ad0000″ allow_player_pause=“off“ inner_shadow=“off“ parallax=“off“ parallax_method=“on“ custom_padding=“21px|0px|51px|0px“ padding_mobile=“off“ make_fullwidth=“off“ use_custom_width=“off“ width_unit=“off“ custom_width_px=“1080px“ custom_width_percent=“80%“ make_equal=“off“ use_custom_gutter=“off“ fullwidth=“off“ specialty=“off“ admin_label=“section“ disabled=“off“][et_pb_row make_fullwidth=“off“ use_custom_width=“off“ width_unit=“off“ custom_width_px=“1080px“ custom_width_percent=“80%“ use_custom_gutter=“off“ gutter_width=“3″ custom_padding=“27px|0px|0px|0px“ padding_mobile=“off“ allow_player_pause=“off“ parallax=“off“ parallax_method=“on“ make_equal=“off“ column_padding_mobile=“on“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ parallax_4=“off“ parallax_method_4=“on“ admin_label=“row“ disabled=“off“][et_pb_column type=“4_4″ disabled=“off“ parallax=“off“ parallax_method=“on“ column_padding_mobile=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ disabled_on=“off|off|off“ admin_label=“Text“ text_font_size=“49px“ text_text_color=“#ffffff“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Úprava čísla účtenky

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section transparent_background=“off“ allow_player_pause=“off“ inner_shadow=“off“ parallax=“off“ parallax_method=“on“ padding_mobile=“off“ make_fullwidth=“off“ use_custom_width=“off“ width_unit=“off“ custom_width_px=“1080px“ custom_width_percent=“80%“ make_equal=“off“ use_custom_gutter=“off“ fullwidth=“off“ specialty=“on“ disabled=“off“][et_pb_column type=“2_3″ specialty_columns=“2″ disabled=“off“][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Číslo účtenky je číslo, které uznačuje účtenky mělo by být jedinčné.

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner custom_padding=“0px|0px|27px|0px“ padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Ve výchozím nastavení, je číslo účtenky, id objednávky

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Protože však čísla objednávek ve WooCommerce nenásledují za sebou, nebo případně používáte plugin pro číslování objednávek, nebo si prostě chcete účtenky číslovat jinak, je k dispozici filter, jenž umožní číslo účtenky upravit.

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Více informací o použití filtrů najdete zde https://developer.wordpress.org/reference/functions/add_filter/

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Filtr toret_eet_porad_cis

$porad_cis  = apply_filters( ‚toret_eet_porad_cis‘, $order->id );

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ disabled=“off“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ disabled=“off“ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Příklad použití

add_filter( ‚toret_eet_porad_cis‘, ‚custom_porad_cis‘);

function custom_porad_cis( $order_id ){

/*

Změním si číslo dle toho, jak potřebuji

*/

}

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][et_pb_row_inner padding_mobile=“off“ use_custom_gutter=“off“ make_equal=“off“ column_padding_mobile=“off“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“][et_pb_column_inner type=“4_4″ saved_specialty_column_type=“2_3″ column_padding_mobile=“off“ parallax=“off“ parallax_method=“on“][et_pb_text background_layout=“light“ text_orientation=“left“]

Pokud potřebujete změnit id objednávky a id účtenky v pdf účtence, můžete tak učinit pomoc:

$eet_id_uctenky = apply_filters( ‚pdf_id_uctenky‘, $eet_id_uctenky, $order->id );

$eet_id_objednavky = apply_filters( ‚pdf_id_objednavky‘, $order->id );

[/et_pb_text][/et_pb_column_inner][/et_pb_row_inner][/et_pb_column][et_pb_column type=“1_3″ disabled=“off“][et_pb_sidebar orientation=“left“ background_layout=“light“ disabled=“off“][/et_pb_sidebar][/et_pb_column][/et_pb_section][et_pb_section transparent_background=“off“ background_color=“#1e1c1c“ allow_player_pause=“off“ inner_shadow=“off“ parallax=“off“ parallax_method=“on“ custom_padding=“0px|0px|5px|0px“ padding_mobile=“off“ make_fullwidth=“off“ use_custom_width=“off“ width_unit=“off“ custom_width_px=“1080px“ custom_width_percent=“80%“ make_equal=“off“ use_custom_gutter=“off“ fullwidth=“off“ specialty=“off“ admin_label=“section“ disabled=“off“][et_pb_row make_fullwidth=“off“ use_custom_width=“off“ width_unit=“off“ custom_width_px=“1080px“ custom_width_percent=“80%“ use_custom_gutter=“off“ gutter_width=“3″ padding_mobile=“off“ allow_player_pause=“off“ parallax=“off“ parallax_method=“on“ make_equal=“off“ column_padding_mobile=“on“ parallax_1=“off“ parallax_method_1=“on“ parallax_2=“off“ parallax_method_2=“on“ parallax_3=“off“ parallax_method_3=“on“ parallax_4=“off“ parallax_method_4=“on“ admin_label=“row“ disabled=“off“][et_pb_column type=“4_4″ disabled=“off“ parallax=“off“ parallax_method=“on“ column_padding_mobile=“on“][et_pb_text background_layout=“light“ text_orientation=“left“ admin_label=“Text“ text_font_size=“29px“ use_border_color=“off“ border_style=“solid“ disabled=“off“]

Další pluginy pro WooCommerce od Toret

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]