Add some field in Description in Product Page

This topic contains 5 reply and 2 voices, and was last updated by Sk 10 years, 7 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
March 31, 2014 at 1:38 pm 17650
Sk Hi Support, How to add some custom field in product page like screenshot below: Description Below add to cart or above it.
March 31, 2014 at 1:53 pm 17651
Sk Sk

Hello Mohd Ghufran,

You could add some field by using action hook ‘woocommerce_single_product_summary’.

<?php add_action( 'woocommerce_single_product_summary', 'your_function', 40 ); ?>

Please be aware on next update. You may lose your custom code.

Thank you.

March 31, 2014 at 1:59 pm 17653
Mohd Ghufran Mohd Ghufran

If I add this, so seller will have drop down option in their page right?
I means drop down like :

1. New Item
2. Used Item

March 31, 2014 at 2:21 pm 17655
Sk Sk

No that hook is only for view in single product page.

You could use hook ‘dokan_product_edit_after_downloadable’ to add drop down field.

<?php do_action( 'dokan_product_edit_after_downloadable' ); ?>

This will show on the side-bar of product edit page.

April 1, 2014 at 10:22 pm 17802
Mohd Ghufran Mohd Ghufran

I still can’t understand this, it might be customization, but i need to know which file and the location of the file to edit.

By the way when user listing their product the drop down menu selection will prompt where this item is new or used and will be show in listing page.

April 3, 2014 at 3:54 pm 17941
Sk Sk

Please check reference for do_action

and reference for add_action

Thank you

Viewing 5 Posts - 1 through 5 (of 5 total)