Docs

Hosted Pages Articles & FAQ

Addon, checkout, Page, quantity, restriction

461783

2019-10-14T13:39:29Z

2024-04-30T05:26:27Z

1775

0

3

242123

How do I control the Quantity increments on the Checkout page?

How do I control the Quantity increments on the Checkout page? 

This article also covers
How do I limit quantities displayed on the Checkout page?

Can I make sure the quantity is set in specific multiples?

Solution

You can control how customers increase or decrease the quantity of a Plan or Addon on the checkout page, by either setting a minimum/Maximum value of setting increments in ranges like 10, 20,30…… so on.

Please follow the steps below to modify the quantity of the dropdown box on the checkout page.

1) Enable “Customize plan/addon quantity based on meta configuration” in your Chargebee site.

To do this, navigate to Settings » Configure Chargebee » Checkout and Self Serve portal » Advanced settings » enable the option to “Customize plan/addon quantity based on meta configuration”

2) Using JSON, you can modify the plan/addon level metadata. This will then get reflected on the plan specific checkout page.

Based on your requirement, modify the JSON below.

To setup quantity based increments, you can define the step, min qty, max qty.

{

“quantity_meta”: {

**"type": "range",**

**"min": 10,**

**"max": 100,**

**"step": 10** 

}

}

To show specific quantity on the checkout page, you can define it in an array of values.

{

“quantity_meta”: {

"type": "fixed",

"values": [5, 6, 7, 8, 9, 10]

}

}

3) Add the JSON metadata to the plan/addon configuration.

Navigate to the specific plan/addon, and in the plan details page, you'll find the option to add metadata.

Add the metadata here, and you'll see the changes reflected on the Checkout page.

Here's a video tutorial simulating a simple per-unit price use-case.

Refer here, to know more about customizing your plan/addon metadata.

If you have any further questions, please reach out to support@chargebee.com.

Related Articles 

“Subscription[Start_Date] should not be passed for cancelled subscription” error while importing subscriptions via Bulk operation.
How to customise the Consent management settings in Chargebee’s hosted page
Error: Session Expired
Chargebee's site name was renamed but why does this still show a different name?
[API Users] How to generate hosted page URL and embed via iFrame
How to edit the fields that appear on the hosted customer portal? Will it appear only in English?
Can I group plans and display them in the customer portal?
How to import a Google font which has two words in the name?
How to set a landing page URL for the logo added to the theme?
Why is the checkout page not loading?
How to collect the coupon codes during signup on the V2 checkout pages?
Checkout V3 - FAQ
How can I collect the coupon codes on the V3 checkout pages during signup?
Content security policy for the Checkout page
Redirect URL not working
Checkout page returns with exclamation marks when my customer tries to add his card details. What should I do?
Is it possible to change the order in which the payment methods are displayed in checkout?
“Wrong format” error while passing email id in checkout
How to make the billing address mandatory in the self-serve portal when my customer reactivates his subscription?
Google Analytics: track_info_error on Checkout V3
Can I let my customers set the Auto collection status at the self-serve portal?
How to hide the discount prompt from displaying?
How can my customers set a password for their self serve portal?
How to add shipping address?
Allow customers to add addons on Self serve portal
How to navigate to the specific step in the Portal popup using JS/PHP?
Where do I add my domain for the allow-list?
Was this article helpful?
Loading…