• Hello,

    We would like to have an extra field in the Price Table. So next to Quantity and Price we would like to add a field ‘Purchase Price’. This is just a field for extra information when calculating the selling price.

    Is there a way to do this?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Developer

    (@bycrik)

    Hello,

    The table view file is located at {PLUGIN_DIR}/views/frontend/price-table-fixed.php (or {PLUGIN_DIR}/views/frontend/price-table-fixed.php for percentage rules)

    If you open the file, you’ll see hooks that help you add custom columns for the table:

    to add header column:

    do_action( 'tier_pricing_table_fixed_header_columns', $price_rules, $real_price,
    						$product_id );

    hook for each row at the table:
    do_action( 'tier_pricing_table_fixed_body_columns', $iterator, $price_rules, $real_price, $product_id );

    Hope that helps.

    Best,
    Kolya

    • This reply was modified 4 years, 7 months ago by WP Developer.
    • This reply was modified 4 years, 7 months ago by WP Developer.
    Thread Starter pbrakkee

    (@pbrakkee)

    Hi Kolya,

    Thanks for your reply. We actually only want an extra input field in the backend. So next to the Quantity and Price input field we want an extra input field where we can put an extra price (purchase price). How can we achieve this?

    In add-price-rules-variations.php I can add an extra input field but how to save this data?

    Thanks again.

    Pelle

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extra field’ is closed to new replies.