- Posts: 102
- Thank you received: 0
is it possible to have options and quantity box...
- MinnieMouse
-
Topic Author
- Offline
Less
More
15 years 1 month ago #22763
by MinnieMouse
is it possible to have options and quantity box... was created by MinnieMouse
Hi my products dont really need full product pages. i am displying them with the show img and desc template in a list right now. i would like to add a quantity box and options to this as well so that people can order off the list page and not have to click to a second product show page. is this possible?
could i replace all the content but the loop in the listing_img_desc template with all the content from the product show template?
thanks Liz
could i replace all the content but the loop in the listing_img_desc template with all the content from the product show template?
thanks Liz
Please Log in or Create an account to join the conversation.
15 years 1 month ago - 15 years 1 week ago #22765
by nicolas
Replied by nicolas on topic Re: is it possible to have options and quantity box...
Hi,
Everything is possible if you can code it.
Adding the add to cart button on the listing is easy, you just need to turn on the corresponding option in your menu/module's hikashop options.
However, the options are not loaded on listings for efficiency reasons so even if you were to copy the code from the show file, it wouldn't work as you wouldn't have the corresponding data loaded for each product of the listing. You could always load the necessary data yourself, but that's not just a few lines of code...
Everything is possible if you can code it.
Adding the add to cart button on the listing is easy, you just need to turn on the corresponding option in your menu/module's hikashop options.
However, the options are not loaded on listings for efficiency reasons so even if you were to copy the code from the show file, it wouldn't work as you wouldn't have the corresponding data loaded for each product of the listing. You could always load the necessary data yourself, but that's not just a few lines of code...
Last edit: 15 years 1 week ago by nicolas.
Please Log in or Create an account to join the conversation.
15 years 1 week ago #25846
by goslingcools
COBIZ webdevelopment | www.cobiz.nl
Replied by goslingcools on topic Re: is it possible to have options and quantity box...
Do you think that adding the characteristics instead of the options is more easy to manage in the code?
I guess the query must be altered in view.html.php, right? And ofcourse the view...
I guess the query must be altered in view.html.php, right? And ofcourse the view...
COBIZ webdevelopment | www.cobiz.nl
Please Log in or Create an account to join the conversation.
15 years 1 week ago #25862
by nicolas
Replied by nicolas on topic Re: is it possible to have options and quantity box...
The difficulty is roughly the same. You indeed need to load all the data in the view.html.php and then display it in the view files.
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds