VQMOD OPENCART 3 - Extension Port from 1.5 to 3.x modification €8-30 EUR Data postării: peste 5 ani în urmă
€8-30 EUR Plata la predare
I need to port this extension from 1.5x to 3.x.
somebody can help?!
<modification>
<id>Product sale countdown Timer</id>
<version>1.0</version>
<vqmver>2.1.7</vqmver>
<author>[login to view URL]</author>
<file name="catalog/model/catalog/[login to view URL]">
<operation>
<search position="before"><![CDATA[
public function getTotalProductSpecials() {
]]></search>
<add><![CDATA[
/* Nikita_SP MOD FOR COUNTER */
public function getProductSpecialData($product_id) {
if ($this->customer->isLogged()) {
$customer_group_id = $this->customer->getCustomerGroupId();
} else {
$customer_group_id = $this->config->get('config_customer_group_id');
}
$query = $this->db->query("SELECT `price`, `date_end`, `date_start` FROM " . DB_PREFIX . "product_special WHERE product_id = '" . (int)$product_id . "' AND customer_group_id = '" . (int)$customer_group_id . "' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end = '0000-00-00' OR date_end > NOW())) ORDER BY priority ASC, price ASC LIMIT 1");
if ($query->num_rows) {
return $query->row;
} else {
return FALSE;
}
}
]]></add>
</operation>
</file>
<file name="catalog/controller/product/[login to view URL]">
<operation>
<search position="after"><![CDATA[
$data['special'] = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']);
]]></search>
<add><![CDATA[
$special = $this->model_catalog_product->getProductSpecialData($this->request->get['product_id']);
if($special['date_end'] && $this->config->get('countdowntimer_product') && time() < strtotime($special['date_end'])){
$this->load->language('module/countdowntimer');
$this->data['special_end'] = $special['date_end'];
$this->data['special_start'] = $special['date_start'];
}else{
$data['special_end'] = false;
}
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[
$data['special'] = false;
]]></search>
<add><![CDATA[
$data['special_end'] = false;
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/product/[login to view URL]">
<operation>
<search><![CDATA[
<span class="price-old" id="price-old"><?php echo $price; ?></span>
]]></search>
<add position="replace"><![CDATA[
<?php if (!$special_end) { ?>
<?php } else { ?>
<span class="price-old" id="price-old"><?php echo $price; ?></span>
<?php if ($price) { ?>
<?php if ($special) {
if (isset($priceISO) && isset($specialISO)) {
$floatPrice = $priceISO;
$floatSpecial = $specialISO;
} else {
$floatPrice = floatval(preg_replace('/[\.\s+]/is','',$price));
$floatSpecial = floatval(preg_replace('/[\.\s]/is','',$special));
}
$priceDiff = $floatPrice - $floatSpecial;
if ((int)$priceDiff - $priceDiff != 0) { // make it in percent
$discount = round((($floatPrice-$floatSpecial)/$floatPrice)*100, 1).'%';
} else { //make it in euros
$discount = $priceDiff.'€';
}
?>
<span class="container-discoutn-percentage">Desconto:
<?php echo $discount; ?>
</span>
<div class="promo" style="border-top: 1px solid #e6e6e6;font-size: 10px; line-height: 10px;text-transform; font-weight:normal;text-transform:none;padding-top: 30px;
margin-top: 30px;">
<span class="label-promo"> * Promoção válida de <span class="data-promo"><?php echo $special_start; ?></span> a <span class="data-promo"><?php echo $special_end; ?></span>. Limitado ao stock existente. </span>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
]]></add>
</operation>
</file>
</modification>
ID-ul proiectului: 18320380
Despre proiect 7 propuneri
Proiect la distanță
Activ: 5 ani în urmă
Vrei să câștigi bani? Adresa de e-mail Aplică la proiecte similare Avantajele de a licita pe platforma Freelancer Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
7 freelanceri plasează o ofertă medie de €24 EUR pentru proiect
Hi,
I am Opencart expert and I will do this job. I will convert the attached extension to 3.0 using default opencart theme and functions. Please confirm and if you are using custom theme then share website link first.
Harsh
€30 EUR în 1 zi
4,9 (639 recenzii) Hi,
I am interested in your project. I have 5-year experience on Opencart. All my completed projects on freelancer.com are on Opencart. You can check my profile to know clearly about this: https://www.freelancer.com/u/Ginjag.html
I understood your requirement. I can start now.
Please feel free to contact me and we discuss about your project.
Hope to work with you.
Thanks
LeNam
€29 EUR în 0 zi
4,9 (235 recenzii) Hi
What a mess... The vqmod version needs fixes too. Like moving php code from tpl to the controller.
Anyway, I can code a proper ocmod version.
€20 EUR în 1 zi
5,0 (161 recenzii) Hi, I checked the code, can be done and tested on oc3 thanks ..Hi, I checked the code, can be done and tested on oc3 thanks ..
€23 EUR în 1 zi
4,9 (229 recenzii) The basic file structure for your module will be divided into two sections, the admin and the catalog folders. The contents of each folder will follow the MVC-L framework respectively, with the difference that the admin will deal solely with backend functionality, and the catalog with frontend functionality. Users of your module will interact and configure its settings in the administration side of the store. Therefore, the files in the admin folder will handle any changes to its settings, the way the module is displayed in the administration, install/uninstalling the module, etc. Likewise, the way the module is displayed and how it works in the front end of the store will be handled by the files in the catalog folder.
€23 EUR în 1 zi
0,0 (0 recenzii) Hello, there I hope you doing well,
I see you post I want to work for it if you have a good time please discuss with me.
€19 EUR în 2 zile
0,0 (0 recenzii)