<?xml version="1.0" encoding="UTF-8"?>
<modification>
  <name>Maybooster Advanced Options</name>
  <code>may-advanced-options</code>
  <version>2.3.0.1</version>
  <author>HHR(maysoft1116@outlook.com)</author>
  <link></link>
  <file path="catalog/controller/product/product.php">
    <operation>
      <search><![CDATA[
      if (!$option_value['subtract'] || ($option_value['quantity'] > 0)) {
      ]]></search>
      <add position="replace"><![CDATA[
      if (!$option_value['subtract'] || ($option_value['quantity'] > 0) || (($option['type'] == 'select' || $option['type'] == 'radio') && $option['value'] == 'may_advanced_option')) {
      ]]></add>
    </operation>
  </file>
  <file path="catalog/controller/journal3/checkout.php">
    <operation>
      <search><![CDATA[
      $this->renderJson('success', $json);
      ]]></search>
      <add position="replace"><![CDATA[
      $this->load->model('extension/may/advanced_options');
      $json = $this->model_extension_may_advanced_options->dispatchJson($json);
      $this->renderJson('success', $json);
      ]]></add>
    </operation>
  </file>
  <file path="catalog/controller/extension/basel/basel_features.php">
    <operation>
      <search><![CDATA[
      $this->response->setOutput(json_encode($json));
      ]]></search>
      <add position="replace"><![CDATA[
      $this->load->model('extension/may/advanced_options');
      $json = $this->model_extension_may_advanced_options->dispatchJson($json);
      $this->response->setOutput(json_encode($json));
      ]]></add>
    </operation>
  </file>
</modification>
