Home Forums WC Vendors Pro Support Product fields location on single product page

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #59740
    patrick
    Participant

    How does one adjust were a field displays on the single product page?

    Below is the codes im using. I would like to put multiple fields in the area of the short description, or new/used and remove short and new/used from that location.

    I assume that “$output =” controls location. $output = get_post_meta puts fields below checkout. I tried variasions to get it under the single product sidebar title without luck

    `CURRENTLY USED ON PRODUCT EDIT

    <?php
    WCVendors_Pro_Form_Helper::textarea( array(
    ‘post_id’ => $object_id,
    ‘id’ => ‘wcv_custom_product_ingredients’,
    ‘label’ => __( ‘Ingredients’, ‘wcvendors-pro’ ),
    ‘placeholder’ => __( ‘Ingredients’, ‘wcvendors-pro’ ),
    ‘desc_tip’ => ‘true’,
    ‘description’ => __( ‘The product ingredients’, ‘wcvendors-pro’ ),
    ) );
    ?>

    THIS IS CURRENTLY USED ON FUNCTIONS

    //* This code will display the vales on the single product page.
    add_action(‘woocommerce_product_meta_start’, ‘wcv_ingredients’, 2);
    function wcv_ingredients() {
    $output = get_post_meta( get_the_ID(), ‘wcv_custom_product_ingredients’, true );
    // Change wcv_custom_product_ingredients to your meta key
    echo ’88Ingredients: ‘ . $output . ‘<br>’;
    }

    #59754
    Anna
    Member

    woocommerce_product_meta_start
    That’s an action hook. That will determine where on the page this function will appear.
    So, take a look at WooCommerce’s product page action hooks, and change the action hook to move this to a different area on the product page. 🙂

    Sounds like you might wish to try: woocommerce_before_add_to_cart_form

    #59761
    patrick
    Participant

    OMG, thats a great page. thank you for your response

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.