Find Jobs
Hire Freelancers

Fix Foreach

€8-30 EUR

已完成
已发布超过 4 年前

€8-30 EUR

货到付款
Hello, i added this If condition if ($product_type !== 'Bundle') { to this foreach below, but stop to working foreach ($orderItems as $item) { if ($product_type !== 'Bundle') { $productId = $item->getProductId(); if (empty($productId)) { continue; } $sql = "SELECT * FROM product_expire_date_qty WHERE entity_id = ?"; $data = $this->_connection->fetchAll( $sql, array( $productId ) ); if (!empty($data) && !empty($data[0])) { $specialQty = (int)$data[0]['qty']; $expireDate = date("d-m-Y", strtotime($data[0]['date_expire'])); $now = date("d-m-Y", time()); $qtyOrdered = (int)$item->getQtyOrdered(); $diff = $specialQty - $qtyOrdered; if ($specialQty == 0 || (strtotime($now) - strtotime($expireDate)) > 0 || $diff <= 0) { $this->deleteSpecialPrice($productId); continue; } $sql2 = "update product_expire_date_qty set qty = '".$diff ."' where entity_id = ".$productId.";"; $this->_connection->query($sql2); } } } Please, help me to fix
项目 ID: 22899172

关于此项目

14提案
远程项目
活跃4 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hi! This is a simple error that can be fixed within 30 minutes. Send me a message and I'll get started right away! Thanks - Ryan :)
€15 EUR 在1天之内
2.9 (9条评论)
4.2
4.2
14威客以平均价€26 EUR来参与此工作竞价
用户头像
Give me URL where its not working. I still need ftp and cpanel access to fix this for you and filename please. PHP/MYSQL expert here. HIRE me now.
€20 EUR 在1天之内
4.9 (366条评论)
7.8
7.8
用户头像
Hello, my name is Abhishek.⭐⭐⭐⭐⭐ This project is related to fixing the Foreach loop and I will discuss more in detail to understand project scope and requirement (like features ,functionality , extra required services , etc ) . After proper understanding of project requirement I will let you know how much price I will charge for this project based on detail discussion and requirement. Relevant Skills and Experience⭐⭐⭐⭐⭐ - 14 years of experience in Website development(fixing the Foreach loop) - 5 star rated freelancer with over 280 completed projects - Got Preferred Freelancer award. - Fast communication and deliver on time
€8 EUR 在1天之内
4.9 (373条评论)
7.4
7.4
用户头像
Hello, I'm Abu Gosia. I'm interesting in your project very well. I m quite well experienced in these jobs. Let's go ahead with me. Thanks
€20 EUR 在1天之内
4.8 (225条评论)
7.0
7.0
用户头像
Hello, How are you? Hope you are doing well. I have read all the requirements and ready for discuss. Just message me when you're free so we can discuss. Thanks Gaurav
€8 EUR 在1天之内
5.0 (115条评论)
6.1
6.1
用户头像
Hello. I have big experience in PHP / HTML / JS, so i will do this job with pleasure. Feel free to contact with me. I can start work immediately. Regards, Luke
€20 EUR 在2天之内
5.0 (63条评论)
5.5
5.5
用户头像
Ready to help you now. Lets connect on chat for more discusion. Thanks ==========================================================
€20 EUR 在1天之内
5.0 (4条评论)
3.0
3.0
用户头像
I would love yo fix your Foreach logic issue in your code . I have seen you used "$product_type" and added functionality to compare and do something. I think I found issue but need to review your all logic to make sure where is issue. I am avialble for interview. Feel free to contact me. Best regards Ravi
€19 EUR 在1天之内
5.0 (4条评论)
2.5
2.5
用户头像
Hello There I am Ankur, Magento developer having 5 years of experience. I can work on any area in Magento like customization,integrations, design changes etc. I can fix this script within short time. Please message to discuss and start task. Thanks.
€12 EUR 在1天之内
5.0 (9条评论)
2.7
2.7
用户头像
Hi I am a php / wordpress developer with 5 years of experience I do the tasks very smoothly and efficiently. only your support needed when required. I will give you best technical support. thanks
€19 EUR 在7天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hi There! I have more than 8-year experience in this field. Would you please share more details about the project? I am really interested to work with you for long. Best Regards, Santosh
€19 EUR 在7天之内
0.0 (0条评论)
1.1
1.1

关于客户

ITALY的国旗
Villanova Mondovì, Italy
4.9
213
付款方式已验证
会员自6月 25, 2014起

客户认证

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