Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectively remove price details from product lists #224

Open
OvalMedia opened this issue Oct 2, 2024 · 1 comment
Open

Selectively remove price details from product lists #224

OvalMedia opened this issue Oct 2, 2024 · 1 comment

Comments

@OvalMedia
Copy link

Sorry for double posting but I have no idea how to reopen an old closed issue: #111

Removing the block magesetup.product.price.details removes the price block for an entire page/handle.

I would like to very selectively remove it from product lists. Example: currently I am working on a product view page and the main product should have those price details. But the up-/crosssell product list below should not display that block. To this day I was using regex to remove them from the rendered html but that feels very quirky and unreliable.

Is there a way? If not, could you add it?

Thx.

@sprankhub
Copy link
Member

I think this is a valid feature request and a common request. I think we should have a new config field similar to this:

<group id="frontend">
<field id="display_delivery_time" translate="label" type="select" sortOrder="200" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Display Delivery Time on Product Listing</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>

Then we can check this new config in https://github.com/firegento/firegento-magesetup2/blob/a0f36405e236d2238e40e812234bd38244f9a31e/Plugin/Pricing/AddPriceDetailsPlugin.php.

Having said that, I have no idea if and when someone will pick this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants