Jump to content

Is there a way to have a link to a single product page at whmcs?


HostMaria

Recommended Posts

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

 m1k8sVP.png

 

Thank you,

Helmuts

Edited by HostMaria
updated
Link to comment
Share on other sites

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. 🙂

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

BueTEkV.png

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...

MJN7aIa.png

if so, the modified hook can do that. 🙂

Link to comment
Share on other sites

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...

 

BueTEkV.png

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

Link to comment
Share on other sites

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:

CfLRoWW.pngwhat 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.

Link to comment
Share on other sites

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?? 🙂

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated