Listing products with a twist
Permalink 1 user found helpful
Hi eveyone,
I need to be able to create a page that will allow a user to add more products to the page, similar to the e-commerce addon. However, they must not be able to "buy" the products but only type information into a form and press calculate, which will then calculate the cost to rent said product based on the information provided.
What will be the best/easiest way to do this?
Sorry i am very new to c5 so please bare with me :)
Regards,
A
I need to be able to create a page that will allow a user to add more products to the page, similar to the e-commerce addon. However, they must not be able to "buy" the products but only type information into a form and press calculate, which will then calculate the cost to rent said product based on the information provided.
What will be the best/easiest way to do this?
Sorry i am very new to c5 so please bare with me :)
Regards,
A
Hi jbx,
Well the user with access to the dashboard will load the new products with an image and text description.
The end user will then navigate to the website, click on the product he wants and then the calculate box should pop up and prompt the end user for information.
make sense?
Well the user with access to the dashboard will load the new products with an image and text description.
The end user will then navigate to the website, click on the product he wants and then the calculate box should pop up and prompt the end user for information.
make sense?
Ahh, ok, so like a van rental for example, where you select the van you want to hire and then it asks when you are collecting it, where from, do you need an additional drive etc and that all combines to create the final price.
Yeah, that wont be too difficult if you know your way around C5 and php. You would need a single_page and controller in the dashboard to add and edit products and pricing rules which will be held in their own tables. Then you would need either another single page, or a nice ajaxy block, to display the products and contain the functionality required to pop up your further info form. A jQuery modal containing the form with some ajax to process the information and display the price would be nice :)
There's plenty of information in the developers guide on how to create single pages and use controllers and ajax.
Hope that helps...
Jon
Yeah, that wont be too difficult if you know your way around C5 and php. You would need a single_page and controller in the dashboard to add and edit products and pricing rules which will be held in their own tables. Then you would need either another single page, or a nice ajaxy block, to display the products and contain the functionality required to pop up your further info form. A jQuery modal containing the form with some ajax to process the information and display the price would be nice :)
There's plenty of information in the developers guide on how to create single pages and use controllers and ajax.
Hope that helps...
Jon
Thanks a mill Jon!
Will defo do some research wrt this.
Will defo do some research wrt this.
For reference - when I say the developers guide, I mean the Developers Guide underneath the Documentation link on this site...
Jon
Jon
If it's end users who need to be able to create these products, then you could use the external form block to create a simple form with a controller that will calculate the rental and add it to the db.
If you want to add a page to the dashboard, the you can create new pages under /single_pages/dashboard. Then, you can add your form to this page and add a controller to handle the result as before.
Does that make sense?
Jon