Jump to content

cart.php?a=add&pid=XX Show Product Name


Guest vuzuggu

Recommended Posts

Guest vuzuggu

When you add an item to the cart in WHMCS and it requires a domain name The heading Says Choose a Domain name and you are given three options Register, Transfer, Update NS. However, no-where does it show the product you are purchasing or the price. Is there a way to add these? The URL for example is cart.php?a=add&pid=XX

Link to comment
Share on other sites

to show the product name, you could use {$productinfo.name}.

 

however, pricing would be a different issue because at that stage, you haven't chosen a billing cycle (assuming there are multiple options)... so WHMCS has no price to pass.

 

I guess if you were only using one billing cycle, you could use an action hook to query the database for the value - otherwise, you'll just have to make do with the product name (or description if you want more info).

Link to comment
Share on other sites

How do you find out which files are being loaded/served, to work out which ones need editing?

experience! :)

 

usually, you can just guess the template from the URL - if it's an order-form, there's no more than ten files to check; if it's a theme template, then the template name is normally a giveaway.

 

failing that, view the page source in the browser and find code that you think will be unique to that page and then do a file search of the templates to find a match.

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