cleberkr
Forum Replies Created
-
Forum: Plugins
In reply to: [Discounts Per Payment Method on WooCommerce] Um pouco estranhocriei esse filtro que faz a correção do valor
verifiquem.
adicionei ele no próprio plugin abaixo da linha 33 class-wc-payment-discounts-apply-discount.php mas também pode ser feito por plugin a parte.
add_filter( ‘woocommerce_calculated_total’, function($total,$cart){
$subtotal = array_values($cart->cart_contents)[0];
$total = $subtotal[‘line_subtotal’];
foreach ($cart->coupon_discount_totals as $key => $value) {
$total -= $value;
}
return $total;
}, $priority = 10, 2 );Forum: Plugins
In reply to: [Discounts Per Payment Method on WooCommerce] Um pouco estranho+ 1
*** woocommerce versão 2.6.9
I had the same problem and i’ve found the solution. On media.php on line 777… change default values of columns to 1 and of size to LARGE… it should look like this after done:
extract(shortcode_atts(array(
‘order’ => ‘ASC’,
‘orderby’ => ‘menu_order ID’,
‘id’ => $post->ID,
‘itemtag’ => ‘dl’,
‘icontag’ => ‘dt’,
‘captiontag’ => ‘dd’,
‘columns’ => 1,
‘size’ => ‘large’,
‘include’ => ”,
‘exclude’ => ”
), $attr));