Is it possible to generate a purchase link for a product without making it "visible" to all users?

Hello! I’d like to send a link to a specific product to a customer, but I wouldn’t want this product to be visible to other users to avoid any conflict in the sale. Is that possible?

Thank you in advance.

Hi!

Are you using Intelligent Search/VTEX IO? You can hide the product from search. Or go to the product registration and uncheck the “Show on website” flag.

Then you can send a link to add the product directly to the cart.
https://www.YOURSTORE.com/checkout/cart/add?sc=1&sku=1&qty=1&seller=1

Important:

  • replace sc=1 with the sales channel (policy) used on the site, usually 1.
  • replace sku=1 with the SKU ID
  • replace seller=1 with the seller ID, this may change if you’re running a marketplace.

Hi @tom, how are you?

As Ricardo @Saito mentioned in his message, you can hide the product from the listing by unchecking the “Display on site” option on the desired product, however even though it’s still possible to add the product to the cart via URL and complete the purchase, the product page itself will become inaccessible.

If you need the product page to remain available but without showing up in search results, the best approach would be to create a Merchandising Rule for Intelligent Search.

Create a New Merchandising Rule

Go to https://{{accountname}}.myvtex.com/admin/search/v4/custom-results/
Create a new Merchandising Rule

Configure the New Rule

First, set the new rule to “Global activation”
Then, in the “Customization rules” area under “Remove”, configure the activation condition where the ID equals the “Product ID” value you don’t want to display in your site’s search results.

This way, the desired ProductId will not be listed in search but will remain accessible via URL.

Cheers!