Jump to content

Need a hook to change system URL


Recommended Posts

3 hours ago, pratik_asabe said:

I want to change a URL of 'Add Web Hosting' box on domain checker page which usually points to cart page, but I want to change it and point it to my desired location.

the easiest way would be to edit the standard_cart/domainregister.tpl template and change the link there...

<a href="cart.php" class="btn btn-warning">{lang key='orderForm.exploreNow'}</a>

you could do it with a Footer Output action hook, but with the href element not having any id or name, you're left trying to identify it by class and/or it's occurrence on the page.

it can be done, but either class or position could change after a WHMCS or custom template update... so unless you're desperate to avoid editing templates, I don't think that i'd use a hook for this... though I can post the hook if you want to use it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated