Questions tagged [visibility]

Question about visibility of product(s)

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Magento 2.4 modify search logic

At the moment I have products that have the visibility of "catalog & search" and of "search". When a user performs a search on the site I only want products that have a ...
user avatar
  • 2,429
0 votes
0 answers
25 views

Multistore configurable item still showing after status = "disabled" and visibility = "Not visible individually"

To start: "Display Out of Stock Products" is also set to "No". So that's not the problem. So i have a configurable item with two simple items. One of them is specifically for the ...
user avatar
1 vote
1 answer
189 views

Catalog Category permissions keeps on changing automatically in Magento 2.4.1 Enterprise Edition

We are using Magento 2.4.1 Enterprise Edition. Suddenly our built-in catalog category permissions keeps on changing automatically (category permissions are set to "Deny"). which caused PLP ...
user avatar
0 votes
1 answer
428 views

Hide simple product on product list page Magento 2

I have simple products and configurable products on my M2 and i would like to hide child of configurable on product list page but still getting them on the filters part. If i set 'Not visible ...
user avatar
  • 3
0 votes
1 answer
227 views

Magento 2 - display "Not display individually" product on listing page

I want to display "Not display individually" visibility product display on listing page. Please help and thanks in advance
user avatar
0 votes
0 answers
2k views

Magento 2 : ko observable variable checking in template file

I have created a custom payment method using knockout js. I want to display a form only for selecting a drop-down value "Add new card". I have created a KO variable and assign the value initially as ...
user avatar
0 votes
0 answers
25 views

ERP changes visibility status of products

We are facing a stupid problem. Our Magento 2 shop is connected to an external ERP system. Our ERP system sends back the status to the shop as it should, once the products are shipped and sets the ...
user avatar
  • 53
0 votes
2 answers
280 views

Magento 2 product visible on backend only

I have a few products that are mainly used for partner orders and should not be on visible on frontend. But visible on backend order creations! In other words an internal product. I'm only looking ...
user avatar
  • 294
1 vote
2 answers
762 views

Some added products in cross sells not visible in frontend Magento 2

I have added few products in cross-sells but some are visible and some are not visible in the UI(frontend). I referred to a Magento bug that only 2 items were visible in the backend https://github....
user avatar
  • 799
1 vote
0 answers
121 views

Products visibility and indexer

in magento 2 one of products wasn't visible on front-page. After running command line indexer:reindex product is showing. Why do I need run indexer:reindex ? In system -> index management already ...
user avatar
  • 121
0 votes
1 answer
215 views

Wishlist added products icon not active in Magento 2.3

Wishlist added products icon not active or color change in product detail page and listing. But added products are present in "MY WISH LIST" in Magento 2.3
user avatar
  • 1,372
0 votes
1 answer
505 views

Update product visibility to search only programmaticallly. $product->setVisibility(3) does not work, break the script

I have this script to update product attributes, everything else run fine until i added this line below of code to update visibility to search only. I know i can update it through catalog product grid,...
user avatar
0 votes
3 answers
307 views

Magento2.2: How to change the default functionality of search in visibility

I want to change the default functionality of search in visibility. When product Visibility is set to Search or Not Visible Individually it should not appear in the search dropdown, search results, or ...
user avatar
1 vote
0 answers
32 views

changed default store for website - now some products do not work properly anymore

Assume we have one website and we have two stores for that website: StoreA and StoreB, plus a store view for each store of course, StoreA_view and StoreB_view. The default store for the website was ...
user avatar
  • 648
3 votes
4 answers
6k views

M2 Importer: Value for 'visibility' attribute contains incorrect value

If the importer runs with cronjob I get always the same errors on all lines: Value for 'visibility' attribute contains incorrect value, see acceptable values on settings specified for Admin in ...
user avatar
  • 71
3 votes
0 answers
93 views

Magento hierarchical attributes

Does anyone know how to make product attributes visible only when they exist? Ex. you have a T-shirt, models are Spiderman and Thor (model attribute), and available on red, blue and green (color ...
user avatar
  • 31
0 votes
1 answer
2k views

Using Magento 2 Rest API to filter on product visibility

I want to retrieve only products that are listed as visible in both catalog and search, yet can't find any confirmed way to do this. The obvious solution I was hoping would work (shown below) ...
user avatar
0 votes
1 answer
48 views

What is the role of visibility filter in colections Magento 2?

I am getting Order Items, from order collection by Order ID but as from the attached screen shot (Order 15) I am getting one product data two times. Can any body explain the reason and what will be ...
user avatar
  • 1,521
0 votes
0 answers
36 views

Show product only if it's related

I need to hide a product from catalog and search. So on my product page in visibility I set No visible individually, but I need to show it if it is related to another product and this other product ...
user avatar
3 votes
0 answers
915 views

Magento 2 : Data binding in Payment Method Selection

I want to display a custom field in "cash on delivery" payment method. I have created a custom module for this. But the field displays in all payment methods. Here is my code html <div class="...
user avatar
1 vote
2 answers
2k views

Magento2 admin grid ui component form hide multiple fields based on php condition

I have so many fields in my admin grid form which made using UI component. I want to hide some of the fields using php condition. I know that it can done using DataProvider file and I also followed ...
user avatar
1 vote
1 answer
1k views

Magento 2 - How can I change product visibility value using plugin afterSave or beforeSave method?

I have created a plugin and I want to change product visibility value on product save but it's not working. ProductAfterSave.php namespace Vendor\Module\Plugin; class ProductAfterSave { public ...
user avatar
  • 109
2 votes
1 answer
1k views

Magento 2 - How to use plugin to change product visiblity after saving product from backend?

I am new in Magento 2 and I want to change product visibility after saving product from backend using plugin. For this I have created custom module and plugin, but I am not sure that we can achieve ...
user avatar
  • 109
0 votes
2 answers
4k views

Magento 2 Product Import Problem

I got an Error on Magento 2 Product Import - which says: Value for 'visibility' attribute contains incorrect value, see acceptable values on settings specified for Admin in row(s): 1 Invalid value in ...
user avatar
2 votes
2 answers
5k views

Update product visibility Magento2

I am creating a product programmatically, trying to set the visibility with below code $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('\...
user avatar
  • 1,719
0 votes
0 answers
182 views

How to control price visibility of product from Magento 2 admin panel?

I want to control the price visibility of products from admin panel. actually, I create an attribute price-control as a display on the following image. if price control set to yes, the price of the ...
user avatar
0 votes
1 answer
803 views

Magento 2 : How to get product attributes in my module block function which are visible on frontend?

Issue is I am getting all the attribute collection not the attributes which are visible on frontend I am unable to filter them as the data which is coming is from Table: eav_attribute from there we ...
user avatar
1 vote
1 answer
189 views

Magento 2 - product is showing via url, but it isn't appearing in the frontend

I'm having a problem with Magento 2, I've created a configurable product like how I do it every time. However, some products aren't showing in the frontend of the categories, If I try opening it up ...
user avatar
  • 11
3 votes
3 answers
2k views

Export simple product using script in magento2 [closed]

How we get simple product collection with visibility 4 (catalog/search) with script in Magento 2?
user avatar
  • 363
5 votes
3 answers
4k views

Magento 2: Hide tier price element

Custom theme using Magento 2.2.1 in developer mode, inheriting from the Magento/blank theme. When selecting an item from a sizing dropdown on a product page, created using a configurable product, an ...
user avatar
  • 654
11 votes
1 answer
1k views

How to override a static method in Magento2

Plugin Interceptors and overriding with preference does not work on static methods. Need to override getOptionArray method in Magento\Catalog\Model\Product\Visibility to return a custom visibility ...
user avatar
0 votes
1 answer
218 views

set out of stock configurable products visibility to search

A configurable product is out of stock when all its simple products are out of stock. I would like to set the visibility to search for all configurable products which are out of stock in bulk. Can ...
user avatar
0 votes
0 answers
35 views

Product not visible in list product and search

I have a strange problem. http://lady-wine.com/en/brunello-di-montalcino-castelgiocondo-marchesi-de.html This product is currently visible if I insert link directly but it's not visible with ...
user avatar
2 votes
1 answer
5k views

Get Visibility of product Magento 2

I want to know how to get visibility of product using Magento 2. I have a product that is set to "not visible individually" and want to remove it from a collection. I have tried below methods: $...
user avatar
  • 5,215