Display different characteristics selection method

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333082

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26

Hello,

We have a problem with the characteristics.
In the configuration we have set the characteristics to "Checkbox" and in the characteristics self to "Dropdown".... but all the characteristics will display as Checkboxes in the frontend. So only what we select in the configuration will be shown and the settings in the characteristics it self do nothing?! How can we fix this?? See attachments...

Regards,
Michiel

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333086

Hi,

The "product selection method" setting is for "options", not "characteristics".
I suppose that the characteristic of your screenshot is added to the product that you're using as option of your main product on that page.
But that setting will only be used if you access the product page of that product directly linked to the characteristic.
When a product is used as an option, it's only the "product selection method" setting which is taken into account.
Note that if you set that setting to "on a per product basis", then you'll see that same setting for each product when you edit it in the backend. It will be near the bottom of the page. That way, when the products are used as options, it will be that setting which will be taken into account.

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333118

Hi Nicolas,

I know, The "product selection method" setting is for "options", not "characteristics". But how can we override the opions so that they also can be shown in select list or radio buttons or checkbox. See screenshot.
Do i have to alter this part of the product/option.php?

	$selectionMethod = $this->config->get('product_selection_method', 'generic');
	if($selectionMethod == 'per_product' && !empty($optionInfo->product_option_method)) {
		$selectionMethod = $optionInfo->product_option_method;
	}
	if(!in_array($selectionMethod, array('generic', 'radio', 'check')))
		$selectionMethod = 'generic';
	$map = 'hikashop_product_option[]';
	if($selectionMethod == 'radio')
		$map = 'hikashop_product_option['.$i.']';

	if(empty($optionElement->variants)) {

Hope you can help.

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333120

Hi,

You don't have to change any code. I actually already told you how:

if you set that setting to "on a per product basis", then you'll see that same setting for each product when you edit it in the backend. It will be near the bottom of the page. That way, when the products are used as options, it will be that setting which will be taken into account.

Do that and you'll be able to set different display mode (checkbox, radio, dropdown) for different option product.

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333139

Hi,

We did do what you are saying but we have 2 products which must be shown as free products with selectlist. If set these as variants to the product we get a lot variant and if the vendor (hikamarket) needs to change the price in front end, then he has to go through a lot of variants to edit??
Did what you said but as you can see in the screenshots with the settings but no radio button appear.

Attachments:

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333141

Hi,

No, you didn't do what I said.
I said that once you changed the "product selection method" setting to "on a per product basis" in the HikaShop configuration, you need to configure that same setting at the bottom of the product edit page of each option product. I didn't talk about the "characteristic selection method" setting you have in your characteristics, which has nothing to do with "options".
I'm talking about that third setting, in the "Display" section of the product edit form :
i.imgur.com/mhUCvIb.png

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333166

Hi Nicolas,

Please see screenshot. The third setting you are talking about is one i can not find ?

Attachments:

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333169

This option isn't also on your demo site... so where to find this? ;)

Attachments:

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333170

I'm sorry.... just found the right setting. Only the related products won't show....

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

  • Posts: 83403
  • Thank you received: 13497
  • MODERATOR
3 years 9 months ago #333180

Hi,

If the related products don't show, there are two things to check:
- In the HikaShop configuration, you'll find a setting called "Modules under the product page". That setting should have by default a "related products" named module selected in it. If that's not the case, then maybe the module has been unselected from that option, or the module has been removed.
- In the Joomla modules manager, you need to check the settings of the "related products" module which is selected in that "Modules under the product page" setting. If the module is not there, then you can create it with the "new" button of the modules manager and using the "HikaShop content module" as basis, and in that case, you'll have to reconfigure it to display the related products. You need to check that the module is configured to display all the products of the shop, but with the "synchronize" setting activated and the "relation" setting set to "related products" so that it will filter out the products not related to the current product page.
If you're lost in all the settings there, please provide a screenshot of them and we can tell you what you're missing.

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

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
3 years 9 months ago #333325

We have found a solution for our problem. So thanks for the support again!

Regards,
Michiel

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

Time to create page: 0.109 seconds
Powered by Kunena Forum