WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
how to echo Variations price only, for every variation (1 post)

  1. Udris
    Member
    Posted 1 year ago #

    Hello,
    quick question...
    I need to display a price table based on variations.

    material-A quatity from 1-20 price is 20$ per piece quantity from 21+ price is 16$ per piece.

    material-B quatity from 1-20 price is 30$ per piece quantity from 21+ price is 23$ per piece.

    How to echo such thing?
    I think I need to glue these together...
    for material-A
    $available_variations = $product->get_available_variations();
    get_variation_attributes( ) // gets variation name e.g "material-A quatity from 1-20"
    get_price_html( ) // gets price e.g. "price is 20$"

    But do not know how.

    Thanks for any help.

    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.