Category : plugins

““ foreach( $cart as $cart_item_id=>$citem ) { if ( $citem[‘product_id’] == $gift ) { //$grp = $citem[‘data’]->get_regular_price(); $woocommerce->cart->cart_contents[$cart_item_id][‘line_subtotal’] = ’10’; //$woocommerce->cart->quantity($cart_item_id, ’10’); } } “` /* i can change specific product price in"woocommerce_before_calculate_totals" hook. But i can not manage to change the line_subtotal of a specific product. Is there any way to do it using ..

Read more

I tried to work on the Heroku server and deploy WordPress there. Because on Heroku I need a database and separate bucket to serve images, I was trying to use this plugin https://wordpress.org/plugins/ilab-media-tools/ to handle images. But when I use this plugin and few others I’m getting db error. WordPress database error: [User ‘*******’ has ..

Read more