• Resolved westham00

    (@westham00)


    I have created a custom field for variable products. I wish to reposition the custom field further down the page. How can I edit the variation.php or single-product.php to reposition my custom field.

    Here is the desired position:

    View post on imgur.com

    This is the current variation.php where i have added my data.variation.custom_field:

    <script type="text/template" id="tmpl-variation-template">
    	<div class="woocommerce-variation-description">data.variation.variation_description</div>
    	<div class="woocommerce-variation-price">data.variation.price_html</div>
    	<div class="woocommerce-variation-custom_field">
    data.variation.custom_field
    </div>
    	<div class="woocommerce-variation-availability">data.variation.availability_html</div>
    </script>
    • This topic was modified 5 years, 5 months ago by westham00.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Riaan K.

    (@riaanknoetze)

    Hi there,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reposition Custom Product Variation Field’ is closed to new replies.