bellafronte Posted September 30, 2017 Share Posted September 30, 2017 Hello folks, I'm trying to retrieve shopping cart items in the ShoppingCartViewCartOutput hook, the documentation informs the cartData parameter, but it only has the array with the ID of the products in the cart. I need to retrieve all the cart data, such as product name, quantity, value, payment cycle, currency and the total value of the cart in ShoppingCartViewCartOutput hook. I tried to retrieve the data through $ _SESSION and the $ _GLOBAL variable but both have the same information as $cartData. Does WHMCS have a way to retrieve all the information from the cart at this point in the hook ShoppingCartViewCartOutput? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted October 2, 2017 WHMCS Developer Share Posted October 2, 2017 You can use the API to obtain product details with a list of product ids. https://developers.whmcs.com/api-reference/getproducts/ is the API command I would recommend using. 1 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.