Find Jobs
Hire Freelancers

Prestashop easy customization

€8-30 EUR

Anulowano
Opublikowano ponad 7 lat temu

€8-30 EUR

Płatne przy odbiorze
I have my [login to view URL] edited by previous developer, not available at the moment. I need you to edit this code by adding a check on the product (inside cart) ID. I tried myself, but did not succeed, don't understand why. Sure for a php programmer that knows prestashop it's a matter of minutes. Here is the code: //code added by amit chauhan $prod_arr = Context::getContext()->cart->getProducts(); $total=0; for($i=0;$i<count($prod_arr);$i++) { if(isset($prod_arr[$i]['reduction_applies']) && $prod_arr[$i]['reduction_applies']==1) { $pid=$prod_arr[$i]['id_product']; $sql_spprice = "SELECT reduction FROM "._DB_PREFIX_."specific_price where id_product=".$pid; $results_spprice = Db::getInstance()->ExecuteS($sql_spprice); if($results_spprice[0]['reduction']=="0.150000") { $total+=($prod_arr[$i]['price_wt']*$prod_arr[$i]['cart_quantity']); } else if (($results_spprice[0]['reduction']=="0.500000")) { $total+=0; } } else { $total+=($prod_arr[$i]['price_wt']*$prod_arr[$i]['cart_quantity']); } } $order_total = $total; //code ended by amit chauhan I need to add another check on the product ID. If ($prod_arr[$i]['id_product']==600513) {$total+=0;} Something like this.
Identyfikator projektu: 13016745

Informację o projekcie

9 ofert
Zdalny projekt
Aktywny 7 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
9 freelancerzy składają oferty o średniej wysokości €33 EUR dla tej pracy
Awatar Użytkownika
PAY WHEN YOU ARE SATISFIED WITH MY WORK. I have checked and I am strongly confident to do this project and get it done exactly your needs. Regards, Trong Nguyen
€50 EUR w 1 dzień
4,9 (540 opinii)
8,1
8,1
Awatar Użytkownika
Hello. Thank you very much for taking time to read my proposal. I can help you. I am a fulltime freelancer. You can check my portfolio and reviews. We can discuss further details. Hopefully, both of us will be happy after the job is done. Best Regards.
€15 EUR w 1 dzień
5,0 (220 opinii)
7,7
7,7
Awatar Użytkownika
Hello, i am looking forward to customize PHP script as require. As per requirement it looks that if "id_product" = 600513 we don't need to apply reduction even if "reduction_applies" is set to 1. please contact me start. Thanks.
€23 EUR w 0 dzień
5,0 (105 opinii)
7,5
7,5
Awatar Użytkownika
Dear Sir, I found your job post on "Freelancer". I am expert Web Developer with more than 2 year experiences of CakePHP , Prestashop,Laravel, Angular JS, Codeigniter with Mysql as backend, Ajax, Javascript, Bootstrap, Jquery, Json, CSS and HTML. I carefully read your job post and also see your code. I am able to edit this code successfully without facing any thing else as per your mentioned so kindly revert me if you think i am right person for that. I am always available on email and Skype. I will be available more than 30 hours per week and able to start your project as earliest. Let me know if you have any query feel free and contact to us. Looking for your positive response. Thank You. Your sincerely, Chirag Viradiya, Diffusion Infotech.
€32 EUR w 1 dzień
4,9 (16 opinii)
4,2
4,2

O kliencie

Flaga ITALY
Torino, Italy
5,0
4
Zweryfikowana metoda płatności
Członek od paź 29, 2012

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.