HostMaria Posted June 16, 2020 Share Posted June 16, 2020 (edited) Good morning all, Is there a way to have a link to a single product page at whmcs? A product page that contains a description of 1 single product only with a checkout button. Yes, I did visit links section, but these are not the links I am looking for Thank you, Helmuts Edited June 16, 2020 by HostMaria updated 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted June 16, 2020 Share Posted June 16, 2020 (edited) No. Unless you want to create a custom page for this purpose. Edited June 16, 2020 by Kian 1 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 16, 2020 Share Posted June 16, 2020 3 hours ago, HostMaria said: Is there a way to have a link to a single product page at whmcs? A product page that contains a description of 1 single product only with a checkout button. this is confusing my little head on a Tuesday morning... the question is vague as to what you want to do as it could be taken in different ways I think. can you add direct links to products that will add them to the cart and take the user to checkout/vc? the answer is yes - linking to your aftermarket domains would effectively do that; whereas linking to a hosting product normally wouldn't because it needs configuration during ordering, e.g choosing a domain name.... you could pass links with configurations already predefined in them, e.g configurable option choices etc.https://docs.whmcs.com/Linking_to_WHMCS can you have a product group with only one product inside it? yes. can you add links to products on existing pages outside of the cart? yes - either by editing the templates, or using a hook (though the devil in the detail will be what you want to do and where). can you create a custom page that automatically adds links to all configured products? yes. I suspect we might need to more about what it is you're wanting to do. 🙂 0 Quote Link to comment Share on other sites More sharing options...
HostMaria Posted June 16, 2020 Author Share Posted June 16, 2020 15 minutes ago, brian! said: this is confusing my little head on a Tuesday morning... the question is vague as to what you want to do as it could be taken in different ways I think. Good morning Brian, my Tuesday morning is a bit dull as well (we need to work less) :) Why do I want to do it? All the ecommerce platforms do have a single listing page > it is a bad practice (for conversions) to send a user that needs 1 particular service to a page that has 6 services or more. Yes, I could create a single custom page for a listing. I was hoping that the cms has a single page listing link. If not - not. Helmuts 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 16, 2020 Share Posted June 16, 2020 1 hour ago, HostMaria said: Good morning Brian, my Tuesday morning is a bit dull as well (we need to work less) 🙂 I hear you - this is a 3 day week for me (shouldn't be online on Thursday and hopefully in no condition to do so on Friday either! 🍻), so these first three days are crazily busy! 2 hours ago, HostMaria said: All the ecommerce platforms do have a single listing page > it is a bad practice (for conversions) to send a user that needs 1 particular service to a page that has 6 services or more. oh if you just wanted to pass a link to a product and have only that product appear in the product group, of the cart then that's completely doable with a hook. last year, I posted a hook to do that for product addons, where you could link to individually addons, multiple addons, predefined groups, marketconnect groups etc... with a few minor tweaks, it can be changed to work for products instead... in my first product group, I have 12 products and if I use cart.php?gid=1 (or just cart.php) it will shown them all as normal... however, when using the modified hook, if I were to use cart.php?gid=1&pid=45, then it will only show that one product to the user. is that what you want to do? e,g give links to product(s) to different users... e.g to send someone to AV.be only, cart.php?gid=1&pid=6 ? or you could even define specific aftermarket domains into a group and only show them to the user... if so, the modified hook can do that. 🙂 1 Quote Link to comment Share on other sites More sharing options...
HostMaria Posted June 16, 2020 Author Share Posted June 16, 2020 6 hours ago, brian! said: I hear you - this is a 3 day week for me (shouldn't be online on Thursday and hopefully in no condition to do so on Friday either! 🍻), so these first three days are crazily busy! oh if you just wanted to pass a link to a product and have only that product appear in the product group, of the cart then that's completely doable with a hook. last year, I posted a hook to do that for product addons, where you could link to individually addons, multiple addons, predefined groups, marketconnect groups etc... is that what you want to do? e,g give links to product(s) to different users... e.g to send someone to AV.be only, cart.php?gid=1&pid=6 ? or you could even define specific aftermarket domains into a group and only show them to the user... if so, the modified hook can do that. 🙂 Fantastic Brian! Thank you - I will look into this. One more day to go and then, enjoy your Thursday and Friday! Helmuts 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 20, 2020 Share Posted June 20, 2020 On 19/06/2020 at 14:06, HostMaria said: Did try various approaches .. couldn't get working 🙂 out of the box, the product addons hook wouldn't even run on the products page - so that would be the first thing you would need to change to make it work on the products page. On 19/06/2020 at 14:06, HostMaria said: what would be the exact url to display only product id=1 on the page? cart.php?gid=1&pid=1 but it won't work without the modified hook. On 19/06/2020 at 14:06, HostMaria said: what would be the exact url to show items of 2 categories on one page? in WHMCS, only the products within the current product group / category are available to the template. you could get products from other categories, but you would need to query the database for them and add them to the existing products array - or build a custom products array from that query. with the modified hook, you could show multiple products from the current group - but you would need a completely different hook if you needed to get products from multiple groups. 1 Quote Link to comment Share on other sites More sharing options...
HostMaria Posted June 21, 2020 Author Share Posted June 21, 2020 12 hours ago, brian! said: out of the box, the product addons hook wouldn't even run on the products page - so that would be the first thing you would need to change to make it work on the products page. cart.php?gid=1&pid=1 but it won't work without the modified hook. Wow!! Thank you Brian, This url along with the modified hook (you've sent me, HUGE TX) works as a charm. Who are you?? 🙂 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.