Multiple Characteristics not working

  • Posts: 4
  • Thank you received: 0
9 years 8 months ago #194714

-- url of the page with the problem -- : www.mavele-swimwear.com/collection/product/5-blossom-butterfly
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4

hi, i'm really struggling with characteristics - i need two sizes for a bikini website. Top XS,S,M,L and Bottom XS,S,M,L i'm adding characteristics for each with the variants - when i go into the product to add them it puts both into the same variant and creates a muliticolumn table.

I'm using the essential version.

The price or the product code isnt changing either when choosing them in the front end on the product page.

Ideally i'd the shopper to be able to purchase the whole bikini, just a top or just a bottom or if they really want to different top or different bottom.

If they dont order a top and just the bottom the price needs to have that amount deducted and vice versa.

Thanks.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #194730

Hi,

If you open your browser inspector/console ; you will see that you have a javascript error in your page.

Uncaught TypeError: undefined is not a function
For the code:
jQuery(document).ready(function (){
	jQuery('select').chosen({"disable_search_threshold":10,"allow_single_deselect":true,"placeholder_text_multiple":"Select some options","placeholder_text_single":"Select an option","no_results_text":"No results match"});
});
Due to that error, the rest of the javascript is not process, like the function "hikashopUpdateVariant" which is define just after the line where you have a JS error. So when you modify the dropdown, the code can't be processed.

Chosen is provided by Joomla itself so HikaShop should be able to use it because the lib is in Joomla itself.
The real error beside is in your template which does not load the javascript in the HTML head but which put all javascript inclusions in a special "scriptloader"
<script src="/media/zen/js/tools/scriptloader.min.js" type="text/javascript"></script>
<script type="text/javascript">loadScript('/media/system/js/mootools-core.js','',function(){loadScript('/media/system/js/mootools-more.js','',function(){loadScript('/media/system/js/core.js','',function(){loadScript('/media/system/js/modal.js','',function(){loadScript('//code.jquery.com/jquery-1.8.3.min.js','/media/zen/js/jquery/jquery-1.8.2.min.js',function(){loadScript('/media/zen/js/jquery/jquery-noconflict.js','',function(){loadScript('/plugins/system/twbootstrap/js/jquery/jquery-migrate.min.js','',function(){loadScript('/media/com_hikashop/js/hikashop.js?v=240','',function(){loadScript('//html5shiv.googlecode.com/svn/trunk/html5.js','',function(){loadScript('/templates/14mavelemain01b/script.js','',function(){loadScript('/templates/14mavelemain01b/script.responsive.js','',function(){loadScript('/templates/14mavelemain01b/modules.js','',function(){loadScript('/plugins/system/twbootstrap/js/bootstrap.min.js','',function(){jQuery.noConflict();
The idea could be interesting but it looks like it forget to include the chosen library in his process, so when HikaShop (or another plugin/extension) as for chosen
JHtml::_('formbehavior.chosen', 'select');
the script for the initilization is added by Joomla but the javascript file is not added.

You can see to deactivate the option "Use Chosen library" in your HikaShop configuration but if something else is trying to include chosen, you will have some issues again.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum