change template cart and checkout and some text

Home – SaaS Forums Presale questions Woo Price Calculator change template cart and checkout and some text

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4524
    RG
    Participant

    Hey,

    How can I change the template file from the checkout and the cart?

    How can I change the not set text when I don’t set a value in a text field.
    How can I change the edit text from the cart?

    Best regards,

    RG

    #4532
    Naidi
    Participant

    Hi Rien,

    changing the template to change the style would be better to do it from your theme or creating a child theme.

    You can add e default value to the field, in your WPC admin page at the backend, when creating a new field there is the options you can set.
    I want to add that if you want to create custom templates in the product page here is a link in our documentation : https://altoswebsolutions.com/manual/woo-price-calculator/using-themes.

    If you want to change the edit text in the cart page just change the content inside the file : wp-content/plugins/woo-price-calculator/admin/awspricecalculator/View/cart/edit-button.php.

    Best regards,
    Naidi
    AT734

    #4531
    RG
    Participant

    Hey Naidi,

    Do you mean changing the css in the theme. That would be a possibility but I would prefer changing the html output. The html output from the order confirmation is more like I would like to have it.
    See attachment.

    If I change the edit text then I would loose the ability to do any future updates of the plugin?

    Best regards,
    RG

    #4530
    RG
    Participant

    It would be also better to have a default value and an empty value. In most cases these will be different. Can I change this without loosing the update possibility?
    Where can I change the checkbox value text? Can I translate the yes and no? It would be better to have an option like the checked value text and unchecked value text

    Best regards,
    RG

    #4529
    Naidi
    Participant

    Hi Rien,

    as you said these are those type of custom changes that you would better handle in your custom theme, including changing the edit button text.

    Best regards.
    Naidi
    AT734

    #4528
    Naidi
    Participant

    Hi Rien,

    yes you can change it without loosing the update possibility if you handle it in you theme functionality.
    During the creation of an input filed of type text, you can set the text that appears to the user as well as the input field value.
    About the options to have different vale text when checked and another when unchecked you can handle this type of situation in many ways.
    Anyway we will take a note for future developments.

    Best regards,
    Naidi
    AT734

    #4527
    RG
    Participant

    Hey Naidi,

    Can you explain “when checked and another when unchecked you can handle this type of situation in many ways” what will be a good way to do this?
    Can you give an example of making those custom changes in the theme? I can find some documentation how I can override the product configuration but I can’t find an example of overriding this in the cart of checkout. Maybe there is a global way to override the files in the template folder? I’m pretty sure I can fix it in the core files but then I will lose the update functionality.

    Best regards,

    RG

    #4526
    RG
    Participant

    Hi Naidi,

    But can you tell me how I can overwrite the item.php from wp-content/plugins/woo-price-calculator/admin/awspricecalculator/View/checkout in my template file?
    Where can I put the user translations? The one the plugin will use in $this->wsf->userTrans(‘Yes’);

    Best regards,

    Rien

    #4525
    Naidi
    Participant

    Hi Rien,

    you can find all the information you need one the links in our documentations:
    https://altoswebsolutions.com/manual/woo-price-calculator/using-themes
    https://altoswebsolutions.com/manual/woo-price-calculator/translations

    Best regards,
    Naidi
    AT734

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.