cluster Posted March 4, 2018 Share Posted March 4, 2018 (edited) I would like to show all the hostings in the product overview >> /cart.php currently only this is displayed: Product Type: Hosting Account Product Group: Hosting Packages I have e.g. Joomla and Wordpress Packages created as an extra group: Product Type: Hosting Account Product Group: Joomla Packages and Product Type: Hosting Account Product Group: WP Packages would it be possible to display all of these on the cart page? Edited March 4, 2018 by cluster Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2018 Share Posted March 4, 2018 4 hours ago, cluster said: I would like to show all the hostings in the product overview - would it be possible to display all of these on the cart page? it might be helpful to see some screenshots of what you're seeing to fully understand what you want to do. by default, WHMCS will show the products within the first product group, and then to access additional product groups, you click the link in the categories sidebar (i'm assuming standard_cart in use here)... so you want to show products from Joomla & WP product groups on the opening page? if so, and assuming there are no setting differences between the groups (different cart templates or payment gateways etc), the simplest way would just be to move the products in the other groups to the first product group... now I don't think you can move products between groups in the admin area, so it would likely need to be a quick edit of the group value in the tblproducts database table. the other way would be an action hook to expand the $products array to include products from these other groups - but moving the products would be simpler! Link to comment Share on other sites More sharing options...
cluster Posted March 4, 2018 Author Share Posted March 4, 2018 thank You, I have moved the CMS packages to the main group ;-) ok, now I have a free hosting package which use another order template without transfer and own domain name fields ... so it is assigend to a special group "FreeHosting" ... which it would like to desplay with the standard hostings above is there a way to add a query or variable for the FreeHosting group to the template? Link to comment Share on other sites More sharing options...
cluster Posted March 4, 2018 Author Share Posted March 4, 2018 thanks Brian, I have solved this by hardcoding an extra box into the products.tpl below the foreach part ... Link to comment Share on other sites More sharing options...
Recommended Posts