• Good Morning,

    Having recently moved over to Woocommerce, just trying to solve a few issues that we’re facing.

    Any advise, would be very much appreciated.

    1) The cart page is too narrow. It appears too crushed up. There’s no pre tags in the html shortcode, which was the first thing to check.

    2) How can we remove the “parent category” from the product urls.

    3) How can we change the word tax to “VAT”

    Kind Regards,

    Andrew

    • This topic was modified 6 years, 2 months ago by Andrew1977.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Meu formulário da pagina finalizar compra do woocommerce ficou com as letras em branco, como alterar a cor para preto novamente, já vi vários videos, mas nenhum fala sobre alteração de cor do formulário?

    Plugin Support mouli a11n

    (@mouli)

    Hey there,

    1) The cart page is too narrow. It appears too crushed up. There’s no pre tags in the html shortcode, which was the first thing to check.

    This is a theme issue so I’d recommend that you switch to a default theme such as TwentyNineteen so see if that fixes it.
    If it does, then it is likely that there is some CSS in your current theme causing the issue.

    How can we remove the “parent category” from the product urls.

    You can change how product links are set up under Settings ➔ Permalinks and going down to the Product Permalink section.


    Link to image: https://d.pr/i/6lNg62

    How can we change the word tax to “VAT”

    When you define tax rates under WooCommerce ➔ Settings ➔ Tax you can set a name for the rate:


    Link to image: https://d.pr/i/8QhFPs

    I trust that answers your question.

    Thread Starter Andrew1977

    (@andrew1977)

    Good Afternoon,

    Thank you for your e-mail, and advise.

    Managed to sort out the cart page by applying some custom css.

    The custom base permlink settings, won’t allow you to specify just the sub category. It’s only allows /%category%/ which will show /parent category/sub-cateogry.

    I can’t see anyway from the permalink settings to hide the parent category.

    Have tried the following filter with no luck:

    function wdm_remove_parent_category_from_url( $args ) {
    $args[‘rewrite’][‘hierarchical’] = false;
    return $args;
    }

    add_filter( ‘woocommerce_taxonomy_args_product_cat’, ‘wdm_remove_parent_category_from_url’ );

    Kind Regards,

    Andrew

    Plugin Support mouli a11n

    (@mouli)

    Hi Andrew,
    It does seem that the default permalink structure will generate the category hierarchy as you are experiencing.

    In researching this I came across this thread:
    https://ww.wp.xz.cn/support/topic/subcategory-not-used-in-permalink/

    The thread is rather old but the plugin itself was last updated only a month ago:
    https://ww.wp.xz.cn/plugins/woo-permalink-manager/

    I suggest that it might be worth looking into plugins as a solution here.

    Please note that we do not endorse, or provide support for, products by developers other than WooCommerce, but you are certainly free to try any such product at your own discretion.

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    Thread Starter Andrew1977

    (@andrew1977)

    Hi Mouli,

    Again, thank you for all your advise and help on this.

    I’ve had a look at plugins with no luck, but will have a look again.

    There must be a way of achieving this with a simple filter in functions.php

    I don’t suppose you know anyway that the following could be tweaked to achieved the desired results?

    function wdm_remove_parent_category_from_url( $args ) {
    $args[‘rewrite’][‘hierarchical’] = false;
    return $args;
    }

    add_filter( ‘woocommerce_taxonomy_args_product_cat’, ‘wdm_remove_parent_category_from_url’ );

    Kind Regards,

    Andrew

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

The topic ‘Woocommerce Issues’ is closed to new replies.