Menu
Feedback
Start here
Tutorials


Tutorials
Price
Configuring a discount for orders paid in full
2 min read

A very common ecommerce strategy for attracting customers is to apply a discount to specific payment methods when orders are prepaid in full. This promotional price is usually displayed to users only after they select the payment method at the checkout.

The greatest advantage of this strategy is that the price is automatically calculated, avoiding inconsistencies in sales channels that compare the price sent by the integration with the price displayed on the product page, such as Google Shopping.

To use this strategy in the VTEX platform, besides indicating the discount for orders prepaid in full, you also have to select the payment method to which the discount will apply. Thus, you will need to:

  1. Use the Checkout API to determine the discount and link it to a payment method (see our tutorial Set a discount using the Checkout API).

  2. Configure the layout for both CMS and IO stores, ensuring that the discount is displayed in the selected payment method on the product page (see details in the following section).

CMS

After you determine the discount at Checkout, you need to link the SKU to the payment method so that the discount appears on the product page. To do so, please follow the steps below:

  1. In the VTEX Admin, go to Storefront > Layout, or type Layout in the search bar at the top of the page.
  2. Click on the CMS folder and then on HTML Templates.
  3. Select the template of your product page.
  4. In the skuPrice property, add the paymentSystemId variable with the ID of the chosen payment method.

{"base64":"  ","img":{"width":890,"height":398,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":88660,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/integrations/price/configuring-a-discount-for-orders-prepaid-in-full_1.png"}}

  1. Click on Save Template in the upper right corner.

Your discount for orders prepaid in full is now active!

VTEX IO Store Framework

For stores developed on VTEX IO, this is a native feature available through the vtex.product-price component in the product-spot-price block. To configure it, please check our product documentation.

Configuring discounts for orders paid in full on Google Shopping

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Troubleshooting price divergence errors in marketplace orders
« Previous
Configuring discounts for orders paid in full on Google Shopping
Next »
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback