Substitute product in order
- jameswadsworth
-
Topic Author
- Offline
is there an easy way to substitute a product in an order in the back end? It is easy to delete an a product in the order, but clicking the plus button means I can add an product manually, but not easily access the products already in the shop.
Thanks,
Please Log in or Create an account to join the conversation.
You can also edit an existing product of an order. But as for when adding a new product to an order you won't be able to select another product from your store. You will have to enter the name/price change yourself.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
If you can add it on your end and send your modifications, you're more than welcome to do so
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
we have the products listing a pop-up window with the category explorer on the left. In your opinion what is the best way to get the selected product row data inserted in the product order list. Can we tap into the save function in the order controller or should we use a method similar to the select/add category for a product?
Thanks
Please Log in or Create an account to join the conversation.
You should add a new task addproduct in the order controller and add the information to the database directly there using the save function of the class order_product. You need to pass it an array of products object with all the necessary attributes:
product_id, order_id, order_product_quantity, order_product_name, order_product_code, order_product_price, order_product_tax
The atributes order_product_options and cart_product_id should be empty.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
For the product price, you need to do something like that:
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Then, you could have a new order button which would just create an empty order and you would be able to fill all the data for the order from the order edition screen as it is now.
Please Log in or Create an account to join the conversation.