Jump to content

Direct Link Redirecting


dgilbert

Recommended Posts

Does anyone know how a customer can click a button on our website to go DIRECTLY to that products details (the page with the price and options that looks like a receipt) in the shopping cart instead of being directed to our list of products in the shopping cart?

 

For example

 

Clicking "buy now" button from our website: https://xxxxx.xxxxxx.com/cart.php?a=confproduct&i=1

 

Redirects to: https://xxxxxxx.xxxxxxxx.com/cart.php

 

We rather not have our list of products when you already decided what you wanted.

 

Anyone know?

Link to comment
Share on other sites

You should by using

 

Standard: https://billing.lowpricedomains.com/cart.php?a=add&pid=20

Wildcard: https://billing.lowpricedomains.com/cart.php?a=add&pid=34

 

You can see the PID in your browser's URL bar when editing the product in the admin area.

 

Thanks! That works for that product but why does: https://billing.lowpricedomains.com/cart.php?a=add&pid=20 redirect to https://billing.lowpricedomains.com/cart.php?a=confproduct&i=9

 

???

 

I'm having trouble figuring out the next links for the other 3 SSL certificates.

Link to comment
Share on other sites

  • WHMCS Support Manager

When you add an item to your cart it is assigned an ID, the first product you add will have a confproduct&i=0, the second will be confproduct&i=1, the first confproduct&i=2 and so on. This ID is unique to your shopping cart for this particular visit. If you leave the site and come back, the first product you add to the cart will have a confproduct&i=0 again.

 

The link you need to use contains the product's ID, this is an ID number unique to each product in your system. Think of &pid=20 like the permanent URL of that product, it will always refer to one specific product. While confproduct&i=0 is just a temporary URL of the first product to be added to the shopping cart by that particular client on that particular visit.

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