Questions tagged [visibility]

Question about visibility of product(s)

Filter by
Sorted by
Tagged with
0
votes
2answers
72 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....
0
votes
0answers
16 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 ...
0
votes
1answer
42 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
0
votes
1answer
27 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,...
0
votes
3answers
41 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
27 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
3answers
174 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
35 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
486 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
37 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
32 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
179 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
831 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 ...
1
vote
1answer
213 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
357 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
2answers
2k 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
1k 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
105 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
334 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
100 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
751 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
1answer
418 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
181 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
2k 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: $...