Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

10 Good

About bellafronte

  • Rank
  1. Integrating RabbigMQ messenger into whmcs

    @zub , I believe that the first step is the search for a good PHP library to base your needs. I have developed a provisioning module that integrates with the IBM MQ and a good SOAP library help me save lots of time in development.
  2. I get this resolved look the Data Feed files architecture. The data feed files can serve as the reference on retrieve this type of information.
  3. This resource is in progress: http://requests.whmcs.com/topic/attachments-via-api Unfurtnely now you can't send an attachment with the API.
  4. How to relate orders to invoices?

    Maybe you can use the internal API like @brian! suggested. GetOrders Obtain orders matching the passed criteria
  5. Hello WHMCS Community! I'm building a custom page on WHMCS that needs to retrieve all the products on a specific product group. In this step so far so good. But, these products have their names translated into several languages using the dynamic translation and different currency prices, looking into WHMCS Classes Model, I found on Product Model the methods that can retrieve this information in the current language and currency set. I build a simple loop that catches all the products ID: $command = 'GetProducts'; $productgroupid = 12; $postData = array( 'gid' => $productgroupid, ); $results = localAPI($command, $postData); $productsId = array(); foreach ($results['products']['product'] as $product) { $productsId[] = $product['pid']; } After this, I passed this products ID's to Product Model to get the information that I need: foreach ($productsId as $key => $value) { $products[$key] = [ 'name' => Product::find($value)->getNameAttribute(), 'description' => Product::find($value)->getDescriptionAttribute(), 'price' => Product::find($value)->pricing(), ]; } This works perfectly well, but the princing() method return only the default currency. I make a test outside the loop to get only one product and tested with different currencies, and the result is that what I expected: $userid = (isset($_SESSION['uid']) ? $_SESSION['uid'] : ""); $currencyid = (isset($_SESSION['currency']) ? $_SESSION['currency'] : ""); // $currencyid = 5; $currency = getCurrency($userid, $currencyid); var_dump($currency); var_dump(Product::find(1))->pricing(); (I have try without the currency variable, and after this passing the ID of currency, and the both cases works good) Only on the loop the princig() method do not retrieve the correct currency. I'm making a mistake in the loop that is not allowing the currency to recover properly?
  6. Service testing!

    Hello @Ilario42 I think you can configure a product with Auto Terminate/Fixed Term: Products and Services Documentation
  7. Google Analytics Enhanced E-commerce for WHMCS implement Universal Analytics Enhanced E-commerce features using Google Tag Manager on WHMCS. With this module, you now can track all orders in Google Analytics and Goals Conversion. Optimize your Adwords Campaigns with information about sales orders, revenue, CPA and more! Google Analytics Enhanced E-commerce enables product impression, promotion, and sales data to be sent to Google Analytics. Track Page Views, Events, and Actions on all WHMCS pages. Track the order funnel and revenue, abandoned checkout process, generate page value and improve the data analysis of your audience. Find out into WHMCS Marketplace list, https://marketplace.whmcs.com/product/3118 See our presentation video here. Main Features The Google Analytics Enhanced E-commerce for WHMCS allows you to analyze purchase activity on your WHMCS. Now you can collect product and transaction information, average order value, e-commerce conversion rate, time to purchase, and other information such as: Track Transactions Track Products adds to Cart Track Products removed from Cart (coming soon) Track Checkout and Purchase Funnel Track Shopping Behavior Track Checkout Behavior Track Product Performance: Product Revenue Unique Product Purchases Avg. Price Product Refund (coming soon) Track Sales Performance: Revenue per Transaction Tax paid per Transaction Refund Amount (coming soon) Track Marketing Promotions: Coupons Usage per Order Coupons Usage per Product (coming soon) Internal Promotion (coming soon) Affiliate Code (coming soon) Google Analytics Enhanced E-commerce for WHMCS lets you see the overall state of the performance of your WHMCS, and provides the ability to enable three categories of related metrics on: Shopping Behavior Analysis The Shopping Behavior Analysis report lets you see the number of sessions that included each stage of your purchase funnel, how many sessions continued from one step to the next, and how many abandoned the funnel at each stage. You can evaluate your users' shopping experience from product impression to transaction. Checkout Behavior Analysis The Checkout Behavior Analysis report lets you see how successfully your users moved through your checkout process. The checkout-funnel visualization illustrates how many users moved from one step to the next, how many abandoned the process at each step, and how many entered the process at each step. Product Performance The Product Performance report lets you see how your products performed from two different points of view. Sales Performance The Sales Performance report lets you evaluate sales dimensions and report metrics per sale. Order Coupon The Order Coupon report lets you see how your order-level coupons performed. Domains Purchases and TLD's Whit Google Analytics Enhanced E-commerce for WHMCS you can keep your digital strategy improved tracking the domains purchases and renews. Generate analysis on Google Analytics with the most orders TLD's and more! Events and Behavior Keep track the user Events on checkout funnel. See all events steps involved in a transaction such as: Product Impressions: Track Products Impression when a Product Group is visited. Product Details: Track events when the product have configuration options or additional modules Add to Cart: Trigger an event when a product is added to shopping cart. Checkout: Track any event on registration and payment process. Purchase: Collect all data of the order and push to Google Analytics. Multi-currency Support This module supports multi-currency orders. You can track any currency used on your orders. You can purchase this module on WHMCS Marketplace, https://marketplace.whmcs.com/product/3118
  8. Hello folks, I recommend the Google Analytics Enhanced Ecommerce for WHMCS to implement Universal Analytics and Enhanced E-commerce features using Google Tag Manager on WHMCS.
  9. 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?
  10. Custom Report Generator Filter

    You can develop a custom module for this purpose, see how create a custom addon module on http://developers.whmcs.com/addon-modules/
  11. Hello WHMCS Community! I come here to try to clarify a doubt. I developing a custom provisioning module and I want to use the Eloquent Model from Laravel to manipulate the database over the Query Builder which is mentioned in the documentation. Are there any restrictions on use? Regards!
  12. Works perfectly! Thank you very much brian!
  13. Hello, I trying access the product total price from $vars['products'] without currencie format,but the variables with the raw value is protected and I can't access your value. I try to fetch from array $vars['products']['pricing']['baseprice'] but this variable contain currencie codes, and the $vars['products']['pricing']['baseprice']['price'] is protected There is another option to fetch the product price from the cart product array without the currencie codes? Regards
  14. Hello Folks. I'm developing a custom theme for WHMCS v6 based on six template. In six template example (https://github.com/WHMCS/templates-six) I found a variable to get the icon for the main navbar: {if $item->hasIcon()}<i class="{$item->getIcon()}"></i> {/if} How to define these Icons? I look in role template (and the config settings too) but I not found any reference to this icons. Or it will be necessary create a hook for ClientAreaPrimaryNavbar and set through this? Best regards!
  15. Hello Folks! I'm developing a gateway module that integrate the Brazilian payment gateway "Pagseguro" with WHMCS. The Pagseguro has an API that make possible store the subscription ID for capture payments automatically for future invoices. It's possible use the subscription id parameter in the product information in attempt to capture the payment with the function merchantgateway_capture in my gateway module instead the CC number? Thank you very much!

Important Information

By using this site, you agree to our Terms of Use & Guidelines