Products with two characteristics only display one and no price is displayed

  • Posts: 33
  • Thank you received: 0
4 years 20 hours ago #326364

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3.24
-- Browser(s) name and version -- : Vivaldi
-- Error-message(debug-mod must be tuned on) -- : none

My customer has reported that the product characteristics page is only displaying a single characteristic when there should be two and the price is not displaying either. If a product only has one characteristic, then the display is correct.
I've installed previous backups of the site on another server and I have to go right back to February 2020 (Hikashop 4.2.2) to find one that is correct.
I've attached screenprints of the live website and of the test website, showing the same product with characteristics.
Do you have any suggestions? Could it be the result of an update? Labco is the live site and Llowes is the test site.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 15 hours ago #326369

Hi,

That's a new feature of the characteristics selection system. It's controlled by the option "Characteristics dynamic display" in the HikaShop configuration. If you prefer to see by default the characteristics selected, you can turn off that option.

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

  • Posts: 33
  • Thank you received: 0
4 years 15 hours ago #326384

That's it - problem solved. I must make an effort to read the release notes!

Thank you for your prompt reply.

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

  • Posts: 84
  • Thank you received: 2
3 years 11 months ago #326649

Hi Nicolas,
just updated to hikashop 4.4.0 and hikamarket to 3.1.1
this new feature "Characteristics dynamic display" is very nice.
But in hikamarket I found issue, when this function is ON:

example: Product have 2 characteristics default values  / 4 variants. when I open product page on front end I see 2 dropdowns for each characteristic -> the first characteristic show set default value, but the second characteristics dropdown do not show default value, here I see "please make a choice", and only when I press on dropdown I see that I can choose the default value. and only when I pick value I see the price and add to cart /wishlist buttons. In this scenario even the NOTIFICATION: ADD_TO_CART_AVAILABLE_AFTER_CHARACTERISTIC_SELECTION do not appear, as one characteristic show default value, when open product page.
 I tested more --> added a third characteristic to this product . But when open product in front end I see only two characteristics dropdown as earlier. The third characteristic dropdown appears after the second characteristic is picked.  



P.S. It would be nice if "Characteristics dynamic display" ON, would show the MAIN DEFAULT set price when open product (which is shown in category product list), + notification (as it is done). This feature could be activated only for mobile?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #326713

Hi,

I'm not sure what you mean. I wanted to check on the URL you provided but it looks like you turned back off that setting.
Here is how it should work with that setting activated:
The system will only display the first characteristic dropdown with by default the value "please select" selected.
When you choose something else, the second characteristic dropdown will appear, with by default the "value "please select" selected, etc.
And if there is only one value selectable, then the system will auto select it and display the next characteristic dropdown.

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

  • Posts: 84
  • Thank you received: 2
3 years 11 months ago #326771

Hi, Nicolas,
yes you are right , I was turned it off. Now I made video, that you could see, where is the issue
Video is made on site version which have hikashop and hikamarket and have this issue.
In do have one more site where is only hikashop and there is all as you wrote "how it should be".


Translation: prasome pasirinkti = please select

Last edit: 1 year 1 week ago by SEKME.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #326785

Hi,

Well, your video doesn't show a problem.
Supposing that there is only one value in the "Medziaga" dropdown, and that this value is "Silkas", the system will automatically preselect it and display the second dropdown with the "please select" selected by default.
So to me what you're showing in your video is conform to what I describe in my previous message.
So I'm afraid I can't say much as I still don't understand what is your problem.

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

  • Posts: 84
  • Thank you received: 2
3 years 11 months ago #326791

Nicolas, your quest is right .. in first characteristics there is only one value... and now I do understand why I get these results shown in video. And this a cause, that the buyer do not see the notification with explanation: ADD_TO_CART_AVAILABLE_AFTER_CHARACTERISTIC_SELECTION . Is it possible to have notification shown until all characteristics will be chosen?
When I change the characteristics positions and put in first place the one which have at least two values all become as it should be, but for hikamarket vendors it could be tricky to use.

Thank you.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #326846

Hi,

Ok, so if I'm following you, the issue is actually this:
When the first characteristic only has one possible value and that the system auto select it, the second characteristic is displayed but the message "The add to cart button will appear once you select the values above" doesn't appear, while if you have several values in the first characteristic, then this message is displayed.
I actually tried to reproduce the problem on my end but when I have a product with only one possible value in the first characteristic, the message is still properly displayed until I select something in the second characteristic:
monosnap.com/file/rGYoAe4qZpgyOe1uXUfUI8pbuZ7qP5
Can you confirm that we're talking about the same thing ?
And if so, could you provide a backend access as well as a link to a product page with the issue when the "dynamic" setting is activated so that I could activate the option for a bit will checking on the situation ?
Or maybe you could put up a copy of your website with that option activated so that I could easily check on the issue on the copy of the website ?
If so, please provide the necessary details via our contact form along with a link to this thread for reference :
www.hikashop.com/support/contact-us.html

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

  • Posts: 84
  • Thank you received: 2
3 years 11 months ago #326943

Nicolas, I confirm that we're talking about the same thing. And I found that the issue appear because of custom chages are made in ' product_show _default.php'. I restore defaulf file and the notification appear.

Can you give me help hand and write which part of code in product_show _default.php is about this notification.
thank you.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 11 months ago #326972

Hi,

Ah ok. I suppose it's this part which must be different in your view override:

	if(empty($this->element->characteristics) || $this->params->get('characteristic_display') != 'list') {
?>
		<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"><?php
			// LAYOUT quantity
			$this->row =& $this->element;
			$this->ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . (int)$this->element->product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }';
			$this->setLayout('quantity');
			echo $this->loadTemplate();
		?></div>
		<div id="hikashop_product_quantity_alt" class="hikashop_product_quantity_main_alt" style="display:none;">
			<?php echo JText::_('ADD_TO_CART_AVAILABLE_AFTER_CHARACTERISTIC_SELECTION'); ?>
		</div>
<?php
	}

The following user(s) said Thank You: SEKME

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

Time to create page: 0.087 seconds
Powered by Kunena Forum