Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [category]

A category is a grouping of information.

0
votes
0answers
9 views

Woocommerce disable code based on specific product in cart

In another post here: max-number-of-items-in-a-cart the following code works well add_filter( 'woocommerce_add_to_cart_validation', 'only_four_items_allowed_add_to_cart', 10, 3 ); function ...
0
votes
1answer
25 views

How do I add category to Objective C class in a pod?

I need to extend the functionality of a library Pod written in Objective C (the rest of the project is in Swift). I created the MyClass+Category .h and .m files (as a Category), with the pod selected ...
0
votes
0answers
22 views

ACF field value display on woocommerce category archive page

I am working on woocommerce based webiste. I have create field through ACF called Add Sub title for woocommerce product post type . I want to display that field value after Main Title on woocommerce ...
1
vote
0answers
15 views

mediawiki default category in category

I use a MediaWiki and extension CategoryTree. Problem occurs if I want to create a new page. I chose a category but my category list is empty: When I create a new one and add it I see a new category ...
-1
votes
0answers
13 views

Swift make category animation

I found a design category cell's that I liked. I tried to find how to implement, but nothing like it did't find. When chose the right category - it opens with animation Is there any library that ...
0
votes
1answer
21 views

Woocommerce particular category for single product sorting? Not all Products

I want to sort the products by particular category on category page. For instance, I have three categories: Category A Category B Category C I want to display products of specific category first like: ...
-1
votes
1answer
13 views

how to display custom attribute on category page in GRID and LIST mode

how to display custom attribute below product name on category page in GRID and LIST mode
0
votes
0answers
10 views

How to display categories list wordpress?

How to display all categories list with description in loop? wp_list_categories with description in custom-templete.php
-2
votes
0answers
6 views

Opencart category image in product page

I am using Open-Cart 3.0.2.0 . I am trying to get category image in the product page. Any suggestions ?
1
vote
1answer
7 views

Assign categorical mapping from one pd.Series to another

I want to apply the mapping from categorical values to codes from one pd.Series to another. Consider this snippet: import pandas as pd s1 = pd.Series(['a', 'b']).astype('category') s2 = pd.Series(['...
0
votes
0answers
19 views

adapter build category list that can contain sub category dynamic

im trying to build category list that can contain sub category dynamic so far i have no problem with this code if (fragment_category_models.get(position).getChildren() != null ) { if (!...
0
votes
0answers
24 views

Swift Multiple Notification with Action

How can I send multiple notification with action from 2 or 3 different ViewController. Action work only on last notification. And I have secondViewController is same.. and this send two ...
0
votes
2answers
47 views

Pandas assign categories to numbers in dataframe

I have this dataframe: +----------+----------+------------+------------+ | values_A | values_B | values_A_r | values_B_r | +----------+----------+------------+------------+ | 1.623 | 1.91232 | ...
0
votes
1answer
68 views

How to implement block property of Objective C category

Given: @interface NSArray (Sample) @property (nonnull, nonatomic, readonly) NSArray *_Nonnull (^mapped)(id __nullable (^block)(id __nonnull)); @end How can one implement this category? I'm ...
0
votes
1answer
34 views

Category sub category mysql query

I was trying to create a category/subcategory branch with count formulas in MySQL, but I had no success. My products are stored in my database as below: product_id|parent category | child category | ...
-1
votes
0answers
21 views

Magento 2.2 - Category name not save

I imported the categories from Magento 1 to Magento 2, after that I can not create categories, the name appears empty in the list. I already cleaned the caches, reindex but it does not solve. This ...
0
votes
0answers
8 views

Timber - next/prev post from same category

I'm trying to get next/prev post link from same category in WP Timber, but with no luck. I've already tryed: {{ post.prev.link }} And it's working like a charm - except it does not show items from ...
0
votes
0answers
16 views

wordpress parent category and child category come on reverse when get_the_category()

If set the category like the following, Parent A |_ Child A |_ Child B |_ Child C Parent B |_ Child A |_ Child B |_ Child C It would show in admin menu like Parent A, Child A Parent A, Child ...
0
votes
2answers
20 views

Mutli-category one-hot encoding to pivot-table

I've got some data that is mostly made up of one hot encoded categorical data. I'd like to be able to demonstrate the co-occurence of the categories but I can't quite work out how to reshape it or ...
0
votes
1answer
23 views

Recursive function to generate multidimensional array from Doctrine database result on oneToMany Category entity

I don't find any suitable answer for my need, in fact, I have an entity Category and it has self relationship as One-To-Many, Self-referencing I need to generate a multidiamention named value array ...
0
votes
1answer
25 views

Magento 2 set category to show all products by default

I am working with Magento 2 and I need the categories to show all products in each category by default. How do I do that?
0
votes
0answers
18 views

Build product categories based on product items

I have a database of 500.000 product items compiled from xml feeds from multiple sources (affiliate networks and shops). Every shop and affiliate network have their own idea about categories and ...
0
votes
1answer
13 views

Woocommerce to show other category after all product in current one

Is there a plugin or some code that after opening some category and all products are show to show products from other category. Because some category or sub-category have only 2-4 products and I want ...
0
votes
0answers
24 views

Wordpress - Category Ajax filter

I found this plugin to filter specific posts by category using Ajax, now i had a small problem with "SHOW ALL" it always bring out all my site posts not the child categories of "Cat 4", so how can i ...
3
votes
4answers
132 views

Exclude products from a product category on a specific page in Entrada theme

I want to exclude all products/tours from the woocommerce category 'Excursions' (slug 'excursions-ru') on the 'Our tours' page (slug 'our-tours-ru'). Here is this page I found this solution here So I ...
0
votes
1answer
26 views

Woocommerce Get all product variations by category

I need to get all Woocommerce product variations that belongs to selected category. I tried to query that this way: $args = array( 'post_type' => 'product_variation', 'post_status' =&...
0
votes
0answers
11 views

Multiple loops on category.php WP_Query or pre_get_posts?

Bit of background i have an normal events category, specifically for that category there is a date meta box for the date of the event. In the list of posts on that page category-events.php i need the ...
0
votes
0answers
14 views

Show Product Name After Breadcrumb On Category Page

I Want to display product name beside breadcrumb on category page in Magento 2. Can Anybody Help Me To Solve this issue. I Make div of breadcrumb. I want to add product name in div Of Breadcrumb.
0
votes
3answers
40 views

How to Show Related Products by Category in WordPress

How to Show Related Products by Category in WordPress? Products Category: Raised Access Flooring Ancillary Products Knauf Flooring Recycled Panels E.g current page is Raised Access Flooring only ...
4
votes
2answers
51 views

Categorize elements of a list in python

I want to efficiently categorize the elements of a given list L1. This list can be arbitrary long, so I am looking for an efficient way to do the following. The list L1 contains several elements [e_1,...
0
votes
2answers
32 views

How to Limit Excerpt Length in $category->description in archive-products.php WordPress?

I would like to have limit excerpt length 30 characters in echo '<p>' . $category->description . '</p>'; here my code: <?php $orderby = 'name'; $order = 'asc'; $...
0
votes
0answers
12 views

Hide empty category from dropdown in wordpress with sorting by tags

I am having issues with empty categories showing in dropdown list. The use case is that i have 2 tags (futura & maxxio) and 'n' number of categories (2 pages: one for futura tagged product and ...
-1
votes
0answers
20 views

asp.net nopcommerce categories list

I have a question nopcommerce type category list ı can not can you help ı want my : test test > test 1 test > test 1 > test 2 ı can not do this as a picture http://hizliresim.com/aYdARg ...
-1
votes
0answers
14 views

Add category for a post

I have a problem adding a category in editing a normal post: Uncaught TypeError: Cannot read property 'responses' of undefined load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,...
-1
votes
1answer
54 views

Update function based on categorical values python

MatchId ExpectedGoals_Team1 ExpectedGoals_Team2 Timestamp Stages Home Away 0 698085 0.8585339288573895 1.4819072820614578 2016-08-13 11:30:00 0 [92, 112] ...
0
votes
1answer
23 views

Prestashop product in a specific category

I am using Prestashop 1.7 and I want to check if a product is in a specific category and change the image on the product.tpl {if $product->id_category_default == 10} is not working.
0
votes
0answers
53 views

Display sub category image in top menu - Magento2

I want to display sub-category images in the top menu. I used this but does not show it sub-category images. Create your module Create a folder in app/code/Vendor/NavigationMenu, where ‘vendor’ is ...
0
votes
1answer
27 views

Excel-Need Help Refining Categories

I am in need of an Excel function to help with the following. I have a list of products, that I have just finished assigning keywords to. I need to make them into filters on a website, but must put ...
0
votes
1answer
25 views

get_the_category() wordpress function stopped working after updating core version

As the title says - i have a single.php template which gets the category of the current post assigned. $cat_post = get_the_category(); That function returns the category which is assigned to the ...
0
votes
0answers
29 views

Why is each row converted into unique factor level?

I am helping my team understanding why our code is taking very long. Dataset used has 363,358 rows. We are using R6 to model our functions. After investigating the code, I found that this data.frame "...
0
votes
0answers
17 views

Where i can find list of categories and sub-categories of Flipkart?

I need a list of all categories from an E-commerce site Flipkart, I need it in JSON format. Is there any public API where we can directly get the list in JSON.
0
votes
0answers
8 views

Specific Product Categories on Product Category Pages

I want to put specific categories on the product category pages in Wordpress in the left woocommerce left sidebar. If doing so with PHP, please guide me step by step. As I don't have much knowledge ...
0
votes
0answers
45 views

Asp net mvc list by category

I am developing a point of sale project with asp.net&MVc. I list categories in tab menu and click on these categories. I want to list the products belonging to that category on the page as partial ...
0
votes
0answers
21 views

categorisation in excel

I want to create buckets with 2 variables,for eg. variable 1 product penetration and variable 2 is revenue. Now I want to create buckets like (high penetration high revenue,high penetration medium ...
1
vote
0answers
18 views

not work query only in single page (wordpress)

My codes work on home page. But they do not work on single pages. The reason is the following condition: cat = '. $categories All my code is: <div class="sidebar-widget"> &...
0
votes
0answers
29 views

The best way to attach labels to numeric variables in R

I need to read in a large dataset in fixed-column format. All variables are numeric and have their corresponding labels. For example, flavor will be read in as 1, 2, 3, 4, 5, ....Each has ...
0
votes
0answers
8 views

How to get all categories and give a path with slug name like homeurl() /currency-page/?category=slagname

How to get all categories in tag and give a link to them a spefic page and pass the slag name homeurl() /currency-page/?category=anyname(slagnameofctegories). $args = array( 'orderby' => '...
-2
votes
1answer
25 views

Modification of category template in WordPress using PHP

I am having some trouble building the category template i want. Here is an example of one of my categories: http://transcorrect.bg/pi-de/category/versicherungen/ I want this field http://prntscr.com/...
0
votes
0answers
50 views

WordPress Category Archives By Date

I have three CPT that share a category (slug=whats-new id=1373). I can get the archives page (either 'category-whats-new.php' or archive.php) to show EITHER only the posts from that category but every ...
0
votes
1answer
19 views

PHP slider based on current posts from active category in Wordpress

Hello fellow community, I'm pulling my hair off for the past 3 days. I tried many post / gallery / sliders plugins on Wordpress, and I cannot get the result I was looking for. Basicaly what I would ...