yener35
Forum Replies Created
-
Hi Daan,
here is the link i will send the plugins to the contact form
Done.
I use many many plugins
90+ and cannot place them here.
Hi Daan,
Its much better, but still not on the level without the plugin.
Still not the results
i run this version https://prnt.sc/BE-W4YGstpkY
Hi Daan,
I score a C without the plugin, and now its an E sometimes a D.
Something is wrong…
Hi!
Thanks for the fast response, its done. You can check it now
Already found it.
its the option Remove the VAT from the order even when the customer is in your base country. It was checked, and it shouldnt be
Hi David,
I dont think i have explained it right.
Custommers can order and always have to pay VAT. Only companies outside the homecountry can use VAT checkout and no VAT will be added.
So everything is working great, but the people in the Netherlands always have to pay 21% even when they fill up a VAT /BTW number
Forum: Plugins
In reply to: [Invoices for WooCommerce] Add Phonenumber to packing slipsHi Cris,
Thank you for your answer. Now i’m not a PHP excpert. Could you please tell me where to add this line?
<?php
/**
* PDF invoice template body.
*
* This template can be overridden by copying it to youruploadsfolder/woocommerce-pdf-invoices/templates/invoice/simple/yourtemplatename/body.php.
*
* HOWEVER, on occasion WooCommerce PDF Invoices will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @author Bas Elbers
* @package WooCommerce_PDF_Invoices/Templates
* @version 0.0.1
*/$templater = WPI()->templater();
$invoice = $templater->invoice;
$order = $invoice->order;
$line_items = $order->get_items( ‘line_item’ );
$formatted_shipping_address = $order->get_formatted_shipping_address();
$formatted_billing_address = $order->get_formatted_billing_address();
$columns = $invoice->get_columns();
$color = $templater->get_option( ‘bewpi_color_theme’ );
$terms = $templater->get_option( ‘bewpi_terms’ );
?><div class=”title”>
<div>
<h2><?php echo esc_html( WPI()->get_option( ‘template’, ‘title’ ) ); ?></h2>
</div>
<div class=”watermark”>
<?php
if ( WPI()->get_option( ‘template’, ‘show_payment_status’ ) && $order->is_paid() ) {
printf( ‘<h2 class=”green”>%s</h2>’, esc_html__( ‘Paid’, ‘woocommerce-pdf-invoices’ ) );
}do_action( ‘wpi_watermark_end’, $order, $invoice );
?>
</div>
</div>
<table cellpadding=”0″ cellspacing=”0″>
<tr class=”information”>
<td width=”50%”>
<?php
/**
* Invoice object.
*
* @var BEWPI_Invoice $invoice .
*/
foreach ( $invoice->get_invoice_info() as $info_id => $info ) {
if ( empty( $info[‘value’] ) ) {
continue;
}printf( ‘<span class=”%1$s”>%2$s %3$s</span>’, esc_attr( $info_id ), esc_html( $info[‘title’] ), esc_html( $info[‘value’] ) );
echo ‘<br>’;
}
?>
</td><td>
<?php
printf( ‘%s<br />’, esc_html__( ‘Bill to:’, ‘woocommerce-pdf-invoices’ ) );
echo $formatted_billing_address;do_action( ‘wpi_after_formatted_billing_address’, $invoice );
?> <?php printf( __(‘Telefone: %s’, ‘woocommerce-pdf-invoices’), $order->get_billing_phone() ); ?>
</td><td>
<?php
if ( WPI()->get_option( ‘template’, ‘show_ship_to’ ) && ! WPI()->has_only_virtual_products( $order ) && ! empty( $formatted_shipping_address ) ) {
printf( ‘%s<br />’, esc_html__( ‘Ship to:’, ‘woocommerce-pdf-invoices’ ) );
echo $formatted_shipping_address;do_action( ‘wpi_after_formatted_shipping_address’, $invoice );
}
?>
</td>
</tr>
<tr class=”custom-information”>
<td>
<?php echo apply_filters( ‘wpi_custom_information’, ”, $invoice ); ?>
</td>
</tr>
</table>
<table cellpadding=”0″ cellspacing=”0″>
<thead>
<tr class=”heading” bgcolor=”<?php echo esc_attr( $color ); ?>;”>
<?php
foreach ( $columns as $key => $data ) {
$templater->display_header_recursive( $key, $data );
}
?>
</tr>
</thead>
<tbody>
<?php
foreach ( $invoice->get_columns_data() as $index => $row ) {
echo ‘<tr class=”item”>’;// Display row data.
foreach ( $row as $column_key => $data ) {
$templater->display_data_recursive( $column_key, $data );
}echo ‘</tr>’;
}
?><tr class=”spacer”>
<td></td>
</tr></tbody>
</table><table cellpadding=”0″ cellspacing=”0″>
<tbody><?php
$i = 1;
$length = count( $invoice->get_order_item_totals() );
foreach ( $invoice->get_order_item_totals() as $key => $total ) {
$class = str_replace( ‘_’, ‘-‘, $key );
?><tr class=”total”>
<td width=”50%”>
<?php do_action( ‘wpi_order_item_totals_left’, $key, $invoice ); ?>
</td><td width=”25%” align=”left” class=”border <?php echo $i === $length ? ‘last’ : ”; ?> <?php echo esc_attr( $class ); ?>”>
<?php echo $total[‘label’]; ?>
</td><td width=”25%” align=”right” class=”border <?php echo $i === $length ? ‘last’ : ”; ?> <?php echo esc_attr( $class ); ?>”>
<?php echo str_replace( ‘ ‘, ”, $total[‘value’] ); ?>
</td>
</tr><?php
$i ++;
}
?>
</tbody>
</table><table class=”notes” cellpadding=”0″ cellspacing=”0″>
<tr>
<td>
<?php
// Customer notes.
if ( WPI()->get_option( ‘template’, ‘show_customer_notes’ ) ) {
// Note added by customer.
$customer_note = BEWPI_WC_Order_Compatibility::get_customer_note( $order );
if ( $customer_note ) {
printf( ‘‘ . __( ‘Note from customer: %s’, ‘woocommerce-pdf-invoices’ ) . ‘<br>’, nl2br( $customer_note ) );
}// Notes added by administrator on ‘Edit Order’ page.
foreach ( $order->get_customer_order_notes() as $custom_order_note ) {
printf( ‘‘ . __( ‘Note to customer: %s’, ‘woocommerce-pdf-invoices’ ) . ‘<br>’, nl2br( $custom_order_note->comment_content ) );
}
}
?>
</td>
</tr><tr>
<td>
<?php
// Zero Rated VAT message.
if ( ‘true’ === WPI()->get_meta( $order, ‘_vat_number_is_valid’ ) && count( $order->get_tax_totals() ) === 0 ) {
echo esc_html__( ‘Zero rated for VAT as customer has supplied EU VAT number’, ‘woocommerce-pdf-invoices’ ) . ‘<br>’;
}
?>
</td>
</tr>
</table><?php if ( $terms ) { ?>
<!– Using div to position absolute the block. –>
<div class=”terms”>
<table>
<tr>
<td style=”border: 1px solid #000;”>
<?php echo nl2br( $terms ); ?>
</td>
</tr>
</table>
</div>
<?php } ?>