Find Jobs
Hire Freelancers

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

€8-30 EUR

Closed
Posted over 5 years ago

€8-30 EUR

Paid on delivery
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>
Project ID: 18320380

About the project

7 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average €24 EUR for this job
User Avatar
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 in 1 day
4.9 (639 reviews)
8.3
8.3
User Avatar
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 in 0 day
4.9 (235 reviews)
7.4
7.4
User Avatar
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 in 1 day
5.0 (161 reviews)
6.9
6.9
User Avatar
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 in 1 day
4.9 (229 reviews)
6.7
6.7
User Avatar
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 in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
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 in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of PORTUGAL
Macedo de Cavaleiros, Portugal
5.0
1
Payment method verified
Member since Apr 8, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.