-- HikaShop version -- : 2.6.0 Business
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.12
-- Browser(s) name and version -- : FF 40.0.2
-- Error-message(debug-mod must be tuned on) -- : N.A
HI Hiakshop crew !!
Ok,so I have many different variants.ie:Colors, sizes,patterns, etc...
What I attempting to do is add a link right after the variant selectbox. And that link is in the module and when clicked opens custom modal. So , in other words the link and modal is all contained in the module I'm trying to load conditionally.
So I need to editing/customize the products/show_block_characteristics
All I want to do is get the variants field label value (ie.: Colors.Sizes,etc) and using a switch statement load the corresponding module after the selectbox .
I included a screenshot, as it will will be obvious to see what I'm trying to do.
I was thinking of just adding a switch statement to load the corresponding module.
Example only - so variables might not be correct.
switch ($variants_name) {
case 'Colors':
echo JHTML::_('content.prepare','{loadposition colorchart}');
break;
case 'Sizes':
echo JHTML::_('content.prepare','{loadposition sizechart}');
break;
default:
break;
The only catch is I'm not exactly sure where I should add this code?
N.b: The module I load is the link to the chart and the custom modal (all in one).
Mind you,I did get it to work when I placed similar code into the show_block_custom_main.php, but that isn't where I want to place it.
Any ideas?