• Resolved valedemi

    (@valedemi)


    I have layout problem with woocommerce wholesale price(1.6.2 and earlier) in product page on my wp dashboard… please see link attached

    https://ibb.co/fURqVx

    the first item is without wholesale price, and second with it, see the issue in the layout ..

    Cheers

    • This topic was modified 8 years, 2 months ago by valedemi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @valedemi,

    Thanks for contacting us!

    It seems that there’s a layout issue with the latest version of WooCommerce, which causes the product page wholesale column to get squeezed in. You can fix this by using the following snippet:

    //* Backend Product page layout *//
    add_action(‘admin_head’, ‘my_wholesale_price_column’); 
    function my_wholesale_price_column () {

     echo ‘<style> 
        th#wholesale_price {
            width:  10% !important;
        }

        table.wp-list-table .column-product_cat, table.wp-list-table .column-product_tag {
            width:5%;
        }
        </style>’;
     }

    Please add this code snippet to your current theme or child theme’s function.php. Alternatively, you can also use the Code Snippets plugin to add this. You can check the plugin page here: https://wordpress.org/plugins/code-snippets/

    I hope this helps. If you have any other questions, feel free to ask me again.

    Thread Starter valedemi

    (@valedemi)

    Thank you for your reply Ray, but i tried to add this code with codesnippets but nothing has changed..

    Thread Starter valedemi

    (@valedemi)

    i think it is not a compatibility issue with my current theme, because i see this problem on my wp dashboard, under product list section

    Hi @valedemi,

    Thanks for keeping in touch!

    The code snippet should add a minimum width for the wholesale prices column on the product list so that it won’t get squeezed. If it doesn’t work on your end, another solution is to reduce the number of columns on your product list.

    Located on the upper right of your Product list, please click on Screen Options and uncheck some columns until you get the desired width for the Wholesale Prices column. https://snag.gy/pg83hs.jpg

    I hope this helps. Let me know if there’s anything else I can assist you with 🙂

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

The topic ‘layout problem’ is closed to new replies.