• Resolved fluirus

    (@fluirus)


    hello,

    I have a problem with changing the text of the template. Even if I go inside the template and trying to change it in code it doesnt function like it was before I changed it.

    I will give an example. If I want to change the Delivery and Store text which is for choosing type of delivery (in delivery it will pop up the address form and in store there is just date picker) i change it but if I try to choose delivery the address form is not poping up anymore. Its like even if I change just string it stops the whole logic behind showing the address form with the map.

    overall is there any way to translate whole plugin to my language ? I noticed with Loco translate that your plugin doesn’t have setup language so I can’t translate it however I want. It would be really nice if there was some way to do it so I can change it to my language.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ammarahmad786

    (@ammarahmad786)

    Hi! Can i please see the screenshot?
    And please share the filename too which you are trying to change.
    And We’re updating the plugin and we’ll fix the language issue too. It will be translated into your own language. But it will take around 2 weeks. If you want urgent fix. Please share the screenshot and filename

    Thread Starter fluirus

    (@fluirus)

    Hello,

    Down you can see the screenshot. First one is the text i want to translate or change (delivery options), i can change it with filter in function.php but whenever i change it the logic for delivery stop to work. I mean like if customer clicks on delivery it will show him the address form but whenever i change the text it wont show the form anymore.

    And the filename is cm-checkout-template.php where i can see the delivery options but if i change just the text it stops working. Main problem is for Delivery which i need to show the address form for calculating the distance and price.

    If there is some way to change the text and not broke it i woudl really appreciate it.

    Thank you for your help

    BR

    MR

    Plugin Author ammarahmad786

    (@ammarahmad786)

    Hi!
    So you have to make 2 changes. 1 you already made. 1 you have to make it in JS file. There’s a js folder and inside it there’s a file named as cm-checkout-script.js
    Open the file and search the function function change_labels_option

    In function replace the text you want with “Delivery”

    Thread Starter fluirus

    (@fluirus)

    Thank you its working !

    If i can have another question. I would like to also translate the pop up of “Delivery Fee Added” and “Please Fill All Delivery Address Fields” or “Cost Per KM”

    Here on this picture i tried to point out also the text “Cost per”

    Everywhere i can easly change the text (tranlastion) but these are the last texts fields i would like to change. If you could help me once again with this one i would be so glad.

    Thank you

    BR

    MR

    Plugin Author ammarahmad786

    (@ammarahmad786)

    Hi!
    So for the text “Cost Per” it will changed from the file cm-checkout-template.php located in the templates folder and for other texts they both can be changed from the JS file named as cm-checkout-script.js in JS folder.

    Plugin Author ammarahmad786

    (@ammarahmad786)

    Hi!
    I’m marking this as resolved. Feel free to re-open if you face any issues

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

The topic ‘Changing text or maybe translation ?’ is closed to new replies.