How to display bundles products

  • Posts: 135
  • Thank you received: 5
2 years 8 months ago #339951

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.3.27
-- Browser(s) name and version -- : Brave Version 1.20.110 Chromium: 88.0.4324.192 (Official Build) (64-bit)

Hi,
I am trying to bundle multiple products. So if they order part A, then part B comes with it in the same colour.

How do I get to display this in the cart as it only displayed Part A when ordered.

Regards,
MSF

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
2 years 8 months ago #339958

Hello,

In your product backend, specification part, and setting bundled products and have a look on my screenshot :



The products selection allow you to select your product variants (you can see the name & the id), in order to be more easy, you can define each variant name with color version, like on my screenshot.

To learn more about variants configuration, you can have a look on this documentation .

Hope this will allow you to set your products as required.
Regards

Last edit: 2 years 8 months ago by Philip.
The following user(s) said Thank You: markfell

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

  • Posts: 135
  • Thank you received: 5
2 years 8 months ago #339973

Phillipe,

Thank you, I have the the bundled product.
So if End-Cap-50A is selected then the End-Cap-50B is the bundled product.

See my attached, do I need to make this an option?

Regards,
MSF

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 8 months ago #339985

Hi,

The system won't display the bundled products in the cart.
The goal is only to change the stock of the bundled products after the purchase.
If you want to have it displayed in the cart, then you would have to make it an option, yes.

The following user(s) said Thank You: markfell

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

  • Posts: 135
  • Thank you received: 5
2 years 8 months ago #339988

Thanks Nicolas,

So is there a way, to show the option without the "yes/no" and default it to the "yes" option?

Regards,
MSF

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 8 months ago #340000

Hi,

You can edit the file product / option.php via the menu Display>Views and remove this code:

if($selectionMethod != 'check')
			$option_values[] = JHTML::_('select.option', 0, JText::_('HIKASHOP_NO'));
That way, you'll only have the yes choice and it will be automatically selected.
And if you want to hide the dropdown, you could do so with CSS.
For example:
.hikashop_product_options_table select { display:none; }

The following user(s) said Thank You: markfell

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

  • Posts: 135
  • Thank you received: 5
2 years 8 months ago #340009

Nicolas,

Thank you worked a charm.
You know your code knowledge is next to none.

Regards,
MSF

The following user(s) said Thank You: nicolas

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

Time to create page: 0.073 seconds
Powered by Kunena Forum