Jump to content

Recommended Posts

I have some text( HTMl-formatted) that I want to insert here: https://imgur.com/a/Oe0TvSE 

Can someone guide on which file to edit to achieve? And, where exactly(along with line number) should i place my code?

Thank you so much for helping me! 

Share this post


Link to post
Share on other sites
Posted (edited)

Hi Sai,

You can edit -->  templates/orderforms/standard_cart/viewcart.tpl

Standard Theme search for :

                            {if $cartitems > 0}
                                <div class="empty-cart">
                                    <button type="button" class="btn btn-link btn-xs" id="btnEmptyCart">
                                        <i class="fa fa-trash"></i>
                                        <span>{$LANG.emptycart}</span>
                                    </button>
                                </div>
                            {/if}

Then you can modify it like :

                            {if $cartitems > 0}
                                <div class="empty-cart">Text before
                                    <button type="button" class="btn btn-link btn-xs" id="btnEmptyCart">
                                        <i class="fa fa-trash"></i>
                                        <span>{$LANG.emptycart}</span>
                                    </button>
                                Text after</div>
                            {/if}

result:

image.thumb.png.ea850031cc23fedc4079c28f067a454f.png

Greetings Christian

Edited by wp4all
  • Like 1

Share this post


Link to post
Share on other sites

Hi,

Please make sure that when you do this, you are copying the "six" folder in /templates to a new folder name of your choice.

This is because as WHMCS updates in the future, the "Six" directory will be overwritten and you will lose any changes. Any custom templates remain untouched. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines