Support » Plugin: WooCommerce » Changing prices of products in page php

  • I was wondering is it possible to change the page.php file so that I can change the price within a product based on $woocommerce->cart

    foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values )
    	{
    		$values['data']->price = 1;
    		$values['data']->sale_price = 1;
    	}

    I’ve tried to do the following but it doesn’t pass to the payment gateway.

    http://wordpress.org/extend/plugins/woocommerce/

  • The topic ‘Changing prices of products in page php’ is closed to new replies.