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

product_where with Typoscript #37

Open
webian opened this issue Sep 15, 2018 · 3 comments
Open

product_where with Typoscript #37

webian opened this issue Sep 15, 2018 · 3 comments
Labels

Comments

@webian
Copy link
Contributor

webian commented Sep 15, 2018

We can set product_where in BE (flexform) but, if I'm not wrong, we can't set it with Typoscript and it could be very useful.

By instance, using Typoscript, while showing the SINGLE view of a product (uid=123), could be useful to display also the other products (LIST) present in this category but not display the current product in this list (WHERE uid != 123)

@franzholz
Copy link
Owner

Yes, you have the filter setup which gives you many more possibilities with the support for regexp.

@webian
Copy link
Contributor Author

webian commented May 23, 2020

In this use case I need a product list just after the product detail that displays other products (except current one).

Unfortunately, with current tt_products filters, it's not possible to add a condition like uid != {GP:tt_products|product} to filter out current product because the TS parameter is not passed to stdWrap.

@franzholz
Copy link
Owner

For this use case there exists already the related and the accessory products lists.

And you can already use this setup:

plugin.tt_products.conf.tt_products.LISTRELATED.filter.where.field {
    uid NOT IN (123)
}

Maybe this setup does not work yet and needs improvement.
However it still would not help you, because the value of uid varies for each product.
Can the placeholder be used here? {GP:tt_products|product}

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

No branches or pull requests

2 participants