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
Module for OpenCart: mass creation of products from folders with imagesDevelopment of a mass product creation module for OpenCart (ocStore 3.x) A backend module for OpenCart / ocStore 3.x needs to be developed that automatically creates products from a pre-prepared folder structure with images.Main functionality: mass creation of products from… Content Management Systems, PHP ∙ 5 hours 33 minutes back ∙ 24 proposals |
Developer for CMS website project on Drupal 7 + PHP/MySQL.We are looking for a developer to assist with the setup of a CMS site on Drupal 7 + PHP/MySQL. Task:1. Create product cards for the entire range of products (currently, not all products on the site have product cards with descriptions and characteristics).2. Add correct… Content Management Systems, PHP ∙ 2 days 9 hours back ∙ 39 proposals |
Looking for a Bitrix24 specialist / CRM integrator to set up automation.Our company works with CRM Bitrix24. We need a specialist who can set up automatic addition of phone numbers to leads/orders in two formats. Automation must be correctly configured for two countries: the Republic of Moldova and Romania. Task: When creating a lead or order in… PHP, Web Programming ∙ 3 days 8 hours back ∙ 24 proposals |
Website optimizationOptimization of the website jdgreta.co.uk on Shopify. SEO audit attached to the project. Main tasks - - Fix all meta data - Complete the technical specifications for the programmer (since this project combines tasks for both the programmer and SEO, if you are not a company -… HTML & CSS, PHP ∙ 4 days 4 hours back ∙ 33 proposals |
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 ∙ 5 days 6 hours back ∙ 21 proposals |
