Hide Options in Hikacart Module

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 6 months ago #344011

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 3.10.11
-- PHP version -- : 8.0.20
-- Browser(s) name and version -- : firefox

Hello,

I am using the Hikashop cart design plugin to display the cart on my site.
I have the Group Options With Product set to yes.
I want them to be shown grouped in the cart but not in the cart module.
Is there a way to hide the options in the Hikashop cart module/ cart design plugin?

Thank You.

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

  • Posts: 4785
  • Thank you received: 650
  • MODERATOR
2 years 6 months ago #344024

Hello,

In order to be efficient in our suggestion you must allow us to see the context, so can you provide these elements :
- Frontend end user references (allowing us to skip the "work in progress" page)
- Url link to the context

Awaiting your elements to be specific in our help.
Regards

Last edit: 2 years 6 months ago by Philip.

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

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 6 months ago #344037

Hello,

Here are the requested items:

This message contains confidential information


Thank You

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

  • Posts: 83338
  • Thank you received: 13477
  • MODERATOR
2 years 6 months ago #344040

Hi,

In the file plugins/hikashop/cart_design/cart_design_view.php you can change the line:
$group = (int)$view->config->get('group_options', 0);
to:
$group = 0;
and it will do it for the cart module only with the cart design plugin installed and enabled.

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

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 6 months ago #344053

Hi Nicolas,

I tried as you suggested but that only ungroups the options.
Each option still shows as an individual item in the cart.
It also counts each option as a separate product in the qty field.
I want to hide all options from showing in the cart.

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

  • Posts: 51
  • Thank you received: 3
  • Hikashop Business
2 years 6 months ago #344056

Ok, I figured it out.

I changed/commented out the line:
$html .= '<p class="hikashop_cart_option_name">'. $text . '</p>';
to
//$html .= '<p class="hikashop_cart_option_name">'. $text . '</p>';

This removed the options from the display cart module.

Thank you for helping me track this down.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.051 seconds
Powered by Kunena Forum