Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1124319
    Steve C
    Participant

    Hi,

    Woocommerce displays product dimensions (on the Additional Information tab) as D x W x H

    Is there anyway of getting it to display as W x D x H ?

    #1124427
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #1124566
    Steve C
    Participant

    By default dimensions are displayed L x W x H =

    https://snag.gy/97IaGC.jpg

    I would like W x D x H

    #1125228
    Nico
    Moderator

    Hi There,

    Thanks for clarifying. Upon further research it is quite a customization. It would be best to contact woocommerce developer or a custom developer to rearrange the default dimension. We would love to help you however it is beyond the scope of our support.

    I have found the source to edit but not sure it would help or would not cause any problem.

    woocommerce/includes/abstracts/abstract-wc-product.php

    Related link found in woocommerce documention: http://woocommerce.wp-a2z.org/oik_api/wc_productget_dimensions/

    Hope it helps.

    Thank you so much for understanding.

    #1125331
    Steve C
    Participant

    Nice one! Thanks for that.

    I swapped the get_length and get_width in the function and it worked as I wanted.

    #1125520
    Thai
    Moderator

    Glad you’ve sorted it out.

    If you need anything else, please let us know 🙂

  • <script> jQuery(function($){ $("#no-reply-1124319 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>