I have a template.php that contains the header, footer and main content.
However, in my template.php, I would like to add a shopping cart widget that uses the shopping cart class, the form class, and obviously the session class.
I want the widget to be in the form of a form in front of the cart, which collects simple data from the user (name, email address, some pop-ups and a checkbox) and sends these parameters to the session (stored in the database using CI_SESSIONS), which will be used application (accompanying products) (show products based on flag selection) and cart.
I want the logic to be processed through the widget without reloading the entire page (AJAX / JS?), And then use a session to store the basket data when the user views the application.
Can anyone recommend any reading material or library to lead me in the right direction to answer?
Hello,
source share