Quantcast
Channel: Nederland » Recent Posts
Viewing all articles
Browse latest Browse all 30043

Amsterdammer on "Woocommerce -> Onder subtotaal ALLEEN BTW-bedrag tonen (21% van subtotaal)"

$
0
0

Zou iemand mij kunnen helpen met een (hopelijk) simpele oplossing voor het BTW totaalbedrag in totals.php van Woocommerce. Ik ben radeloos :(

Onder het subtotaal bedrag wil ik ALLEEN dat het BTW-bedrag (21% van subtotaal) zichtbaar is ipv Totaal + BTW-bedrag.

Standaard =
Subtotaal: €100,00
Totaal van de bestelling: €79,00
(Bevat €21,00 BTW)

Momenteel =
Subtotaal : €100,00
BTW (21%) : €79,00 €21,00

Mijn doel =
Subtotaal : €100,00
BTW (21%) : €21,00

In het kort: hoe verberg ik die €79,00?

Standaard=

<?php do_action( 'woocommerce_review_order_before_order_total' ); ?>

			<tr class="total">
				<th><strong><?php _e( 'Order Total', 'woocommerce' ); ?></strong></th>
				<td>
					<strong><?php echo $woocommerce->cart->get_total(); ?></strong>
					<?php
						// If prices are tax inclusive, show taxes here
						if ( $woocommerce->cart->tax_display_cart == 'incl' ) {
							$tax_string_array = array();

							foreach ( $woocommerce->cart->get_tax_totals() as $code => $tax ) {
								$tax_string_array[] = sprintf( '%s %s', $tax->formatted_amount, $tax->label );
							}

							if ( ! empty( $tax_string_array ) ) {
								?><small class="includes_tax"><?php printf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_string_array ) ); ?></small><?php
							}
						}
					?>

Wat ik heb=

<?php do_action( 'woocommerce_cart_totals_before_order_total' ); ?>

				<tr class="total">
					<th><strong><?php _e( 'BTW (21%)', 'woocommerce' ); ?></strong></th>
					<td>
						<strong><?php echo $woocommerce->cart->get_total(); ?></strong>
						<?php
							// If prices are tax inclusive, show taxes here
							if (  $woocommerce->cart->tax_display_cart == 'incl' ) {
								$tax_string_array = array();

								foreach ( $woocommerce->cart->get_tax_totals() as $code => $tax ) {
									$tax_string_array[] = sprintf( '%s', $tax->formatted_amount, $tax->label );
								}

								if ( ! empty( $tax_string_array ) ) {
									echo '<span class="amount">' . sprintf( __( '%s', 'woocommerce' ), implode( ', ', $tax_string_array ) ) . '</span>';
								}
							}
						?>

Ik ben er al uren mee bezig zonder succes. Wie o wie zou mij hiermee kunnen helpen?


Viewing all articles
Browse latest Browse all 30043

Trending Articles