Jump to content

Capture serviceid of product?


robetus

Recommended Posts

I have a product that has been created within WHMCS and inside the product in the client area there is a button that takes the customer to another product for the purchase of a custom upgrade. Is there a way I can capture the serviceid of the product in which the button was clicked to purchase the upgrade? So:

Product1 >> button click >> checkout for upgrade >> upgrade purchase confirmation >> output Product1 serviceid for upgrade function to run

I hope that isn't too confusing.

Link to comment
Share on other sites

Try adding {debug} to your .tpl file and checking out the available "stuff to capture" so you can use smarty tags to display snippets of code. You'll open up, for example, the checkout.tpl and add something like:

{if $productinfo.pid eq "420"}
insert html code here and make sure it includes button with button link to your product / service
{/if}

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