📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
system
📝
currency-choice.ocmod.xml
← Geri Dön
<?xml version="1.0" encoding="utf-8"?> <modification> <name>Para Birimine Göre Ürün Ekleme</name> <version>3.0</version> <author>Mağaza</author> <file path="admin/controller/catalog/product.php"> <operation error="skip"> <search><![CDATA[ if (isset($this->request->post['price'])) { ]]></search> <add position="before"><![CDATA[ $this->load->model('localisation/currency'); $data['currencies'] = $this->model_localisation_currency->getCurrencies(); if (isset($this->request->post['currency_id'])) { $data['currency_id'] = $this->request->post['currency_id']; } elseif (!empty($product_info)) { $data['currency_id'] = $product_info['currency_id']; } else { $data['currency_id'] = ''; } ]]></add> </operation> <operation error="skip"> <search><![CDATA['price' => $this->currency->format($result['price'], $this->config->get('config_currency')),]]></search> <add position="replace"><![CDATA[ 'price' => $this->currency->format( $this->currency->convert($result['price'], $this->currency->getCodeOrDefault($result['currency_id']), $this->config->get('config_currency')), $this->currency->getCodeOrDefault($result['currency_id']) ), ]]></add> </operation> <operation error="skip"> <search><![CDATA['special' => $special,]]></search> <add position="replace"><![CDATA[ 'special' => empty($special) ? false : $this->currency->format( $this->currency->convert($special, $this->currency->getCodeOrDefault($result['currency_id']), $this->config->get('config_currency')), $this->currency->getCodeOrDefault($result['currency_id']) ), ]]></add> </operation> <operation error="skip"> <search><![CDATA[$special = $this->currency->format($product_special['price'], $this->config->get('config_currency')); ]]></search> <add position="replace"><![CDATA[$special = $product_special['price'];]]></add> </operation> </file> <file path="admin/controller/catalog/hizliurun.php"> <operation error="skip"> <search><![CDATA[ if (isset($this->request->post['price'])) { ]]></search> <add position="before"><![CDATA[ $this->load->model('localisation/currency'); $data['currencies'] = $this->model_localisation_currency->getCurrencies(); if (isset($this->request->post['currency_id'])) { $data['currency_id'] = $this->request->post['currency_id']; } elseif (!empty($product_info)) { $data['currency_id'] = $product_info['currency_id']; } else { $data['currency_id'] = ''; } ]]></add> </operation> <operation error="skip"> <search><![CDATA['price' => $this->currency->format($result['price'], $this->config->get('config_currency')),]]></search> <add position="replace"><![CDATA[ 'price' => $this->currency->format( $this->currency->convert($result['price'], $this->currency->getCodeOrDefault($result['currency_id']), $this->config->get('config_currency')), $this->currency->getCodeOrDefault($result['currency_id']) ), ]]></add> </operation> <operation error="skip"> <search><![CDATA['special' => $special,]]></search> <add position="replace"><![CDATA[ 'special' => empty($special) ? false : $this->currency->format( $this->currency->convert($special, $this->currency->getCodeOrDefault($result['currency_id']), $this->config->get('config_currency')), $this->currency->getCodeOrDefault($result['currency_id']) ), ]]></add> </operation> <operation error="skip"> <search><![CDATA[$special = $this->currency->format($product_special['price'], $this->config->get('config_currency')); ]]></search> <add position="replace"><![CDATA[$special = $product_special['price'];]]></add> </operation> </file> <file path="admin/model/catalog/product.php"> <operation error="skip"> <search><![CDATA[price = '" . (float)$data['price'] . "',]]></search> <add position="replace"><![CDATA[price = '" . (float)$data['price'] . "', currency_id = '" . (int)$data['currency_id'] . "',]]></add> </operation> </file> <file path="admin/view/template/catalog/product_form.twig"> <operation error="skip"> <search><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control"/> ]]></search> <add position="replace"><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control" /> {% if currencies|length >= 2 %}<br> <select name="currency_id" class="form-control"> <option value="0">{{ text_default }}</option> {% for currency in currencies %} <option value="{{ currency['currency_id'] }}" {% if (currency_id == currency['currency_id']) %}{{ ' selected' }}{% endif %}>{{ currency['title'] }} ({{ currency['code'] }})</option> {% endfor %} </select> {% endif %} ]]></add> </operation> <operation error="skip"> <search><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control" /> ]]></search> <add position="replace"><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control" /> {% if currencies|length >= 2 %}<br> <select name="currency_id" class="form-control"> <option value="0">{{ text_default }}</option> {% for currency in currencies %} <option value="{{ currency['currency_id'] }}" {% if (currency_id == currency['currency_id']) %}{{ ' selected' }}{% endif %}>{{ currency['title'] }} ({{ currency['code'] }})</option> {% endfor %} </select> {% endif %} ]]></add> </operation> </file> <file path="admin/view/template/catalog/hizliurun.twig"> <operation error="skip"> <search><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control" /> ]]></search> <add position="replace"><![CDATA[ <input type="text" name="price" value="{{ price }}" placeholder="{{ entry_price }}" id="input-price" class="form-control" /> {% if currencies|length >= 2 %} <select name="currency_id" class="form-control" > <option value="0">{{ text_default }}</option> {% for currency in currencies %} <option value="{{ currency['currency_id'] }}" {% if (currency_id == currency['currency_id']) %}{{ ' selected' }}{% endif %}>{{ currency['title'] }} ({{ currency['code'] }})</option> {% endfor %} </select> {% endif %} ]]></add> </operation> </file> <file path="system/library/cart/currency.php"> <operation error="skip"> <search><![CDATA[public function has($currency) {]]> </search> <add position="before"><![CDATA[ public function getCodeOrDefault($id=false) { foreach($this->currencies as $code=>$currency) { if($id === $currency['currency_id']) { return $code; } } return $this->config->get('config_currency'); } ]]></add> </operation> <operation error="skip"> <search><![CDATA[$this->db = $registry->get('db');]]> </search> <add position="before"><![CDATA[ $this->config = $registry->get('config'); ]]></add> </operation> </file> <file path="system/library/cart/cart.php"> <operation error="skip"> <search><![CDATA[$this->weight = $registry->get('weight');]]></search> <add position="after"><![CDATA[$this->currency = $registry->get('currency');]]></add> </operation> <operation error="skip"> <search><![CDATA[$product_data[] = array(]]></search> <add position="before"><![CDATA[ $price = $this->currency->convert($price, $this->currency->getCodeOrDefault($product_query->row['currency_id']), $this->config->get('config_currency')); $option_price = $this->currency->convert($option_price, $this->currency->getCodeOrDefault($product_query->row['currency_id']), $this->config->get('config_currency')); ]]></add> </operation> </file> <file path="catalog/model/catalog/product.php"> <operation error="skip"> <search><![CDATA[($query->row['discount'] ? $query->row['discount'] : $query->row['price']),]]></search> <add position="after"><![CDATA['currency_id' => $query->row['currency_id'],]]></add> </operation> <operation error="skip"> <search><![CDATA[($query->row['discount'] ? $query->row['discount'] : $query->row['price'])]]></search> <add position="replace"><![CDATA[$this->currency->convert(($query->row['discount'] ? $query->row['discount'] : $query->row['price']), $this->currency->getCodeOrDefault($query->row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> <operation error="skip"> <search><![CDATA[$query->row['special']]]></search> <add position="replace"><![CDATA[$this->currency->convert($query->row['special'], $this->currency->getCodeOrDefault($query->row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> </file> <file path="catalog/model/journal3/product.php"> <operation error="skip"> <search><![CDATA[($row['discount'] ? $row['discount'] : $row['price']),]]></search> <add position="after"><![CDATA['currency_id' => $row['currency_id'],]]></add> </operation> <operation error="skip"> <search><![CDATA[($row['discount'] ? $row['discount'] : $row['price'])]]></search> <add position="replace"><![CDATA[$this->currency->convert(($row['discount'] ? $row['discount'] : $row['price']), $this->currency->getCodeOrDefault($row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> <operation error="skip"> <search><![CDATA[$row['special']]]></search> <add position="replace"><![CDATA[$this->currency->convert($row['special'], $this->currency->getCodeOrDefault($row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> </file> <file path="catalog/model/catalog/category.php"> <operation error="skip"> <search><![CDATA[($query->row['discount'] ? $query->row['discount'] : $query->row['price']),]]></search> <add position="after"><![CDATA['currency_id' => $query->row['currency_id'],]]></add> </operation> <operation error="skip"> <search><![CDATA[($query->row['discount'] ? $query->row['discount'] : $query->row['price'])]]></search> <add position="replace"><![CDATA[$this->currency->convert(($query->row['discount'] ? $query->row['discount'] : $query->row['price']), $this->currency->getCodeOrDefault($query->row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> <operation error="skip"> <search><![CDATA[$query->row['special']]]></search> <add position="replace"><![CDATA[$this->currency->convert($query->row['special'], $this->currency->getCodeOrDefault($query->row['currency_id']), $this->config->get('config_currency'))]]></add> </operation> </file> <file path="catalog/controller/product/product.php"> <operation error="skip"> <search><![CDATA[foreach ($option['product_option_value'] as $option_value) {]]></search> <add position="after"><![CDATA[ $option_value['price'] = $this->currency->convert($option_value['price'], $this->currency->getCodeOrDefault($product_info['currency_id']), $this->config->get('config_currency')); ]]></add> </operation> <operation error="skip"> <search><![CDATA[$discounts = $this->model_catalog_product->getProductDiscounts($this->request->get['product_id']);]]></search> <add position="after"><![CDATA[ foreach($discounts as $k=>$v) { $discounts[$k]['price'] = $this->currency->convert($discounts[$k]['price'], $this->currency->getCodeOrDefault($product_info['currency_id']), $this->config->get('config_currency')); } ]]></add> </operation> </file> </modification>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula