PHP Prestshop code
There's this code in Prestashop 1.6 on the product card.
{if isset($product_categories) &&$product_categories}
{Assign var="i" value="1"}
{foreach from=$produce_categories term=produce_category}
{foreach from=$product_categories term=produce_category}{if product_category.id_category ==81}{assign var="reverse" vale=false}{/if}{/foreach}}
{if!$overse}
{if $i=1}
{l s='Serie'}:
{$product_category.name}
{/if}
{/if}
{$i=i+1}
{/foreach}
{/if}
The point is, if there is a product in the definitional category (name) which is in category X in turn in category "Serie", then the name (defined category) should be removed.
Visually, I'll try to draw 🙂 Blue squares are a commodity. We need to get a name if the product is in the Series.
Now it's working with this result, which sometimes shows both the X and the general name of the category that's not in the Series.
Current freelance projects in the category PHP
Website layout
25 USD
Need to create a website layout, please leave examples of your work and pricing Criteria/wishes for the layout: - Deadline by the 11th-12th; - Responsive: desktop, tablet, mobile; - Many elements are repeated, there will be no animations as such (the pages with equipment are… HTML & CSS, PHP ∙ 3 hours 21 minutes back ∙ 29 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 15 hours 27 minutes back ∙ 51 proposals |
Improvement of the Bropack website on WordPress (layout adjustments, form settings, and SEO)Task Description:We are looking for an experienced WordPress developer/front-end developer to promptly complete the project https://bropack.com.ua/. The site has already been designed and set up on WordPress, but due to the previous contractor missing deadlines, it is necessary… HTML & CSS, PHP ∙ 16 hours 34 minutes back ∙ 26 proposals |
Looking for a white-label solution for a betting company for rent. |
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 ∙ 3 days 7 hours back ∙ 67 proposals |