Pre-populating the shopping cart Using customised URL Parameters
Overview
Organisers can pre-populate a participant’s shopping cart by adding specific parameters to the event URL. When participants open this customised link, selected products or donation amounts are automatically added to their shopping cart, allowing them to proceed directly to checkout.
Step-by-Step Approach
1. Copy the Event Page URL
Navigate to the event website and copy the URL of the page where the shopping cart or product selection is available.
Example:
https://product.azavista.com/w/event/{event_id}/?page_id={page_id}
2. Identify the Product or Donation IDs
Locate the ID of the product or donation item that you want to pre-populate in the shopping cart.
- Product format: product_[ID]
- Donation format: donation_[ID]
Example:
- Product ID → product_123
- Donation ID → donation_789
3. Define the Quantity or Amount
Specify the quantity for products or the amount for donations by assigning a value to the parameter.
Examples:
- product_123=2 → Adds 2 units of Product 123
- product_456=1 → Adds 1 unit of Product 456
- donation_789=20 → Sets the donation amount to 20
4. Append Parameters to the URL
Add the parameters to the event URL using the & symbol.
Example URL:
https://product.azavista.com/w/event/6864d90dfa15e12f9fd16f3e/?page_id=6864d90dfa15e12f9fd16fa1&product_123=2&product_456=1&donation_789=20
5. Share the Customised URL with Participants
Send the generated link to participants via email, website, or campaign messages. When participants open the link, the specified products and donation amounts will already be added to their shopping cart.
Result
When the participant opens the URL:
- 2 units of Product 123 are added to the shopping cart
- 1 unit of Product 456 is added to the shopping cart
- Donation 789 is set to 20