The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Code: Select all
} elseif (in_array('the_option_value', $option_values)) {
$status = false;
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Code: Select all
<modification>
<id> disable cod for stitching option</id>
<version>1.1.0</version>
<vqmver>1.1.0</vqmver>
<author>custom</author>
<file name="catalog/model/payment/cod.php file">
<operation error="skip">
<search position="before"><![CDATA[if ($this->config->get('cod_total') > 0 && $this->config->get('cod_total') > $total) {]]></search>
<add><![CDATA[$products = $this->cart->getProducts();
foreach ($products as $product) {
$option_data = array();
foreach ($product['option'] as $option) {
if ($option['type'] != 'file') {
$value = $option['option_value'];
} else {
$filename = $this->encryption->decrypt($option['option_value']);
$value = utf8_substr($filename, 0, utf8_strrpos($filename, '.'));
}
$option_data[] = array(
'name' => $option['name'],
'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value)
);
}
}
$option_values = array_column($option_data, 'value');]]></add>
</operation>
<operation>
<search position="before"><![CDATA[} else {
$status = false;]]></search>
<add><![CDATA[} elseif (in_array('Stitching', $option_values)) { // i also applied option values but not working both way
$status = false;]]></add>
</operation>
</file>
</modification>
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
hello i have updated my opencart store to version 3.0.2.0 on php 7 so now any suggestion for this mod?straightlight wrote: ↑Thu Apr 19, 2018 8:49 amSince you're using OC v1.5x releases, it is also quite old. I would suggest to upgrade to at least v2.3.0.2 release for PHP compatibility improvement.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer
Users browsing this forum: No registered users and 6 guests