-1
I’m making a screen to show the discounts in opencart admin, by sub store, I can already save in a table for testing, the biggest problem is: How should be done properly in this case to be saved in BD?
- Need to show as table with delete option, in each row will have some data like, Store, applied percentage, start and end date and delete.
- The data comes from several tables.
For example: includes a discount on ten products for sub store "A" and on another 7 for sub store "B", originally, both discounts are saved in a single table, but I intend to create another table referencing which products is from which sub store, and show on screen and be able to delete all with one button.
Note: I do so, because the table with the data of the discounts does not have anything to refer to which discount and which sub store, everything gets mixed, and I did not want to touch this table, but create another.
Demo screen: In the red square is where the discounts will appear
I hope I was clear :)
Thank you for your reply. I thought the following thing, create a table (oc3_product_special_discounts), why I will have to show the percentage of the discount on the addition screen, this data is not stored in any table. understands?
– Marcello Infoweb