arndofiore80
Forum Replies Created
-
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] ADD TAG ORDERyes I checked but the code I wrote did not work, my skills did not lead to write a code that allows me to obtain the result I want.
add_filter( "puiw_printinvoice_create_html_item_row_metas", "my_custom_lineitems_macros", 10, 5); function my_custom_lineitems_macros ($macros, $item_id, $item, $product_id, $order){ $product = $item->get_product(); $order_tag = wcot_order_tags_get_order_tags( $order_id ); $macros["order_tag"] = $order_tag; return $macros; }
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] ADD TAG ORDERHi, I’ve already tried to find a solution myself and insert code. But I wasn’t able to insert something that worked if you can help me write the code, I would be grateful because I can’t get a result on my own.
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] Add Custom Macrook, perfect I managed to get the result. Thanks millet
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] Add Custom MacroSure, here it is.
I also divided the brackets for the wordpress forum.
But when entering the code this is entered in the correct way.But the display remains that of the code, and not of the possible number that should be displayed.
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] Add Custom MacroNo this didn’t work, as no number is displayed, but the code { { {remaining-qty} } }
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] Add Custom MacroI followed the procedure, and I inserted in the default folder both a prova.row and a prova.row.tpl file containing the code you provided.
But when I went to modify the template instead of going out a number, the words “remaining-qty
” came out*I added the template, and it displays correctly
Forum: Plugins
In reply to: [PeproDev Ultimate Invoice] Add Custom Macroadd_filter( "puiw_get_default_dynamic_params", function ($stock, $optm){ $stock["stock-quantity"] = ''; return $stock; }, 10, 2);
it should be so ?
I’m not programming expert, I’m trying to be able to import the remaining stock quantity of an order into the order template of my site, could you help me to write the right code please?
Is it possible to remove this text in the description of the order received?
- This reply was modified 3 years, 6 months ago by arndofiore80.
Forum: Plugins
In reply to: [Load More Products for WooCommerce] products do not load after scrool