Actions17
- Customer Actions
- Order Actions
- Shipping Actions
- Payment Actions
- Cart Actions
Overview
This node interacts with the OpenCart API to manage shopping cart operations, specifically adding a product to the cart. It allows users to specify the product ID, quantity, and product options in JSON format. This is useful for automating e-commerce workflows where products need to be programmatically added to a customer's cart, such as in custom checkout processes or inventory management systems.
Use Case Examples
- Adding a product with specific options and quantity to a user's shopping cart in an OpenCart store.
- Automating cart updates based on user selections in a custom front-end application.
Properties
| Name | Meaning |
|---|---|
| Product ID | ID of the product to add to the cart. |
| Quantity | Quantity of the product to add to the cart. |
| Options | Product options in JSON format to customize the product being added. |
Output
JSON
json- Response from OpenCart API after adding the product to the cart, containing details of the updated cart or operation result.
Dependencies
- Requires OpenCart API credentials including base URL, username, and password for authentication.
Troubleshooting
- Ensure the Product ID is valid and exists in the OpenCart store to avoid errors.
- Verify that the JSON format for product options is correct to prevent parsing errors.
- Check API credentials and network connectivity if requests fail.
- Common error messages include invalid JSON format for options or customer data, which require correcting the input JSON.
- Errors related to authentication indicate issues with the provided API credentials.
