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

  1. Udris
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.