Correction of the PHP code
Client's review of cooperation with Stanislav Fedorenko
Correction of the PHP codeI recommend a great freelancer! Instantly insisted in the essence of the work, quickly and professionally determined the lines with errors and corrected! I will cooperate in the future.
Freelancer's review of cooperation with Roman Bondar
Correction of the PHP codeA good customer. He clearly set a task. I paid the job immediately after performing. It was pleasant to work.The !
-
50р?
-
100 грн, нужно смотреть сайт...
-
Там просмотреть строк 20-30 которые отвечают за выборку и вывод, я даже скажу какие, где-то банальная ошибка
-
Ну пишите сюда эти самые строки...
-
+1 Строки в студию.
-
хорошо. вот сама выборка - отрабатывает четко
function showSpecOffers ($subcategory, $order, $all='') {
global $wpdb;
if ($order=="name") $o="order by name";
else $o='';
$category = $subcategory;
if(!$all){
$all=$wpdb->get_var ($wpdb->prepare('select isAll from le_categories where Id=%d', $subcategory));
$category=$wpdb->get_var ($wpdb->prepare('select category from le_categories where Id=%d', $subcategory));
}
$subcategories=$this->getSubcategories($subcategory);
$subCatIds=array();
foreach($subcategories as $subcat){
array_push($subCatIds, $subcat->id);
}
$in = '';
if($subCatIds){
$subCatIds= join(',',$subCatIds);
$in = 'or subcategories IN ('. $subCatIds .')';
}
if ($all==0)
$result=$wpdb->get_results ("select o.name, o.link, comment1, comment2,comment3, comment4, comment5,
o.image, buttonname, b.name as bankname, offerlink
from le_offers o
join le_banks b on b.id=o.bank
where concat(',',o.subcategories,',') like '%,$subcategory,%' $o");
else {
$result=$wpdb->get_results ("select o.name, o.link, comment1, comment2,comment3, comment4, comment5,
o.image, buttonname, b.name as bankname, offerlink
from le_offers o
join le_banks b on b.id=o.bank
where category=$category $in or subcategories = $category $o ");}
return $result;
}
вот в дальнейшем как передается
function leoffers_specoffers($page, $all, $order) {
if(!$page)
$page=(get_page_by_path($_SERVER['REQUEST_URI'])->ID);
$subcategoryId=$this->getCategoryByPage($page);
if($subcategoryId)
$specOffers=$this->showSpecOffers($subcategoryId, $order, 1);
ob_start();
include(ABSPATH . 'wp-content/plugins/leoffers/leoffers_mq_specoffers.php');
$content = ob_get_contents();
ob_end_clean();
return $content;
}
тут (если вместо 1 выделенной ) товар появляется в подкатегориях, но соответсвенно пропадает в основной категории
-
ну а на саму страницу выводится через цикл перебора массивов foreach
<ul>
<?php
foreach ($specOffers1 as $specOffer) {?>
<li>
код....................................
</li>
<?}?>
</ul><!--special-->
-
Current freelance projects in the category PHP
Horoshop SpecialistNeed a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different… PHP, Website Maintenance ∙ 19 hours 4 minutes back ∙ 16 proposals |
Make sure that order emails from the store do not go to spam.Currently, there is a store on OpenCart, and order emails are landing in spam. We need to ensure they go to Inbox (ukr.net gmail) and check it. The hosting provider wrote: Poor email delivery may be related to a low sender reputation - IP or domain. In this case, we can advise… PHP, Web Programming ∙ 1 day 20 hours back ∙ 47 proposals |
Transfer the fully ready adaptive HTML5 structure to WordPress.
267 USD
I am looking for an experienced WordPress developer who can convert our meticulously prepared static HTML5/CSS3 code into a high-performance custom WordPress theme. The frontend is almost ready (about 99%): semantic markup, metadata, and multilingual structure (hreflang) are… Content Management Systems, PHP ∙ 4 days 21 hours back ∙ 69 proposals |
GoPos IntegrationHello, has anyone done an integration of GoPos with a custom website for a restaurant in Poland? I need help, their documentation is very sparse, there is only swagger and it lacks descriptions. https://app.gopos.io/doc/swagger-ui/index.html The essence is this: we used their… PHP, Web Programming ∙ 5 days 13 hours back ∙ 26 proposals |
Write meta data for ALT using AIA website on Laravel, the site has many images for which it is necessary to automatically generate correct semantic and relevant ALT descriptions for the images, with the possibility of verification. AI & Machine Learning, PHP ∙ 6 days 11 hours back ∙ 35 proposals |