Disable price filter on category view Magento 2 - magento2

I'm new to magento and keep learning :)
How can I disable the price filter to show on category view?

You can disable price filter by setting up "use in layered navigation" to "NO" for price attribute.
Login to admin panel -> Store -> Attributes (under product section) -> search for price attribute code and go to edit mode -> go to storefront properties -> select "No" value for Use in Layered Navigation. -> click on save attribute.
then clear cache and check on category page.
Hope it would be right answer!

to disable price filter set "use in layered navigation" to "NO" for price attribute in storefront properties.
go to backoffice -> Store -> Attributes -> search for price attribute click edit -> click storefront properties -> select "No" value for Use in Layered Navigation. -> click on save attribute.
clear cache

Related

Magento 2 Category page toolbar showing wrong item count

Magento version 2.4.5
Can anyone help to fix items count in category page toolbar if magento 2 catalog setting out of stock enabled?
If I disable to show out of stock on category page then item count working fine.
Out of stock setting -> Admin -> Store -> Config -> Catalog -> Inventory -> Out of stock -> Yes
To fix this, you need to override this magento file.
/vendor/magento/module-inventory-catalog/Plugin/Catalog/Block/ProductList/UpdateToolbarCount.php
Override in your extension di.xml
<type name="Magento\Catalog\Block\Product\ProductList\Toolbar"><plugin name="update_toolbar_count" disabled="true"/></type>

Removing regions and items apex

how to remove regions and items in apex ? I want to remove list,datepicker,clorpicker and so many other regions and items in the backend through out my application
Open the region or item, for example by double-clicking it.
In the upper right corner you should be able to see a button "Delete".
Use it to delete the currently open region, item, whatever you have.
There are few ways you can hide your region/item at application level:
Go to Region/item properties -> Server-side Condition -> Never. That will hide the region/item for all your developers at application level (even for you.).
Region/item properties -> Custom Attributes -> style="display:none;".
(For item specific only) Item->Identification->Hidden. Although it will reset all your settings for your list and datepicker.

WCM - How to display content item elements from a Menu Component pointing elsewhere?

In IBM's Web Content Manager I have a page in the path:
TopArea > MainContent > SiteArea > content
which uses a Menu Component to pull items from a slightly different path, such as
TopArea > OtherContent > OtherSiteArea > othercontent
So, in the Menu Component, when I use [Property], [Placeholder], or [Element] tags, it pulls the data from othercontent. However, I need to use some kind of tag to pull data from the page that the menu component is being displayed on content.
Anyone know how to do this?
Here is a more specific example:
othercontent has Name: 3ee5fc.
content has Name: Home Page.
When using [Property context="autofill" type="content" field="name"] it displays 3ee5fc.
What kind of tag could I use (or what could I do) so that it would display Home Page instead?
Please note that there are multiple content items that are using this menu component, so I can't hard code (select) the content item, I need a tag that will find it based on what item is calling the menu component.
You need to change the context attribute. "autofill" will display from the items the menu has selected, where "current" will display the field from the item the menu is placed in.

Add sort by category in product listing Magento

I've tried to find a possible solution for this but without any result I need to display a sort by category field in the default Magento toolbar in product listing page. Does anyone know how to add this feature without messing up my core files?
What you looking for is something Magento calls Layered Navigation.
First you must make a parant category Apparel and one (ore more) child categories, for example:
- shirts
- shoes
- hoodies
Then for all the child categories go to the admin back-end and navigate to:
Catalog -> Manage Categories -> Display settings.
Now make sure you set the field "Is Anchor" to yes.
Apply this setting for all the children categories.
After these steps your front-end product-listing should look like:
http://demo.magentocommerce.com/catalog/category/view/s/apparel/id/18/
At the left sidebar you can see the categories that are children of the parent category Apparel. Of course you can use your own names for the diffrent categories.
Cheers.

How to add button to settings.bundle?

I'm developing an iPhone app, and by default user keeps logged in. If he wants to logout, he should open the Settings and click a "Logout" button which would erase his data and ask for a login the next time app is opened. How do I add a button like this? As in twitter settings
As CodaFi said it is not possible. However it could be a good workaround to use a toggle switch for "keep me logged in". And when the user turn it off you can show the login screen on next launch.
Unfortunately, this is not possible using public APIs. Bear in mind that Apple reserves many, many undocumented (and exceedingly cool) features for it and it's partner's applications. You are limited to only the following:
Text field: The text field type displays a title (optional) and an
editable text field. You can use this type for preferences that
require the user to specify a custom string value. The key for this
type is PSTextFieldSpecifier.
Title: The title type displays a
read-only string value. You can use this type to display read-only
preference values. (If the preference contains cryptic or nonintuitive
values, this type lets you map the possible values to custom strings.)
The key for this type is PSTitleValueSpecifier.
Toggle switch: The
toggle switch type displays an ON/OFF toggle button. You can use this
type to configure a preference that can have only one of two values.
Although you typically use this type to represent preferences
containing Boolean values, you can also use it with preferences
containing non-Boolean values. The key for this type is
PSToggleSwitchSpecifier.
Slider: The slider type displays a slider
control. You can use this type for a preference that represents a
range of values. The value for this type is a real number whose
minimum and maximum value you specify. The key for this type is
PSSliderSpecifier.
Multivalue: The multivalue type lets the user select
one value from a list of values. You can use this type for a
preference that supports a set of mutually exclusive values. The
values can be of any type. The key for this type is
PSMultiValueSpecifier.
Group: The group type is for organizing groups
of preferences on a single page. The group type does not represent a
configurable preference. It simply contains a title string that is
displayed immediately before one or more configurable preferences. The
key for this type is PSGroupSpecifier.
Child: pane The child pane type
lets the user navigate to a new page of preferences. You use this type
to implement hierarchical preferences. For more information on how you
configure and use this preference type, see “Hierarchical
Preferences.” The key for this type is PSChildPaneSpecifier.
If you don't mind using the 3rd-party add-on "InAppSettingsKit" for your app's Settings, then it looks they would allow you to do what you need. I'm currently studying up on this myself, but from a quick scan through their documentation it looks like they would allow you to add buttons as well as completely custom child pane views: http://www.inappsettingskit.com/
On that page, study the sections "IASKButtonSpecifier" and "Custom Viewcontrollers".
I'll post a follow up here to let you know how this worked out for me. I'm using the InAppSettingsKit already, and love it so far.
Download the code and sample app from Github: https://github.com/futuretap/InAppSettingsKit
Then open the InAppSettingsKit.xcworkspace in your XCode and study how they implemented the various different types of Settings entries. They definitely support what you are looking for. It's really quite impressive.
Erik