| Server IP : 87.98.231.4 / Your IP : 216.73.217.37 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/components/com_virtuemart/views/cart/tmpl/ |
Upload File : |
<?php
/**
*
* renders the userfields with "is cart attribute set"
*
*
* @package VirtueMart
* @subpackage
* @author Max Milbers
* @link https://virtuemart.net
* @copyright Copyright (c) 2014 - 2018 VirtueMart Team. All rights reserved.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
* @version $Id: addtocartbtn.php 8024 2014-06-12 15:08:59Z Milbo $
*/
defined ('_JEXEC') or die();
// Status Of Delimiter
$closeDelimiter = false;
$openTable = true;
$hiddenFields = '';
if(!empty($this->userFieldsCart['fields'])) {
// Output: Userfields
foreach($this->userFieldsCart['fields'] as $field) {
if ($field['name'] == 'customer_note') {
$class="well";
} else {
$class="";
}
?>
<fieldset class="vm-fieldset-<?php echo str_replace('_','-',$field['name']) . ' ' . $class ?>">
<div class="cart <?php echo str_replace('_','-',$field['name']) ?>" title="<?php echo strip_tags($field['description']) ?>">
<?php
if ($field['hidden'] == true) {
// We collect all hidden fields
// and output them at the end
$hiddenFields .= $field['formcode'] . "\n";
} else { ?>
<label class="cart <?php echo str_replace('_','-',$field['name']) ?> block">
<?php echo $field['title']; ?>
<?php echo $field['formcode'] ?>
</label>
<?php } ?>
</div>
</fieldset>
<?php
}
// Output: Hidden Fields
echo $hiddenFields;
}
?>
<script>
jQuery('#customer_note_field').addClass('form-control');
</script>