astralliquid Posted November 16, 2016 Share Posted November 16, 2016 Hi All, I am trying to collect information on order form by parsing in the customfield to pre-filled it. it works if the order is a direct product http://www.xxxxx.com/cart.php?a=add&pid=132&customfield[184]=11111111 but is this product is part of a bundle, the customfield is not captured http://www.xxxxx.com/cart.php?a=add&bid=12&customfield[184]=11111111 Submitted a ticket and the response from WHMCS was: ********************************************************** Unfortunately with Bundles, this type of linking will not work. However, what you could do, is use a hook and pass some jQuery to input the data in the field as the page is loaded after the redirect. A good hook to use for this would be the ShoppingCartValidateProductUpdate hook. http://docs.whmcs.com/Hooks:ShoppingCartValidateProductUpdate This will run as the product configuration is being completed and will return product custom fields which you could then input the data you are needing manually. ********************************************************** I am not good at programming and do not understand the concept of hooks. Can someone please help me with some exact code samples/locations/file/guide? Thank you very much I seriously need this to work to get the order to work seamlessly. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.