is it possible to have options and quantity box...

  • Posts: 102
  • Thank you received: 0
13 years 3 months ago #22763

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

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #22765

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...

Last edit: 13 years 2 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 38
  • Thank you received: 0
13 years 2 months ago #25846

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...


COBIZ webdevelopment | www.cobiz.nl

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25862

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.073 seconds
Powered by Kunena Forum