поддержка filterpro
<!-- replace cart button filterpro -->
<file name="catalog/controller/module/filterpro.php">
<operation>
<search position="replace">
<![CDATA[
$this->data['products'][] = array(
]]>
</search>
<add>
<![CDATA[
$this->language->load('account/waitlist');
$this->load->model('account/waitlist');
$this->data['text_notify_available'] = $this->language->get('text_notify_available');
$this->data['text_not_available'] = $this->language->get('text_not_available');
$this->data['text_already_waitlist'] = sprintf($this->language->get('text_already_waitlist'),
$this->url->link('account/waitlist', '', 'SSL'));
$this->data['waitlist_enabled'] = $this->config->get('waitlist_enabled');
$this->data['products'][] = array(
'quantity' => $result['quantity'],
'already_in_waitlist' => ($this->model_account_waitlist->issetRow($result['product_id'], $this->customer->getId()) ? true :false),
]]>
</add>
</operation>
</file>
<file name="catalog/view/theme/*/template/module/filterpro_products.tpl">
<operation>
<search position="replace">
<![CDATA[
<input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" />
]]>
</search>
<add>
<![CDATA[
<?php if (!$product['quantity'] && $waitlist_enabled) { ?>
<div class="waitlist-not-available"><?php echo $text_not_available;?></div>
<div class="waitlist-add">
<?php if ($product['already_in_waitlist']) { ?>
<?php echo $text_already_waitlist; ?>
<?php } else { ?>
<a onclick="addToWaitList('<?php echo $product['product_id']; ?>');"><?php echo $text_notify_available; ?></a>
<?php } ?>
</div>
<?php } else { ?>
<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><span><?php echo $button_cart; ?></span></a>
<?php } ?>
]]>
</add>
</operation>
</file>