• Resolved igacius

    (@igacius)


    Hello, thank you for great plugin!

    How can i add custom field into the table?

    My variations has additional field (qty_in_package) and i want it to be added as additional column.

    Thank you ??

Viewing 1 replies (of 1 total)
  • Plugin Author WPXtension

    (@wpxteam)

    Hi,

    I hope you are doing well today. Unfortunately, adding an extra column feature is not available in this standard/free version.

    You can add your custom field with the add to cart button. Here is a sample code to understand how it works-

    add_filter( 'pvtfw_row_cart_btn_is', function( $btn, $product_id, $cart_url, $product_url, $variant_id, $text ){
    	return $btn . get_post_meta( $variant_id, 'qty_in_package', true );
    }, 10, 6 );

    You can use it as per your need.

    Best Regards

    • This reply was modified 5 months, 3 weeks ago by WPXtension.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.