Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visibility]

Question about visibility of product(s)

0
votes
3answers
38 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 ...
1
vote
0answers
26 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 ...
1
vote
2answers
37 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 ...
2
votes
0answers
19 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 ...
0
votes
1answer
263 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) ...
0
votes
0answers
16 views

magento 2.2.6 Simple Product will be output when searching on the category page

magento 2.2.6 Simple Product will be output when searching on the category page. If you solve the same problem, please tell me how to do it.
0
votes
1answer
35 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 ...
0
votes
0answers
24 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 ...
3
votes
0answers
117 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="...
0
votes
1answer
592 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 ...
0
votes
1answer
81 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 ...
2
votes
1answer
258 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 ...
0
votes
1answer
958 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 ...
2
votes
2answers
807 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('\...
0
votes
0answers
84 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 ...
0
votes
1answer
288 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 ...
1
vote
1answer
79 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 ...
2
votes
3answers
563 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?
5
votes
3answers
2k 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 ...
11
votes
0answers
338 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 ...
0
votes
1answer
165 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
1k 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: $...