Find Jobs
Hire Freelancers

VQMOD OPENCART 3 - Extension Port from 1.5 to 3.x modification

€8-30 EUR

已关闭
已发布超过 5 年前

€8-30 EUR

货到付款
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: 18320380

关于此项目

7提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
7威客以平均价€24 EUR来参与此工作竞价
用户头像
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 在1天之内
4.9 (639条评论)
8.3
8.3
用户头像
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 在0天之内
4.9 (235条评论)
7.4
7.4
用户头像
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 在1天之内
5.0 (161条评论)
6.9
6.9
用户头像
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 在1天之内
4.9 (229条评论)
6.7
6.7
用户头像
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 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
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 在2天之内
0.0 (0条评论)
0.0
0.0

关于客户

PORTUGAL的国旗
Macedo de Cavaleiros, Portugal
5.0
1
付款方式已验证
会员自4月 8, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。