Skip to content

Commit

Permalink
Replace ) : ?> by ): ?>
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab committed Jul 9, 2020
1 parent a49dab5 commit a2e8f69
Show file tree
Hide file tree
Showing 161 changed files with 252 additions and 252 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<h4><?php echo Mage::helper('catalog')->__('Bundle Items') ?></h4>
<div class="product-options">
<dl>
<?php foreach ($options as $option) : ?>
<?php if ($option->getSelections()) : ?>
<?php foreach ($options as $option): ?>
<?php if ($option->getSelections()): ?>
<?php echo $this->getOptionHtml($option); ?>
<?php endif ?>
<?php endforeach ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var bundleTemplateBox = '<table class="border" cellpadding="0" cellspacing="0">'
' <thead>' +
' <tr class="headings">' +
' <th><?php echo $this->jsQuoteEscape(Mage::helper('catalog')->__('Name')) ?></th>' +
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
' <th class="type-price price-type-box"><?php echo $this->jsQuoteEscape(Mage::helper('catalog')->__('Price')) ?></th>' +
' <th class="type-type price-type-box"><?php echo $this->jsQuoteEscape(Mage::helper('bundle')->__('Price Type')) ?></th>' +
<?php endif ?>
Expand All @@ -56,8 +56,8 @@ var bundleTemplateRow ='<td>' +
' <strong><?php echo $this->helper('sales')->__('SKU') ?>:</strong> {{sku}}' +
' </div>' +
'</td>' +
<?php if ($this->getCanReadPrice() !== false) : ?>
'<td class="price-type-box"><input id="<?php echo $this->getFieldId() ?>_{{index}}_price_value" class="input-text required-entry validate-zero-or-greater" type="text" name="<?php echo $this->getFieldName() ?>[{{parentIndex}}][{{index}}][selection_price_value]" value="{{selection_price_value}}"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif ?>></td>' +
<?php if ($this->getCanReadPrice() !== false): ?>
'<td class="price-type-box"><input id="<?php echo $this->getFieldId() ?>_{{index}}_price_value" class="input-text required-entry validate-zero-or-greater" type="text" name="<?php echo $this->getFieldName() ?>[{{parentIndex}}][{{index}}][selection_price_value]" value="{{selection_price_value}}"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled"<?php endif ?>></td>' +
'<td class="price-type-box"><?php echo $this->getPriceTypeSelectHtml() ?><div><?php echo $this->getCheckboxScopeHtml() ?></div></td>' +
<?php else: ?>
'<input type="hidden" id="<?php echo $this->getFieldId(); ?>_{{index}}_price_value" name="<?php echo $this->getFieldName(); ?>[{{parentIndex}}][{{index}}][selection_price_value]" value="0" />' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@
&nbsp;
<?php endif ?>
</td>
<?php if ($this->canParentReturnToStock($_item)) : ?>
<?php if ($this->canParentReturnToStock($_item)): ?>
<td class="a-center">
<?php if ($this->canShowPriceInfo($_item)): ?>
<?php if ($this->canReturnItemToStock($_item)) : ?>
<?php if ($this->canReturnItemToStock($_item)): ?>
<input type="checkbox" name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][back_to_stock]" value="1"<?php if ($_item->getBackToStock()): ?> checked="checked"<?php endif ?> />
<?php endif ?>
<?php else: ?>
Expand All @@ -235,7 +235,7 @@
<?php endif ?>
<td class="a-center">
<?php if ($this->canShowPriceInfo($_item)): ?>
<?php if ($this->canEditQty()) : ?>
<?php if ($this->canEditQty()): ?>
<input type="text" class="input-text qty-input" name="creditmemo[items][<?php echo $_item->getOrderItemId() ?>][qty]" value="<?php echo $_item->getQty()*1 ?>" />
<?php else: ?>
<?php echo $_item->getQty()*1 ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
</td>
<td class="a-center">
<?php if ($this->canShowPriceInfo($_item)): ?>
<?php if ($this->canEditQty()) : ?>
<?php if ($this->canEditQty()): ?>
<input type="text" class="input-text qty-input" name="invoice[items][<?php echo $_item->getOrderItemId() ?>]" value="<?php echo $_item->getQty()*1 ?>" />
<?php else: ?>
<?php echo $_item->getQty()*1 ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<td class="label"><?php echo trim($this->getElementLabelHtml()) ?></td>
<td class="value">
<?php echo trim($this->getElementHtml()) ?>
<?php if ($_element->getNote()) : ?>
<?php if ($_element->getNote()): ?>
<p class="note"><?php echo $this->__($_element->getNote()); ?></p>
<?php endif ?>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<?php endif ?>
<?php if ($_product->isSaleable() || $_skipSaleableCheck): ?>
<td class="a-center">
<?php if ($_item->isSaleable() || $_skipSaleableCheck) : ?>
<?php if ($_item->isSaleable() || $_skipSaleableCheck): ?>
<input type="text" name="super_group[<?php echo $_item->getId() ?>]" id="super_group[<?php echo $_item->getId() ?>]" maxlength="12" value="<?php echo $_item->getQty()*1 ?>" title="<?php echo Mage::helper('core')->quoteEscape(Mage::helper('catalog')->__('Qty')) ?>" class="input-text qty" />
<input type="hidden" value="1" price="<?php echo $this->getCurrencyPrice($_item->getPrice()) ?>" qtyId="super_group[<?php echo $_item->getId() ?>]" />
<?php else: ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@

OptionTemplateDate = '<table class="border" cellpadding="0" cellspacing="0">'+
'<tr class="headings">'+
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
'<th class="type-price"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price')) ?></th>' +
'<th class="type-type"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price Type')) ?></th>' +
<?php endif ?>
'<th class="last"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('SKU')) ?></th>'+
'</tr>'+
'<tr>'+
<?php if ($this->getCanReadPrice() !== false) : ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{option_id}}_price" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif ?>></td>' +
<?php if ($this->getCanReadPrice() !== false): ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{option_id}}_price" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled"<?php endif ?>></td>' +
'<td><?php echo $this->getPriceTypeSelectHtml() ?>{{checkboxScopePrice}}</td>' +
<?php else: ?>
'<input type="hidden" id="product_option_{{option_id}}_price" name="product[options][{{option_id}}][price]">' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

OptionTemplateFile = '<table class="border" cellpadding="0" cellspacing="0">'+
'<tr class="headings">'+
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
'<th class="type-price">' + <?php echo $this->helper('core')->jsonEncode(Mage::helper('catalog')->__('Price')); ?> + '</th>' +
'<th class="type-type">' + <?php echo $this->helper('core')->jsonEncode(Mage::helper('catalog')->__('Price Type')); ?> + '</th>' +
<?php endif ?>
Expand All @@ -37,8 +37,8 @@ OptionTemplateFile = '<table class="border" cellpadding="0" cellspacing="0">'+
'<th class="last">' + <?php echo $this->helper('core')->jsonEncode(Mage::helper('catalog')->__('Maximum Image Size')); ?> + '</th>' +
'</tr>' +
'<tr>' +
<?php if ($this->getCanReadPrice() !== false) : ?>
'<td><input class="input-text validate-zero-or-greater" type="text" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif ?>></td>' +
<?php if ($this->getCanReadPrice() !== false): ?>
'<td><input class="input-text validate-zero-or-greater" type="text" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled"<?php endif ?>></td>' +
'<td>' + <?php echo $this->helper('core')->jsonEncode($this->getPriceTypeSelectHtml()) ?> + '</td>' +
<?php else: ?>
'<input type="hidden" name="product[options][{{option_id}}][price]">' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OptionTemplateSelect = '<table class="border" cellpadding="0" cellspacing="0">'+
'<thead>'+
'<tr class="headings">'+
'<th class="type-title"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Title')) ?> <span class="required">*</span></th>'+
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
'<th class="type-price"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price')) ?></th>' +
'<th class="type-type"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price Type')) ?></th>' +
<?php endif ?>
Expand All @@ -55,8 +55,8 @@ OptionTemplateSelectRow = '<tr id="product_option_{{id}}_select_{{select_id}}">'
'<input type="hidden" name="product[options][{{id}}][values][{{select_id}}][option_type_id]" value="{{option_type_id}}">'+
'<input type="hidden" id="product_option_{{id}}_select_{{select_id}}_is_delete" name="product[options][{{id}}][values][{{select_id}}][is_delete]" value="">'+
'<input type="text" class="required-entry input-text select-type-title" id="product_option_{{id}}_select_{{select_id}}_title" name="product[options][{{id}}][values][{{select_id}}][title]" value="{{title}}">{{checkboxScopeTitle}}</td>'+
<?php if ($this->getCanReadPrice() !== false) : ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{id}}_select_{{select_id}}_price" name="product[options][{{id}}][values][{{select_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif ?>></td>' +
<?php if ($this->getCanReadPrice() !== false): ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{id}}_select_{{select_id}}_price" name="product[options][{{id}}][values][{{select_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled"<?php endif ?>></td>' +
'<td><?php echo $this->getPriceTypeSelectHtml() ?>{{checkboxScopePrice}}</td>' +
<?php else: ?>
'<input type="hidden" id="product_option_{{id}}_select_{{select_id}}_price" name="product[options][{{id}}][values][{{select_id}}][price]">' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
//<![CDATA[
OptionTemplateText = '<table class="border" cellpadding="0" cellspacing="0">'+
'<tr class="headings">'+
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
'<th class="type-price"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price')) ?></th>' +
'<th class="type-type"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Price Type')) ?></th>' +
<?php endif ?>
'<th class="type-sku"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('SKU')) ?></th>'+
'<th class="type-last last"><?php echo Mage::helper('core')->jsQuoteEscape(Mage::helper('catalog')->__('Max Characters')) ?> </th>'+
'</tr>'+
'<tr>'+
<?php if ($this->getCanReadPrice() !== false) : ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{option_id}}_price" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled"<?php endif ?>></td>' +
<?php if ($this->getCanReadPrice() !== false): ?>
'<td><input type="text" class="input-text validate-number product-option-price" id="product_option_{{option_id}}_price" name="product[options][{{option_id}}][price]" value="{{price}}"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled"<?php endif ?>></td>' +
'<td><?php echo $this->getPriceTypeSelectHtml() ?>{{checkboxScopePrice}}</td>' +
<?php else: ?>
'<input type="hidden" name="product[options][{{option_id}}][price]">' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $_showWebsite= $this->isMultiWebsites();
<td class="label"><?php echo $this->getElement()->getLabel(); ?></td>
<td colspan="10" class="grid tier">
<table cellspacing="0" class="data border" id="group_prices_table">
<?php if ($_showWebsite) : ?>
<?php if ($_showWebsite): ?>
<col width="135" />
<?php endif ?>
<col width="120" />
Expand Down Expand Up @@ -66,8 +66,8 @@ $_showWebsite= $this->isMultiWebsites();
var groupPriceRowTemplate = '<tr>'
+ '<td<?php if (!$_showWebsite): ?> style="display:none"<?php endif ?>>'
+ '<select class="<?php echo $_htmlClass; ?> required-entry" name="<?php echo $_htmlName; ?>[{{index}}][website_id]" id="group_price_row_{{index}}_website">'
<?php foreach ($this->getWebsites() as $_websiteId => $_info) : ?>
+ '<option value="<?php echo $_websiteId; ?>"><?php echo $this->jsQuoteEscape($this->escapeHtml($_info['name'])); ?><?php if (!empty($_info['currency'])) : ?> [<?php echo $this->escapeHtml($_info['currency']); ?>]<?php endif ?></option>'
<?php foreach ($this->getWebsites() as $_websiteId => $_info): ?>
+ '<option value="<?php echo $_websiteId; ?>"><?php echo $this->jsQuoteEscape($this->escapeHtml($_info['name'])); ?><?php if (!empty($_info['currency'])): ?> [<?php echo $this->escapeHtml($_info['currency']); ?>]<?php endif ?></option>'
<?php endforeach ?>
+ '</select></td>'
+ '<td><select class="<?php echo $_htmlClass; ?> custgroup required-entry" name="<?php echo $_htmlName; ?>[{{index}}][cust_group]" id="group_price_row_{{index}}_cust_group">'
Expand All @@ -76,7 +76,7 @@ var groupPriceRowTemplate = '<tr>'
<?php endforeach ?>
+ '</select></td>'
+ '<td><input class="<?php echo $_htmlClass; ?> required-entry <?php echo $_priceValueValidation; ?>" type="text" name="<?php echo $_htmlName; ?>[{{index}}][price]" value="{{price}}" id="group_price_row_{{index}}_price" />'
+ '<input type="hidden" name="<?php echo $_htmlName; ?>[{{index}}][is_percent]" value="<?php if ($this->getIsPercent()) : ?>1<?php else: ?>0<?php endif ?>" id="group_price_row_{{index}}_is_percent" /></td>'
+ '<input type="hidden" name="<?php echo $_htmlName; ?>[{{index}}][is_percent]" value="<?php if ($this->getIsPercent()): ?>1<?php else: ?>0<?php endif ?>" id="group_price_row_{{index}}_is_percent" /></td>'
+ '<td class="last"><input type="hidden" name="<?php echo $_htmlName; ?>[{{index}}][delete]" class="delete" value="" id="group_price_row_{{index}}_delete" />'
+ '<button title="<?php echo $this->jsQuoteEscape(Mage::helper('catalog')->__('Delete Group Price')); ?>" type="button" class="scalable delete icon-btn delete-product-option" id="group_price_row_{{index}}_delete_button" onclick="return groupPriceControl.deleteItem(event);">'
+ '<span><?php echo $this->jsQuoteEscape(Mage::helper('catalog')->__('Delete')); ?></span></button></td>'
Expand Down Expand Up @@ -158,10 +158,10 @@ var groupPriceControl = {
return false;
}
};
<?php foreach ($this->getValues() as $_item) : ?>
<?php foreach ($this->getValues() as $_item): ?>
groupPriceControl.addItem('<?php echo $_item['website_id']; ?>', '<?php echo $_item['cust_group']; ?>', '<?php echo sprintf('%.2f', $_item['price']); ?>', <?php echo (int)!empty($_item['readonly']); ?>);
<?php endforeach ?>
<?php if ($_readonly) : ?>
<?php if ($_readonly): ?>
$('<?php echo $_htmlId; ?>_container').up('table').select('button')
.each(groupPriceControl.disableElement);
<?php endif ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<div class="attribute-value-label-container left">
<?php echo Mage::helper('catalog')->__('Option:') ?> <strong>'{{label}}'</strong>
</div>
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
<div class="attribute-values-container-main">
<div class="attribute-values-container left">
<?php echo Mage::helper('catalog')->__('Price:') ?>
Expand All @@ -108,7 +108,7 @@
<div class="attribute-values-container left">
<input type="hidden" class="attribute-price-type" id="__id___price_type" value="0" />
</div>
<?php if ($this->getShowUseDefaultPrice()) : ?>
<?php if ($this->getShowUseDefaultPrice()): ?>
<div class="attribute-values-container no-display">
<input id="__id___default" type="checkbox" <?php if ($this->isReadonly() || $this->getCanEditPrice() === false): ?> disabled="disabled" <?php endif ?> class="attribute-use-default-value">
</div>
Expand All @@ -117,13 +117,13 @@
</div>
</div>
<div class="template no-display" id="<?php echo $this->getHtmlId() ?>_simple_pricing">
<?php if ($this->getCanReadPrice() !== false) : ?>
<?php if ($this->getCanReadPrice() !== false): ?>
<div class="attribute-values-container left v-middle">
&nbsp;<?php echo Mage::helper('catalog')->__('Price:') ?>
<input type="text" class="input-text attribute-price validate-number"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled" <?php endif ?>/>
<input type="text" class="input-text attribute-price validate-number"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled" <?php endif ?>/>
</div>
<div class="attribute-values-container left v-middle">
&nbsp;<select class="attribute-price-type"<?php if ($this->getCanEditPrice() === false) : ?> disabled="disabled" <?php endif ?>>
&nbsp;<select class="attribute-price-type"<?php if ($this->getCanEditPrice() === false): ?> disabled="disabled" <?php endif ?>>
<option value="0"><?php echo Mage::helper('catalog')->__('Fixed') ?></option>
<option value="1"><?php echo Mage::helper('catalog')->__('Percentage') ?></option>
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<td class="value scope-label"><?php echo Mage::helper('adminhtml')->__('[GLOBAL]') ?></td>
</tr>

<?php if (!$this->isVirtual()) : ?>
<?php if (!$this->isVirtual()): ?>
<tr>
<td class="label"><label for="inventory_is_decimal_divided"><?php echo Mage::helper('catalog')->__('Can be Divided into Multiple Boxes for Shipping') ?></label></td>
<td class="value"><select id="inventory_is_decimal_divided" name="<?php echo $this->getFieldSuffix() ?>[stock_data][is_decimal_divided]" class="select" <?php echo $_readonly;?>>
Expand Down Expand Up @@ -226,13 +226,13 @@
}

function applyEnableDecimalDivided() {
<?php if (!$this->isVirtual()) : ?>
<?php if (!$this->isVirtual()): ?>
$('inventory_is_decimal_divided').up('tr').hide();
<?php endif ?>
$('inventory_qty_increments').removeClassName('validate-digits').removeClassName('validate-number');
$('inventory_min_sale_qty').removeClassName('validate-digits').removeClassName('validate-number');
if ($('inventory_is_qty_decimal').value == 1) {
<?php if (!$this->isVirtual()) : ?>
<?php if (!$this->isVirtual()): ?>
$('inventory_is_decimal_divided').up('tr').show();
<?php endif ?>
$('inventory_qty_increments').addClassName('validate-number');
Expand Down
Loading

0 comments on commit a2e8f69

Please sign in to comment.