Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Store Invoice: Add VAT Number under Store address
- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by WCFM Forum.
- AuthorPosts
- August 22, 2019 at 2:04 pm #77785shitTParticipant
Hi
How can I add the VAT Number under the store address in the store invoice?
I created a custom attribute (stored in DB under Usermeta with meta_key=”MWST_Nr”). I am overwriting the store-invoice.php as you described in this forum. I guess I muss insert something like:
… (in the declarations)
$wcfm_vendor_vat_nr = isset( $wcfm_vendor_invoice_options[‘xxxxx’] ) ? $wcfm_vendor_invoice_options[‘yyyyy’] : ”;…(in the “head container” und “shop-info”)
<?php if( $wcfm_vendor_vat_nr ) { ?>
<div class=”vendor-avt-nr”><?php echo $WCFM->wcfm_vendor_support->zzzzz ( $vendor_id ); ?></div>
<?php } ?>
…What would xxxxx, yyyyy and zzzzz be?
Your help would be greatly appreciated.
Thanks you!
- August 22, 2019 at 4:20 pm #77811WCFM ForumMember
Hi,
Please create a custom field (VAT Number) for Store Invoice – https://wclovers.com/knowledgebase/wcfm-store-invoice/
Thank You
- August 23, 2019 at 8:18 am #77982shitTParticipant
Thanks for your answer!
I wanted to have the VAT-Nr. under the customer address. I could solve this using this function: https://developer.wordpress.org/reference/functions/get_user_meta/
- August 23, 2019 at 8:20 am #77983WCFM ForumMember
Hi,
Do you want to add VAT no. for vendors or for customers?
Thank You
- AuthorPosts
- You must be logged in to reply to this topic.