[Skip to main content](#vessel-content)

#   Akeebasubs-Hikashop plugin &amp; variants

##

- **[cpreen](/forum/user/604-cpreen "View cpreen's Profile")**
- [![cpreen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/604-cpreen "View cpreen's Profile") Topic Author
- [ Offline](/forum/user/604-cpreen)

Less More

- Posts: 98
- Thank you received: 3
-
-

11 years 4 months ago [\#208006](#208006) by [cpreen](/forum/user/604-cpreen "View cpreen's Profile")  *[Akeebasubs-Hikashop plugin &amp; variants](/forum/30-integrations/878082-akeebasubs-hikashop-plugin-variants#208006 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  From what I see, I can only assign an Akeebasubs subscription level to a main product and not to variants. Is this Works As Designed, or has something fallen through the cracks?  Regards  Conrad")* was created by *[cpreen](/forum/user/604-cpreen "View cpreen's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

From what I see, I can only assign an Akeebasubs subscription level to a main product and not to variants. Is this Works As Designed, or has something fallen through the cracks?

Regards

Conrad

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzgwODItYWtlZWJhc3Vicy1oaWthc2hvcC1wbHVnaW4tdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 4 months ago [\#208015](#208015) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Akeebasubs-Hikashop plugin &amp; variants](/forum/30-integrations/878082-akeebasubs-hikashop-plugin-variants#208015 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  From what I see, I can only assign an Akeebasubs subscription level to a main product and not to variants. Is this Works As Designed, or has something fallen through the cracks?  Regards  Conrad")*

That's because of the new edition interface of HikaShop 2.5.0. We'll have to adapt the plugin for that asap.
In the mean time, add &amp;legacy=1 to the URL when editing a product and you'll be able to access the old interface where this should work.

The following user(s) said Thank You: [cpreen](/forum/user/604-cpreen "View cpreen's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzgwODItYWtlZWJhc3Vicy1oaWthc2hvcC1wbHVnaW4tdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cpreen](/forum/user/604-cpreen "View cpreen's Profile")**
- [![cpreen's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/604-cpreen "View cpreen's Profile") Topic Author
- [ Offline](/forum/user/604-cpreen)

Less More

- Posts: 98
- Thank you received: 3
-
-

11 years 4 months ago [\#208053](#208053) by [cpreen](/forum/user/604-cpreen "View cpreen's Profile")  Replied by *[cpreen](/forum/user/604-cpreen "View cpreen's Profile")* on topic *[Akeebasubs-Hikashop plugin &amp; variants](/forum/30-integrations/878082-akeebasubs-hikashop-plugin-variants#208053 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  From what I see, I can only assign an Akeebasubs subscription level to a main product and not to variants. Is this Works As Designed, or has something fallen through the cracks?  Regards  Conrad")*

Thanks Nicolas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzgwODItYWtlZWJhc3Vicy1oaWthc2hvcC1wbHVnaW4tdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago -  11 years 4 months ago [\#208464](#208464) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Akeebasubs-Hikashop plugin &amp; variants](/forum/30-integrations/878082-akeebasubs-hikashop-plugin-variants#208464 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  From what I see, I can only assign an Akeebasubs subscription level to a main product and not to variants. Is this Works As Designed, or has something fallen through the cracks?  Regards  Conrad")*

Hi,

Please replace the content of the view "product / variant" by: Code:

&lt;div class="ajax_loading_elem"&gt;&lt;/div&gt; &lt;div class="ajax_loading_spinner"&gt;&lt;/div&gt; &lt;div class="hikashop_variant_toolbar"&gt; &lt;div style="float:left;"&gt; &lt;button onclick="if(window.productMgr.closeVariant) { return window.productMgr.closeVariant(); } else return false;" class="btn btn-danger"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;cancel.png" alt="" style="vertical-align:middle;"/&gt; &lt;?php echo JText::_('HIKA_CANCEL'); ;?&gt;&lt;/button&gt; &lt;/div&gt; &lt;div style="float:right;"&gt; &lt;?php if($this-&gt;config-&gt;get('product_cart_link', 0) &amp;&amp; $this-&gt;product-&gt;product_id &gt; 0) { //$this-&gt;popup-&gt;display(''); //hikamarket::completeLink('product&amp;task=cartlink&amp;pid=' . $product-&gt;product_id, true) } ?&gt; &lt;button onclick="if(window.productMgr.saveVariant) { return window.productMgr.saveVariant(&lt;?php echo $this-&gt;product-&gt;product_id; ?&gt;); } else return false;" class="btn btn-success"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;save.png" alt="" style="vertical-align:middle;"/&gt; &lt;?php echo JText::_('HIKA_SAVE'); ;?&gt;&lt;/button&gt; &lt;/div&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="hikashop_product_variant_edition_&lt;?php echo $this-&gt;product-&gt;product_id; ?&gt;"&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_general"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_edit_general_title"&gt;&lt;?php echo JText::_('MAIN_OPTIONS'); ?&gt;&lt;/div&gt; &lt;dl class="hika_options"&gt; &lt;?php if(hikashop_acl('product/variant/name')) { ?&gt; &lt;dt class="hikashop_product_name"&gt;&lt;label for="data_variant__product_name"&gt;&lt;?php echo JText::_('HIKA_NAME'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_name"&gt;&lt;input id="data_variant__product_name" type="text" name="data[variant][product_name]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_name); ?&gt;"/&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/variant/code')) { ?&gt; &lt;dt class="hikashop_product_code"&gt;&lt;label for="data_variant__product_code"&gt;&lt;?php echo JText::_('PRODUCT_CODE'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_code"&gt;&lt;input id="data_variant__product_code" type="text" name="data[variant][product_code]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_code); ?&gt;"/&gt;&lt;/dd&gt; &lt;?php } $edit_variant = hikashop_acl('product/variant/characteristics'); foreach($this-&gt;product-&gt;characteristics as $characteristic){ ?&gt; &lt;dt class="hikashop_product_characteristic"&gt;&lt;label&gt;&lt;?php echo $characteristic-&gt;characteristic_value; ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_characteristic"&gt;&lt;?php if($edit_variant) echo $this-&gt;characteristicType-&gt;display('data[variant][characteristic]['.$characteristic-&gt;characteristic_id.']', (int)@$characteristic-&gt;default_id, @$characteristic-&gt;values); else echo $characteristic-&gt;values[$characteristic-&gt;default_id]; ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/variant/quantity')) { ?&gt; &lt;dt class="hikashop_product_quantity"&gt;&lt;label for="data_variant__product_quantity"&gt;&lt;?php echo JText::_('PRODUCT_QUANTITY'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_quantity"&gt;&lt;?php echo $this-&gt;quantityType-&gt;displayInput('data[variant][product_quantity]', @$this-&gt;product-&gt;product_quantity); ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/variant/published')) { ?&gt; &lt;dt class="hikashop_product_published"&gt;&lt;label&gt;&lt;?php echo JText::_('HIKA_PUBLISHED'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_published"&gt;&lt;?php echo JHTML::_('hikaselect.booleanlist', "data[variant][product_published]" , '', @$this-&gt;product-&gt;product_published); ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/edit/translations') &amp;&amp; !empty($this-&gt;product-&gt;translations) &amp;&amp; !empty($this-&gt;product-&gt;product_id)) { ?&gt; &lt;dt class="hikashop_product_translations"&gt;&lt;label&gt;&lt;?php echo JText::_('HIKA_TRANSLATIONS'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_translations"&gt;&lt;?php foreach($this-&gt;product-&gt;translations as $language_id =&gt; $translation){ $lngName = $this-&gt;translationHelper-&gt;getFlag($language_id); echo '&lt;div class="hikashop_multilang_button"&gt;' . $this-&gt;popup-&gt;display( $lngName, $lngName, hikashop_completeLink('product&amp;task=edit_translation&amp;product_id=' . @$this-&gt;product-&gt;product_id.'&amp;language_id='.$language_id, true), 'hikashop_product_translation_'.$language_id, 760, 480, '', '', 'link' ). '&lt;/div&gt;'; } ?&gt;&lt;/dd&gt; &lt;?php } ?&gt; &lt;/dl&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php if(hikashop_acl('product/variant/images') &#124;&#124; hikashop_acl('product/edit/files')) { ?&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_images"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_upload_title"&gt;&lt;?php echo JText::_('IMAGES_AND_FILES'); ?&gt;&lt;/div&gt; &lt;?php if(hikashop_acl('product/edit/images')) { $this-&gt;setLayout('form'); if(empty($this-&gt;params)) $this-&gt;params = new stdClass(); if(empty($this-&gt;params-&gt;product_type)) $this-&gt;params-&gt;product_type = 'variant'; $this-&gt;upload_ajax = true; echo $this-&gt;loadTemplate('image'); } if(hikashop_acl('product/edit/files')) { $this-&gt;setLayout('form'); if(empty($this-&gt;params)) $this-&gt;params = new stdClass(); if(empty($this-&gt;params-&gt;product_type)) $this-&gt;params-&gt;product_type = 'variant'; $this-&gt;upload_ajax = true; echo $this-&gt;loadTemplate('file'); } ?&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_price"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_edit_price_title"&gt;&lt;?php echo JText::_('PRICES'); ?&gt;&lt;/div&gt; &lt;dl class="hika_options"&gt; &lt;?php if(hikashop_acl('product/variant/price')) { ?&gt; &lt;dd class="hikashop_product_price"&gt;&lt;?php $this-&gt;price_form_key = 'variantprice'; echo $this-&gt;loadTemplate('price'); ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/variant/price_override')) { ?&gt; &lt;dt class="hikashop_product_price_override"&gt;&lt;label for="data_variant__product_price_percentage"&gt;&lt;?php echo JText::_('MAIN_PRICE_OVERRIDE'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_price_override"&gt; &lt;input type="text" id="data_variant__product_price_percentage" name="data[variant][product_price_percentage]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_price_percentage); ?&gt;" /&gt;% &lt;/dd&gt; &lt;?php } ?&gt; &lt;/dl&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php if(hikashop_acl('product/variant/description')) { ?&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_description"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_edit_description_title"&gt;&lt;?php echo JText::_('HIKA_DESCRIPTION'); ?&gt;&lt;/div&gt; &lt;?php echo $this-&gt;editor-&gt;display();?&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;script type="text/javascript"&gt; window.productMgr.saveVariantEditor = function() { &lt;?php echo $this-&gt;editor-&gt;jsCode(); ?&gt; }; window.productMgr.closeVariantEditor = function() { &lt;?php echo $this-&gt;editor-&gt;jsUnloadCode(); ?&gt; }; &lt;/script&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_restrictions"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_edit_restrictions_title"&gt;&lt;?php echo JText::_('RESTRICTIONS_AND_DIMENSIONS'); ?&gt;&lt;/div&gt; &lt;dl class="hika_options"&gt; &lt;?php if(hikashop_acl('product/edit/salestart')) { ?&gt; &lt;dt class="hikashop_product_salestart"&gt;&lt;label for="product_sale_start_img"&gt;&lt;?php echo JText::_('PRODUCT_SALE_DATES'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_salestart"&gt;&lt;?php echo JHTML::_('calendar', hikashop_getDate((@$this-&gt;product-&gt;product_sale_start?@$this-&gt;product-&gt;product_sale_start:''),'%Y-%m-%d %H:%M'), 'data[variant][product_sale_start]','product_sale_start','%Y-%m-%d %H:%M',array('size' =&gt; '20')); echo ' &lt;label for="product_sale_end_img" class="calendar-separator" style="font-weight:bold"&gt;' . JText::_('HIKA_RANGE_TO') . '&lt;/label&gt; '; echo JHTML::_('calendar', hikashop_getDate((@$this-&gt;product-&gt;product_sale_end?@$this-&gt;product-&gt;product_sale_end:''),'%Y-%m-%d %H:%M'), 'data[variant][product_sale_end]','product_sale_end','%Y-%m-%d %H:%M',array('size' =&gt; '20')); ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/edit/acl') &amp;&amp; hikashop_level(2)) { ?&gt; &lt;dt class="hikashop_product_acl"&gt;&lt;label for="data[variant][product_access]"&gt;&lt;?php echo JText::_('ACCESS_LEVEL'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_acl"&gt;&lt;?php $product_access = 'all'; if(isset($this-&gt;product-&gt;product_access)) $product_access = $this-&gt;product-&gt;product_access; echo $this-&gt;joomlaAcl-&gt;display('data[variant][product_access]', $product_access, true, true); ?&gt;&lt;/dd&gt; &lt;?php } if(hikashop_acl('product/edit/weight')) { ?&gt; &lt;dt class="hikashop_product_weight"&gt;&lt;label for="data_variant__product_weight_unit"&gt;&lt;?php echo JText::_('PRODUCT_WEIGHT'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_weight"&gt; &lt;input type="text" id="data_variant__product_weight_unit" name="data[variant][product_weight]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_weight); ?&gt;"/&gt; &lt;?php echo $this-&gt;weight-&gt;display('data[variant][product_weight_unit]', @$this-&gt;product-&gt;product_weight_unit, '', 'style="width:70px;"'); ?&gt; &lt;/dd&gt; &lt;?php } if(hikashop_acl('product/edit/volume')) { ?&gt; &lt;dt class="hikashop_product_volume"&gt;&lt;label for="data_variant__product_weight"&gt;&lt;?php echo JText::_('PRODUCT_VOLUME'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_volume"&gt; &lt;div class="input-prepend"&gt; &lt;span class="add-on"&gt;&lt;?php echo str_replace('#MYTEXT#', '&lt;i class="icon-14-length"&gt;&lt;/i&gt;', hikashop_tooltip(JText::_('PRODUCT_LENGTH'), '', '', '#MYTEXT#', '', 0)); ?&gt;&lt;/span&gt; &lt;input size="10" style="width:50px" type="text" id="data_variant__product_weight" name="data[variant][product_length]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_length); ?&gt;"/&gt; &lt;/div&gt; &lt;div class="input-prepend"&gt; &lt;span class="add-on"&gt;&lt;?php echo str_replace('#MYTEXT#', '&lt;i class="icon-14-width"&gt;&lt;/i&gt;', hikashop_tooltip(JText::_('PRODUCT_WIDTH'), '', '', '#MYTEXT#', '', 0)); ?&gt;&lt;/span&gt; &lt;input size="10" style="width:50px" type="text" name="data[variant][product_width]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_width); ?&gt;"/&gt; &lt;/div&gt; &lt;div class="input-prepend"&gt; &lt;span class="add-on"&gt;&lt;?php echo str_replace('#MYTEXT#', '&lt;i class="icon-14-height"&gt;&lt;/i&gt;', hikashop_tooltip(JText::_('PRODUCT_HEIGHT'), '', '', '#MYTEXT#', '', 0)); ?&gt;&lt;/span&gt; &lt;input size="10" style="width:50px" type="text" name="data[variant][product_height]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_height); ?&gt;"/&gt; &lt;/div&gt; &lt;?php echo $this-&gt;volume-&gt;display('data[variant][product_dimension_unit]', @$this-&gt;product-&gt;product_dimension_unit, 'dimension', '', 'class="no-chzn" style="width:70px;"'); ?&gt; &lt;/dd&gt; &lt;?php } ?&gt; &lt;/dl&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $html = array(); $dispatcher-&gt;trigger('onProductFormDisplay', array( &amp;$this-&gt;product, &amp;$html )); if(!empty($this-&gt;fields) &amp;&amp; hikashop_acl('product/edit/customfields') &#124;&#124; !empty($html)) { ?&gt; &lt;div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_fields"&gt;&lt;div&gt; &lt;div class="hikashop_product_part_title hikashop_product_edit_fields_title"&gt;&lt;?php echo JText::_('FIELDS'); ?&gt;&lt;/div&gt; &lt;?php $this-&gt;fieldsClass-&gt;prefix = 'variant_'.time().'_'; foreach($this-&gt;fields as $fieldName =&gt; $oneExtraField) { ?&gt; &lt;dl id="hikashop_product_&lt;?php echo $fieldName; ?&gt;" class="hika_options"&gt; &lt;dt class="hikashop_product_&lt;?php echo $fieldName; ?&gt;"&gt;&lt;label&gt;&lt;?php echo $this-&gt;fieldsClass-&gt;getFieldName($oneExtraField); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_&lt;?php echo $fieldName; ?&gt;"&gt;&lt;?php $onWhat = 'onchange'; if($oneExtraField-&gt;field_type == 'radio') $onWhat = 'onclick'; echo $this-&gt;fieldsClass-&gt;display($oneExtraField, $this-&gt;product-&gt;$fieldName, 'data[variant]['.$fieldName.']', false, ' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'product\',0);"'); ?&gt;&lt;/dd&gt; &lt;/dl&gt; &lt;?php } if(!empty($html)) { foreach($html as $k =&gt; $h) { if(is_string($h) &amp;&amp; strtolower(substr(trim($h), 0, 4)) == '&lt;tr&gt;') continue; if(is_string($h)) { echo $h; } else { $fieldname = strtolower($h['name']); if(empty($h['label'])) $h['label'] = $h['name']; $fieldname = preg_replace('([^-a-z0-9])', '_', $fieldname); ?&gt; &lt;dl id="hikashop_product_&lt;?php echo $fieldname; ?&gt;" class="hika_options"&gt; &lt;dt class="hikashop_product_&lt;?php echo $fieldname; ?&gt;"&gt;&lt;label&gt;&lt;?php echo JText::_($h['label']); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_&lt;?php echo $fieldname; ?&gt;"&gt;&lt;?php echo $h['content']; ?&gt;&lt;/dd&gt; &lt;/dl&gt; &lt;?php } unset($html[$k]); } } if(!empty($html)) { ?&gt; &lt;table class="admintable table" width="100%"&gt; &lt;?php foreach($html as $h) { echo $h; } ?&gt; &lt;/table&gt; &lt;?php } ?&gt; &lt;/div&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;?php $html = array(); JPluginHelper::importPlugin('hikashop'); $dispatcher = JDispatcher::getInstance(); $dispatcher-&gt;trigger('onProductBlocksDisplay', array(&amp;$this-&gt;product, &amp;$html)); if(!empty($html)) { echo '&lt;div style="clear:both"&gt;&lt;/div&gt;'; foreach($html as $h) { echo $h; } } ?&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;/div&gt; &lt;input type="hidden" name="data[variant][product_id]" value="&lt;?php echo $this-&gt;product-&gt;product_id; ?&gt;" /&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;?php $doc = JFactory::getDocument(); foreach($doc-&gt;_custom as $custom) { $custom = preg_replace('#&lt;script .*type="text/javascript" src=".*"&gt;&lt;/script&gt;#iU', '', $custom); $custom = preg_replace('#&lt;script .*type="text/javascript"&gt;#iU', '&lt;script type="text/javascript"&gt;', $custom); $custom = str_replace( array('&lt;script type="text/javascript"&gt;', '&lt;/script&gt;'), array('&lt;script type="text/javascript"&gt;setTimeout(function(){', '},20);&lt;/script&gt;'), $custom); echo $custom; } foreach($doc-&gt;_script as $script) { echo '&lt;script type="text/javascript"&gt;'."\r\n".$script."\r\n".'&lt;/script&gt;'; }

And install the latest version of the plugin akeebasubs here:
*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 11 years 4 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzgwODItYWtlZWJhc3Vicy1oaWthc2hvcC1wbHVnaW4tdmFyaWFudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
