Configure WooCommerce Money Purchase
Add a new product and name it something generic for money in your location or game.
Add Sku and Limit
For money we will create a product and insert the SKU of 999999. We will override this in each of the variable products. Since each one of the money items requires a unique SKU, we will add a – to the end of the SKU with the amount we will provide them.
Add your Attributes
Clicking Add on the Product attribute will add the specific type to the product.
This will create a blank item, if you have already done the steps following, clicking inside the empty field will allow you to select the previously created items.
Click Add New to pop a dialogue modal to add a new Value for this Attribute or select a value from the existing list. The Currency Amount option was added when the plugin was initialized. If you removed it, then add an attribute to WooCommerce and update the value in the settings page.
Here we have typed 100 and and will click OK to add it to the Values of the Currency Amount. We can add as many items as we want to sell.
We have continued to add the values we want and clicked Save Attributes when we have completed the process. This will let us prepare the variations.
Now that we have completed these steps, we can begin to add the items that will fill out the purchasable menu selections. In this drop down from the Variations panel, select Create variations from all attributes.
You will be presented with a modal pop up indicating how many variations you created.
Once your create refreshes you will find a list of all the variations that were imported via this process.
Your default variation will be blank and require that you set some of these fields. If you fail to set these values properly, you will not deliver the right amount or item to the player.
Since there is no “amount” of items to purchase, you will need to have the players purchase 1000’s of gold items individually. The system will detect any SKU item that has a dash in it “-” and split the SKU into a SKU item and an amount. Since the SKU has to be unique between shop items, this allows you to set a value on the amount of items that will be delivered.
SKU is the most important part and needs to be set to the item number that the player will receive. Make sure that the item exists inside of the Atavism database. As long as this is the case, the item will be detected and sent to the user. Sending an item that does not exist may present an error when the player retrieves the item.
Give your item some value, even if it is a value of 0 in order for this to appear on the menu structure.