Quantity Addon
Product naming rule
Make sure all your products from the category have the same naming rule. The quantity addon will only work if the product name follows the pattern.
š«
Make sure your product names follow this pattern:
Key Example x1
or
Key Example 1x
How to enable the quantity addon
To enable the quantity addon, you need to go in config.twig and add a category id here.
You get the category id from the category page in the tebex panel, is a number in the url.
For example, if the url is https://creator.tebex.io/category/1234567 (opens in a new tab), the category id is 1234567.
3 types of quantity addon available
- x - The quantity will be displayed after the product name. Example: Key Example x1, Key Example x2
category_1: {
id: "123456",
type: "x",
filters: [""]
},
- numeric - The quantity will be displayed before the product name. Example: 5000 Coins, 4000 Coins
category_2: {
id: "123456",
type: "numeric",
filters: [""]
},
- filter - Only the products named in the filters will have the quantity displayed. Example: 5000 Coins, 4000 Coins, 1000 Gems, 2000 Gems
category_3: {
id: "123456",
type: "filter",
filters: ["Coins", "Gems"]
},