pb update themler v241 bug with CMS CODE add virtuemart php code

philippe.t
31 Posts
philippe.t posted this 12 March 2016

hello,

I have many bug with the new version v241 about cms code.
before update i have no problem with themler v208

for example i use virtuemart joomla and i add a control CMS Code: with this code php:

<?php
echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$this->currency));
?>

And now with new version I have many bugs and fatal error:

Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_4.php on line 5

Fatal error: Using $this when not in object context in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_4.php on line 5

other example:
<?php
if ($product->product_gtin) {
?>
<br />
<?php
echo JText::_ ('COM_VIRTUEMART_CART_GTIN'). ': ' . $product->product_gtin;
}
?>
Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_8.php on line 5

Notice: Trying to get property of non-object in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_8.php on line 5

<?php
if($product->customfieldsSorted['normal'][6]->customfield_value){
?>

<div>
<?php
echo $product->customfieldsSorted['normal'][6]->customfield_value;
?>
</div>
<?php
}
?>

Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_3.php on line 2

Notice: Trying to get property of non-object in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_3.php on line 2

etc...

and i see in /html/com_virtuemart/category/default_template.php

your system add for CMS code this code, for example:

<div class="data-control-id-1552765 bd-customcmscode-8 bd-tagstyles">
<?php renderTemplateFromIncludes('customcmscode_8', array(), 'includes', false); ?>
</div>

Can you resolved this bugs rapidely, please?

regards
philippe.t

hello, I have many bug with the new version v241 about cms code. before update i have no problem with themler v208 for example i use virtuemart joomla and i add a control CMS Code: with this code php: &lt;?php echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$this->currency)); ?&gt; And now with new version I have many bugs and fatal error: Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_4.php on line 5 Fatal error: Using $this when not in object context in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_4.php on line 5 other example: &lt;?php if ($product->product_gtin) { ?&gt; &lt;br /&gt; &lt;?php echo JText::_ ('COM_VIRTUEMART_CART_GTIN'). ': ' . $product->product_gtin; } ?&gt; Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_8.php on line 5 Notice: Trying to get property of non-object in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_8.php on line 5 &lt;?php if($product->customfieldsSorted['normal'][6]->customfield_value){ ?&gt; &lt;div&gt; &lt;?php echo $product->customfieldsSorted['normal'][6]->customfield_value; ?&gt; &lt;/div&gt; &lt;?php } ?&gt; Notice: Undefined variable: product in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_3.php on line 2 Notice: Trying to get property of non-object in C:\ProgramData\Themler\hd_data\themler_1915613272\virtuemart\templates\pnh4\includes\customcmscode_3.php on line 2 etc... and i see in /html/com_virtuemart/category/default_template.php your system add for CMS code this code, for example: &lt;div class="data-control-id-1552765 bd-customcmscode-8 bd-tagstyles"&gt; &lt;?php **renderTemplateFromIncludes('customcmscode_8', array(), 'includes', false)**; ?&gt; &lt;/div&gt; Can you resolved this bugs rapidely, please? regards philippe.t

Last edited 12 March 2016 by philippe.t

Vote to pay developers attention to this features or issue.
1 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 12 March 2016

The reported issue will be fixed in the next (one of the future) Themler updates.

The reported issue will be fixed in the next (one of the future) Themler updates.
You must log in or register to leave comments