Actions17
- Customer Actions
- Order Actions
- Shipping Actions
- Payment Actions
- Cart Actions
Overview
This node operation allows editing a product in an OpenCart shopping cart. It is useful for scenarios where you need to update the quantity or options of a product already added to a cart, such as adjusting an order before checkout or modifying cart contents programmatically.
Use Case Examples
- Updating the quantity of a product in a user's cart based on user input.
- Changing product options (like size or color) for a product already in the cart during a session.
Properties
| Name | Meaning |
|---|---|
| Product ID | ID of the product to manage in the cart. |
| Quantity | Quantity of the product to set in the cart. |
| Cart Key | Cart key used to identify the specific product entry in the cart for editing. |
| Options | Product options in JSON format to specify variations or customizations for the product. |
Output
JSON
json- Response data from the OpenCart API after editing the product in the cart.
Dependencies
- OpenCart API credentials including base URL, username, and password.
Troubleshooting
- Invalid JSON format in the 'Options' property can cause errors; ensure valid JSON is provided.
- If the 'Cart Key' is incorrect or missing for edit operations, the API may fail to identify the product to update.
- API authentication errors may occur if credentials are incorrect or missing; verify API credentials are properly configured.
Links
- OpenCart API Documentation - Official documentation for OpenCart API endpoints and usage.
