I would like to add a preview of the current wishlist below shopping cart in /index.php?route=checkout/cart
From there, customers can remove the item or add to cart then checkout immediately.
This should be positioned below the checkout button. I am using 3.0.3.2 Default theme.
Any ideas?
Thank you.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Call the wishlist module controller in the cart controller, pass it to the cart view and display it there.
Not too difficult, mostly stripping of what is not needed.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
letxobnav wrote: ↑Fri Jul 31, 2020 1:45 pmjust make copies of the wishlist controller and view, adapt them both to function as modules and not whole page controller and view.
Call the wishlist module controller in the cart controller, pass it to the cart view and display it there.
Not too difficult, mostly stripping of what is not needed.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
nightwing wrote: ↑Fri Jul 31, 2020 8:50 pmHey letxobnav, thanks, I knew can be done that way, thanks for the reassurance, I will try to create an ocmod and share on my store when I am done.
letxobnav wrote: ↑Fri Jul 31, 2020 1:45 pmjust make copies of the wishlist controller and view, adapt them both to function as modules and not whole page controller and view.
Call the wishlist module controller in the cart controller, pass it to the cart view and display it there.
Not too difficult, mostly stripping of what is not needed.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
The weird thing about default OC is that you can add to the wishlist as a guest but you have to register or sign in to view/manage it, why? no idea.
So I use a cookie as well as the customer database, meaning it is saved in a cookie for guests and also in the table for signed in customers.
you can checkout how that looks on our site, just add some products to the wishlist 7 cart and visit the cart page.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
letxobnav wrote: ↑Fri Jul 31, 2020 10:12 pmWell, I changed wishlist so that you need not be signed in to manage it.
The weird thing about default OC is that you can add to the wishlist as a guest but you have to register or sign in to view/manage it, why? no idea.
So I use a cookie as well as the customer database, meaning it is saved in a cookie for guests and also in the table for signed in customers.
you can checkout how that looks on our site, just add some products to the wishlist 7 cart and visit the cart page.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Not sure its worth all the effort unless this is a mandatory feature, probably a lot of duplicate code to handle guests.
For logged in customers its simple as you could just pull the $this->model_account_wishlist->getWishlist(); as shown in the wishlist controller.
letxobnav cookie suggestion may work well and probably a better overall solution, but you would still have to re-work the wishlist controller and other aspects for that logic.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
yes, I have, I do store the wishlists in the DB for both customers and guests the moment they add a product but only for analysis purposes, i.e. to be able to see which products people put in their wishlists, not for online processing.cookie suggestion may work well and probably a better overall solution, but you would still have to re-work the wishlist controller and other aspects for that logic.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
letxobnav wrote: ↑Sat Aug 01, 2020 3:08 pmyes, I have, I do store the wishlists in the DB for both customers and guests the moment they add a product but only for analysis purposes, i.e. to be able to see which products people put in their wishlists, not for online processing.cookie suggestion may work well and probably a better overall solution, but you would still have to re-work the wishlist controller and other aspects for that logic.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Users browsing this forum: No registered users and 329 guests