WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Changing prices of products in page php (1 post)

  1. timothyky
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.