I have a database of collectibles, which is visible on my website using wpDataTables. Can you please give me some recommendations as to how I might code the functionality of a 'wishlist' for visitors to the site?
Since the visitor has to be logged in, there must be a way for them to select lines from the SQL tables the plugin has generated and display them as a wishlist.
We do not have that functionality built in as you already know. Do you have any example of feature that you are trying to implement?
Please be aware that this is not standard functionality of our plugin so creating it will probably be out of scope of this support. I will point you in the right direction if I could, but it will most likely require code customization.
I am thinking of something similar to the Amazon wishlist functionality for books and DVDs etc.
The wpDataTables table would include a column of checkboxes as well as the regular data, and the logged in user could select any number of these checkboxes and then click an 'add to wishlist' button - this action would save the relevant line numbers or SQL table line ids for the chosen checkboxes to a file. By clicking on a 'show my wishlist' button wpDataTables would use this file to build a table just showing the selected lines from the main table. The user could sort and filter this as normal and deselect any lines using the checkboxes.
I am willing to try code customisation. The tricky bit is understanding how the interfacing with wpDataTables might work. I am not sure how the checkboxes - or similar - might be included in the table, how the table line ids might be recorded and how the selected lines might be rebuild into a new table.
We are using Datatables jQuery plugin for frontend so best way for you is to start there. They have examples on how to add column with checkboxes in their forum and also built in methods which you can use to retrieve row ids.
If you have problem to implement this, we can offer you to hire one of our developer to help you. if you are interested in that option please send me an email to address from my signature and we will proceed there
I have a database of collectibles, which is visible on my website using wpDataTables. Can you please give me some recommendations as to how I might code the functionality of a 'wishlist' for visitors to the site?
Since the visitor has to be logged in, there must be a way for them to select lines from the SQL tables the plugin has generated and display them as a wishlist.
Thanks for any help or suggestions.
John
Hi John,
We do not have that functionality built in as you already know. Do you have any example of feature that you are trying to implement?
Please be aware that this is not standard functionality of our plugin so creating it will probably be out of scope of this support. I will point you in the right direction if I could, but it will most likely require code customization.
Hello Miljko,
I am thinking of something similar to the Amazon wishlist functionality for books and DVDs etc.
The wpDataTables table would include a column of checkboxes as well as the regular data, and the logged in user could select any number of these checkboxes and then click an 'add to wishlist' button - this action would save the relevant line numbers or SQL table line ids for the chosen checkboxes to a file. By clicking on a 'show my wishlist' button wpDataTables would use this file to build a table just showing the selected lines from the main table. The user could sort and filter this as normal and deselect any lines using the checkboxes.
I am willing to try code customisation. The tricky bit is understanding how the interfacing with wpDataTables might work. I am not sure how the checkboxes - or similar - might be included in the table, how the table line ids might be recorded and how the selected lines might be rebuild into a new table.
Thanks for your help.
John
Hi John,
We are using Datatables jQuery plugin for frontend so best way for you is to start there. They have examples on how to add column with checkboxes in their forum and also built in methods which you can use to retrieve row ids.
If you have problem to implement this, we can offer you to hire one of our developer to help you. if you are interested in that option please send me an email to address from my signature and we will proceed there