• Hi there

    How can I change the – Order total: – font, language and table border size?

    I am using Astra theme but the Order total: is an YITH WooCommerce Product Add-Ons option.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Iván Sosa

    (@ivansosa)

    Hi there,

    To change the label, add this custom code in the functions.php of your theme:

    if ( ! function_exists( 'yith_custom_wapo_table_total_order_label' ) ) {
        function yith_custom_wapo_table_total_order_label($label){
            $label = 'Total';
            return $label;
        }
        add_filter('yith_wapo_table_total_order_label', 'yith_custom_wapo_table_total_order_label');
    }

    To change font size and color, please, add this CSS rule in Appearance > Customize > Additional CSS:

    tr.wapo-total-order th{
        font-size: 13px;
        color: #267cbb;
    }

    Let us know if that did the trick.

    Have a nice day!

    Thread Starter dedrami

    (@dedrami)

    Hi

    I need it to be like this: Order total: 10.50 €

    The above CSS works only for Order total: without the price and there is a <tr>, <th> and <table> border/shandow around this that has to be removed.

    Custom code in the functions.php does not work .

    • This reply was modified 1 year, 8 months ago by dedrami.
    Plugin Support Pablo Pérez

    (@pperez001)

    Hi there,

    I checked the code my colleague sent you and it changes the label Order total, but however we didn’t understood completely want you want to change of it. Please let us know if you want to change the text or if you wanted to do something else with that row.

    Regarding the CSS:

    • To change edit the color and size of the price please add this code:
    tr.wapo-total-order #wapo-total-order-price{
        font-size: 13px;
        color: #267cbb;
    }
    • As the element is from our plugin the styles of the table may change depending on your theme to exactly know what border of shadows your table has, please share with only the link of a product with this table. However you should be able to remove the border and shadow using this code:
    #wapo-total-price-table table, #wapo-total-price-table tr, #wapo-total-price-table th, #wapo-total-price-table td{
        border: none;
        box-shadow: none;
    }

    I hope this helps.

    Thread Starter dedrami

    (@dedrami)

    Hi there

    Thanks for your reply.

    The problem is with el.po and el.mo files, although site language is set right, it does not show up the right translation. Is there a way you can fix it?

    As for the CSS it worked fine, all table borders disappeared.

    • This reply was modified 1 year, 8 months ago by dedrami.
    • This reply was modified 1 year, 8 months ago by dedrami.
    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    does not work the EL translation for al plugin strings or limited the one you mentioned?

    Thread Starter dedrami

    (@dedrami)

    Hi there

    I just checked the backend (admin) and it seems that does not work for all strings.

    msgid “Order total”
    msgstr “TOTTALE” (translation)

    Does not show up.

    I also checked the the de_DE.po translation and it works fine.

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    could you send here (with a service like WeTrasfer)the file translation you’re using for EL translation?

    This language is not available at the moment for this plugin (take a look here), so I suppose you created the translation by yourself.

    We remain at your disposal.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Order total:’ is closed to new replies.