Select product option in Product List?

  • Posts: 43
  • Thank you received: 0
11 years 5 months ago #106412

Hi,

How can I set it up so that a user can select a product option (characteristic) from the product list? I would like them to be able to select the color from a dropdown, the quantity as a drop-down (already implemented), and then click "add to cart" from a list of products without having to go to the product page.

Currently, with the one product I have a characteristic setup on, in a Product Listing, the "Add to cart" button disappears (otherwise it appears to the right of the quantity drop-down), and a "Choose options" button appears to the left of the quantity drop-down.

This is as it currently appears:



You can see the page at: www.bayousome.info/index.php/hikashop-me...ry/36-misc.-supplies

Thanks!


Sloan Thrasher
Attachments:

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

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #106431

Hi there,

According to what I see on your website, it think you solved your problem.
Is it so?

The following user(s) said Thank You: sloanthrasher

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

  • Posts: 43
  • Thank you received: 0
11 years 5 months ago #106434

I was hoping there was something in the configuration to change. Instead, I wrote code and added a view. I'd rather it be a config setting if there is one.


Sloan Thrasher

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

  • Posts: 43
  • Thank you received: 0
11 years 5 months ago #106435

Also, my solution isn't working correctly yet. I still have to incorporate the JavaScript to update the cart correctly, adding the characteristic name and finding the correct cart item.


Sloan Thrasher

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #106468

This feature isn't available for the moment, but we already added it in our todo list :).

Last edit: 11 years 5 months ago by Mohamed Thelji.
The following user(s) said Thank You: sloanthrasher

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

  • Posts: 43
  • Thank you received: 0
11 years 5 months ago #106699

Glad to hear it's on the To Do list.

For now, if I modify the Javascript called by the Add To Cart button so that if there is an Option drop-down it gets the product ID from the drop-down, and I populate the drop-down values with the product IDs of the variant products, with that work properly?

IOW, if product ID 15 has variants 16, 17, 18 for Red, Green and Blue and I pass ID 16 when the Add To Cart button is clicked instead of 15, will that add the Red version of the product to the cart?

Thanks!


Sloan Thrasher

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

  • Posts: 43
  • Thank you received: 0
11 years 5 months ago #106717

Never mind. My guess was correct. I've got it working now! Thanks for the info and help!


Sloan Thrasher

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

Time to create page: 0.090 seconds
Powered by Kunena Forum