Author Topic: create page based on filtering url  (Read 1140 times)

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #15 on: April 06, 2021, 12:35:59 pm »
Quote
If you have access to Regularlabs, we can join forces and work on it together.

Why do I have to feel that the Czechs are a nation that always pisses everything off, just to gain an advantage.
I'm not like that and I really appreciate Peter for what he does for Joomla. By the way, in my opinion, he belongs to the top who produces excellent products and I would have to be ashamed if I tried not to pay him for a license, because I know that selling licenses never, really never pays for the entire application development and tried to ask someone completely foreign if they would he did not disclose the license to me.

But as I wrote, I keep my fingers crossed, even though I think mine.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

2cool

  • Jr. Member
  • **
  • Posts: 268
Re: create page based on filtering url
« Reply #16 on: April 07, 2021, 12:17:58 pm »
Hmmm still not sure how this should work.

I have a filter (customfieldsforall) called color with options like; white, black, etc.
How can I create custom pages for each color?
As I can see while hovering over the filter options each color has it's own url.
But I can't figure out how to create this into seperat pages with title and description.

Thanks,
Pas

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #17 on: April 07, 2021, 12:34:55 pm »
send your website link, I check
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

2cool

  • Jr. Member
  • **
  • Posts: 268
Re: create page based on filtering url
« Reply #18 on: April 07, 2021, 14:25:31 pm »
I have the site local.
But it's the same as https://demo.breakdesigns.net/apparel/t-shirts/men-s-sport-t-shirt-detail
With url's like in color filter.
Blue showing url: https://demo.breakdesigns.net/results/t-shirts/?custom_f_4[0]=313737

Hope you can explain how to create this.

Regards,
Pas
 

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #19 on: April 07, 2021, 14:50:27 pm »
great, i like talk about example

So, this URL == https://demo.breakdesigns.net/results/t-shirts/?custom_f_4[0]=313737
You can put inside httacess and create your custom redirect == etc: https://demo.breakdesigns.net/results/t-shirts/blue

So, the title is from category name == T-Shirt - OK
Description (now not viible) will be too from category T-Shirt Description - you have to change in view for CF result or in category setup or CF setup

Is this solutions what do you need or other? :)

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

2cool

  • Jr. Member
  • **
  • Posts: 268
Re: create page based on filtering url
« Reply #20 on: April 07, 2021, 19:09:56 pm »
Yes, now I know this should work, Thanks!

So I create a new item in joomla menu 'blue' selecting virtuemart category view.
In vm I also create a category 'blue' with title and description
In htaccess I use: Redirect /results/?custom_f_31[0]=313435 /colors/blue

And also the same for other colors.
Since I work local would this redirect also work? before I go nuts ;)

Regards,
Pas


pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #21 on: April 07, 2021, 21:21:38 pm »
completely wrong :)

ok, I interrupt watching Champions League and try self
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #22 on: April 08, 2021, 00:44:34 am »
1. Where do you want use filter for color? == in which category?
2. You don't need create menu item - only if you want change title
3. You don't need create VM category - definitelly
4. You need only httacess

I have these:

#links to category
RewriteRule ^obchod/kola-a-elektrokola/nejnovejsi https://www.kolo-park.cz/obchod/kola-a-elektrokola/radit_podle,datum_vytvoreni?keyword= [L,R=301]
RewriteRule ^obchod/kola-a-elektrokola/elektrokola/nejnovejsi https://www.kolo-park.cz/obchod/kola-a-elektrokola/elektrokola/radit_podle,datum_vytvoreni?keyword= [L,R=301]
RewriteRule ^obchod/komponenty/nejnovejsi https://www.kolo-park.cz/obchod/komponenty/radit_podle,datum_vytvoreni?keyword= [L,R=301]
RewriteRule ^obchod/prislusenstvi-1/nejnovejsi https://www.kolo-park.cz/obchod/prislusenstvi-1/radit_podle,datum_vytvoreni?keyword= [L,R=301]
RewriteRule ^obchod/obleceni-1/nejnovejsi https://www.kolo-park.cz/obchod/obleceni-1/radit_podle,datum_vytvoreni?keyword= [L,R=301]
RewriteRule ^obchod/vsechny-produkty/nejnovejsi https://www.kolo-park.cz/obchod/radit_podle,datum_vytvoreni?keyword= [L,R=301]

You have to do it filter and result URL you have to put inside httacess.
Description and title is from category, which you filtering - this is basic function CF

Example:

https://demo.breakdesigns.net/results/t-shirts/?custom_f_4[0]=313736

Then you see - title is from category T-shirt, isn't it?
if you want description too - got to override view and add or go to setup CF filtering and setup - I don't know where is right option.
(or you can create or use own module VM Category header for showing information outside template view)

If you need this URL:

https://demo.breakdesigns.net/results/t-shirts/red

then put inside httacess
and of course you can create menu as custom URL: https://demo.breakdesigns.net/results/t-shirts/red

If you klik on this link, then you see - URL changed to https://demo.breakdesigns.net/results/t-shirts/?custom_f_4[0]=313736 and you see right result.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

2cool

  • Jr. Member
  • **
  • Posts: 268
Re: create page based on filtering url
« Reply #23 on: April 08, 2021, 13:51:59 pm »
Hope you had a good time watching PSG ;)

1. Where do you want use filter for color? == in which category? filter options will be almost on all pages (works fine with many other filter options)
2. You don't need create menu item - only if you want change title - I want to create separate pages for each filter color and add title and description for better seo.
So I can create a custom title from a new menu, and description from category? should I create new joomla or virtuemart category? I would like a description for each color (red, white, etc)


3. You don't need create VM category - definitelly - check ;)
4. You need only httacess - check ;) this is indeed different from what I suggested.

Hope this makes sense...

Thanks and regards,
Pas

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #24 on: April 08, 2021, 14:10:39 pm »
Oh yes, if you filtering basic VM category (ID=0) and you need custom description for every type of filters, I understand - that is problem

You need workaround:
- for every filter result you need create menu item type System / URL and setup title
- for every menu item you need fill meta description and this meta description you need load in CF Result page view - little custom php work

Menu items you can setup as submenu for menu Search result with alias as name of filter == then URL will be www.shop/result/red

But this url not exist (only virtueal), because in setup menu item you put URL with "?name-of-customfield" and maybe you have to add this URL in httacess to redirect (as I wrote) - you have to check and test.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

2cool

  • Jr. Member
  • **
  • Posts: 268
Re: create page based on filtering url
« Reply #25 on: April 08, 2021, 16:17:05 pm »
Thanks,

I'll try this setup as you described and let you know.
While testing local would this be a problem with the redirects?
- for every menu item you need fill meta description and this meta description you need load in CF Result page view - little custom php work - how and where should this be done?

Regards,
Pas

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1137
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: create page based on filtering url
« Reply #26 on: April 08, 2021, 17:51:32 pm »
> for every menu item you need fill meta description and this meta description you need load in CF Result page view - little custom php work - how and where should this be done?

yep, custom developing in PHP, but sorry I never send PHP custom develop in any forum,

you have to
- wait if other send you as free
- hire some PHP developer
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates