Jump to content

After 3 days I'm finally asking. Custom Client Fields updated through Cart.php URL


simplybk

Recommended Posts

I've spent some time searching the site for a answer to this.

 

I created a Custom Client Field in my back office.

 

And I need a way to fill in the value using WHMCS's Linking URL to Cart.php

 

My link looks like this right now:

cart.php?a=add&pid=35&customfield[1]=test&carttpl=cart

 

As you can see the problem is that customfield[1]=test isn't working to pass the var through.

 

Would anyone know how to do this using the Linking URL to the cart.php page?

 

Thanks,

Brandon

Link to comment
Share on other sites

  • 5 months later...

It's possible but the custom field must exists in your WHMCS. Let's say that want to ask for "Gender" while ordering an hosting package. First of all create the custom field "Gender" for real in your WHMCS then get it's ID (right click with Firebug or Source is the easiest way). Now that you have the ID, let's say "900", normally use the URL like this:

 

&customfield[900]=Male

 

When the order has been completed you'll have "Male" variable inside your customfield and then your database.

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