Budget: 1 UAH Deadline: 1 day
Ready to do
Proposals concealed
Proposals are currently absent
Proposals concealed
-
Oleg Melnik 6 October 2014да человек считает что 50 руб это круто, а я думаю это уже оскорбление таких заказчиков надо сразу банить
-
Roman Bondar
6 October 2014
Там просмотреть строк 20-30 которые отвечают за выборку и вывод, я даже скажу какие, где-то банальная ошибка
-
Roman Bondar
6 October 2014
хорошо. вот сама выборка - отрабатывает четко
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 выделенной ) товар появляется в подкатегориях, но соответсвенно пропадает в основной категории
-
Roman Bondar
6 October 2014
ну а на саму страницу выводится через цикл перебора массивов foreach
<ul>
<?php
foreach ($specOffers1 as $specOffer) {?>
<li>
код....................................
</li>
<?}?>
</ul><!--special-->
-
Oleg Melnik 6 October 2014тут бабка на двое сказала может 5-10 минут а может 2-3 дня за 50 руб вооще отлично
Current freelance projects in the category PHP
A plugin needs to be developed. The goal is a convenient table for quick selection and purchasing of goods by wholesale buyers. Functionality Front: Columns - Product selection (check), Name, Category, Warehouse, Delivery, Price, Quantity selection, Add to cart, Clear filters search products in a list filter by categories filter by warehouses filter by delivery product quantity selection adding to cart Back: bulk price increase and decrease by % per warehouse
It is required to refine a WordPress plugin that performs analytics functions. The plugin scans data and displays it on its website. The work can be divided into stages. Main tasks: Analysis and optimization of the current architecture of the plugin. Enhancement of the module for collecting and processing data from external sources. Improvement of performance when working with large volumes of information. Implementation of additional settings in the admin panel. Optimization of storage and display of results on the website. Correction of identified errors and increasing stability of operation. Requirements: Experience working with WordPress. Confident knowledge of PHP, MySQL, JavaScript. Understanding of working with APIs and automated data processing. Ability to understand someone else's code. A detailed technical assignment will be provided to the selected performer after preliminary discussion.
We need a Laravel Backend Developer for the development and maintenance of server logic, databases, and core APIs for our web application. Responsibilities include developing and maintaining server logic and databases for our web application based on Laravel. The work involves integrating frontend frameworks with our server infrastructure and includes designing database architecture and executing queries on relational databases such as MySQL. Professional experience in Laravel development with at least three years of work in this field is required. Experience with integrating frontend frameworks with server infrastructure is also preferred.
We are looking for support for a project based on Yii , we need to make edits and improvements to the database, there is partially a connection with the previous contractor .....................
A virus has currently infiltrated the website. The site is not functioning properly. In particular, the main page is not working correctly. We need a developer who can fix this error as soon as possible.