Please help with PHP.
Categories ){ ?>
Categories as $k=>$category){?>
count_category_to_row==0) print "; ?>
count_category_to_row?>%">
category_link;?>">image_category_path;?>/category_image) print $category->category_image; else print $this->noimage;?>" alt="name);?>" title="name);?>" />
category_link?>> name?>
count_category_to_row==$this->count_category_to_row-1) print ''; ?>
count_category_to_row!=$this->count_category_to_row-1) print ''; ?>
Thank you for attention.
Client's review of cooperation with Ivan P.
Please help with PHP.Ivan quickly dealt with the task. He immediately began to perform the task and performed it perfectly.
I will continue to work with Ivan.
Thank you for work.
Freelancer's review of cooperation with Vladimir Verny
Please help with PHP.The work went great. All of the points clearly discussed, nothing more. timely payment. I recommend !
-
Winning proposal1 day1 USD
427 31 0 Winning proposal1 day1 USDCall me, I will do.
-
1 day20 USD
196 1 day20 USDHi, I will quickly and quality fulfill your order, my email: [email protected]
-
1 day22 USD
415 9 0 1 1 day22 USDYou have a lot of categories. Make a var_dump massive, see which key in the required category and do unset
-
1 day50 USD
594 15 0 1 day50 USDI do it quickly!
C of UW. We go. Web development experience - over 7 years.
by: lovesexguns
-
после
foreach($this->categories as $k=>$category)
попробуйте поставить что-то типа
if ($category->id != укажите id нужной категории ) {
...остальной код
} -
if ($category->category_id != 188 ) {
...остальной код
}Так я делал, категория скрывается, но ломается структура

-
Снимать с публикации не желательно. Эта категория содержит один товар.
Через unset - как?
-
Здраствуйте!
Возможно попробуйте так?
<div class="jshop_list_category">
<?php
if (count($this->categories)){?>
<table class = "jshop">
<?php foreach($this->categories as $k=>$category){?>
<?php if ($category->category_id == 188 ) { continue; }/?>
<?php if ($k%$this->count_category_to_row==0) print "<tr>"; ?>
<td class="jshop_categ" width="<?php print (100/$this->count_category_to_row)?>%">
<a class="img" href="<?php print $category->category_link;?>"><img src="<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name);?>" title="<?php print htmlspecialchars($category->name);?>" /></a>
<a class="product_link" href="<?php print $category->category_link?>"><?php print $category->name?></a>
</td>
<?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) print '</tr>'; ?>
<?php } ?>
<?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) print '</tr>'; ?>
</table>
<?php } ?>
</div> -
Правда закладываться на идентификатор категории не рекомендую, так как это явный костыль )), как вариант в категории добавить класс, либо какое то описание и по нему уже ориентироваться.
-

может так -
<div class="jshop_list_category">
<?php
if (count($this->categories)){?>
<table class = "jshop">
<?php foreach($this->categories as $k=>$category){?>
<?php if ($category->category_id != 188 ) continue; ?>
<?php if ($k%$this->count_category_to_row==0) print "<tr>"; ?>
<td class="jshop_categ" width="<?php print (100/$this->count_category_to_row)?>%">
<a class="img" href="<?php print $category->category_link;?>"><img src="<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name);?>" title="<?php print htmlspecialchars($category->name);?>" /></a>
<a class="product_link" href="<?php print $category->category_link?>"><?php print $category->name?></a>
</td>
<?php if ($k%$this->count_category_to_row==$this->count_category_to_row-1) print '</tr>'; ?>
<?php } ?>
<?php if ($k%$this->count_category_to_row!=$this->count_category_to_row-1) print '</tr>'; ?>
</table>
<?php } ?>
</div>
-
Дмитрий и Генадий, варианты не подошли.
Все так же товар только скрывается.
Как написать условия, что мол выводим все категории кроме "id188" ? Надо , наверное, где-то в helpere писать..
-
Current freelance projects in the category PHP
Development of a WordPress website
23 USD
We are looking for a contractor to develop a custom website on WordPress for a jewelry store. The first stage will be a consultation. Content Management Systems, PHP ∙ 1 day 12 hours back ∙ 60 proposals |
The WooCommerce cart (WordPress) is broken — it does not add products and the cart page does not open.On the website of the online store https://www.dobryi-gospodar.com/ (WordPress + WooCommerce), the checkout function has completely stopped working. When clicking the "Add to cart" button (both in the product card and in the catalog), a long loading process begins (the indicator… Content Management Systems, PHP ∙ 1 day 13 hours back ∙ 57 proposals |
Product search function by imageIt is necessary to develop and integrate a product search function by image on the website.What needs to be implementedA "Search by Photo" button on the website.Image upload by the user: JPG.Search for visually similar products in the catalog.Display results in the form of… PHP, Web Programming ∙ 1 day 21 hours back ∙ 44 proposals |
Parser expireddomains.net
113 USD
A parser is needed for expireddomains.net. You need to log in to the site first; the problem is that it blocks the IP when trying to parse data. You need to parse thematic domains based on a list of keywords. If you are not confident in your abilities, please do not write. PHP, Web Programming ∙ 3 days 20 hours back ∙ 51 proposals |
Integration of payment service with Sales Force
70 USD
There is a payment system widget on the site that needs to be integrated with Salesforce so that all required parameters are visible on the Salesforce side. It needs to be done in such a way that all payments and subscriptions are controlled through Salesforce. PHP, Web Programming ∙ 3 days 23 hours back ∙ 41 proposals |
