Product variants or product category view problem

  • Posts: 2
  • Thank you received: 0
7 hours 6 minutes ago #370727

-- HikaShop version -- : 6.3.0
-- Joomla version -- : 5.4.3
-- PHP version -- : 8.3.30
-- Browser(s) name and version -- : Firefox 148.0

I’m pretty new to HikaShop.

I import products (Moodle-Courses via Joomdle) and some of these products/courses are pretty much the same with the exception of the dates. I would like to have these courses displayed on one page with checkboxes or radio buttons next to the different dates and one add-to-cart button.

The normal way, I think, would be to have a product and than create variants of it. But these products already exist. And I need the original imported products because they are linked to the courses in Moodle.
My first question is: Is it somehow possible to turn a product into a variant of another product?

I tried another way, created a category for these courses/products and have them displayed on one page in a category view. Now I have the dates (in the product names) on one page, but each one has it’s own add-to-cart button.
My second question: Is it possible to turn these add-to-cart buttons into checkboxes with only one add-to-cart-button beneath it?

It would be nice if somebody had a solution for one of the two problems so I could have the look I’d like.

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

  • Posts: 85232
  • Thank you received: 13912
  • MODERATOR
2 hours 8 minutes ago #370729

Hi,

I have a solution for both:
1. Instead of having variants, you can add these other products in the "options" setting of the main product:
www.hikashop.com/support/documentation/i...ct-form.html#options
Then, you can change the "Product selection method" setting to "checkbox":
www.hikashop.com/support/documentation/5...html#display_product
On the product page of that main product, you'll no have one checkbox for each option product.

2. If you set the "Add to cart on listings" setting to "global", you'll have one quantity input for each product of listings and a global add to cart button at the bottom of the products listings:
www.hikashop.com/support/documentation/5...html#display_product
Now, granted it's an input field, not a checkbox. To have a checkbox would require some code customization.

The following user(s) said Thank You: Gynta

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

  • Posts: 2
  • Thank you received: 0
1 hour 30 minutes ago #370733

nicolas wrote: 1. Instead of having variants, you can add these other products in the "options" setting of the main product:
www.hikashop.com/support/documentation/i...ct-form.html#options
Then, you can change the "Product selection method" setting to "checkbox":
www.hikashop.com/support/documentation/5...html#display_product
On the product page of that main product, you'll no have one checkbox for each option product.


Thank you for your quick answer. To use "options" I'll have to buy a commercial version of HikaShop, right? Does it matter which one?

Last edit: 1 hour 29 minutes ago by Gynta.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum