VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: m.davide82 on March 20, 2020, 15:10:38 PM

Title: Showing breadcrumbs following the category structure
Post by: m.davide82 on March 20, 2020, 15:10:38 PM
Hello,

in order to have a clean breadcrumb, without any problems, is there any way to show the breadcrumbs following the category structure instead of the menu structure?


Thanks a lot.
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on March 20, 2020, 17:53:59 PM
Hi,

Yes, there is a way to display breadcrumbs without problems and by using the category structure.
Where does it not work?
Title: Re: Showing breadcrumbs following the category structure
Post by: Studio 42 on March 20, 2020, 21:25:45 PM
If you setup corretly your Joomla menus, the category and breadcrumb can have same structure.
Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on March 21, 2020, 12:56:55 PM
Quote from: pinochico on March 20, 2020, 17:53:59 PM
Hi,

Yes, there is a way to display breadcrumbs without problems and by using the category structure.
Where does it not work?

Hi Pinochico,

ok, how can I show it following the vm category structure?

Quote from: Studio 42 on March 20, 2020, 21:25:45 PM
If you setup corretly your Joomla menus, the category and breadcrumb can have same structure.


Hi Studio 42,

I know, but if I need to have custom urls, I need to create menu items in a differente manner, not the same of the breadcrumbs.

Example:
School > Trolley
Url will be: school/trolley

If I would like to have only trolley in url, I need to create an hidden menu on the first level and after create an alias in the second level of the main menu.
Doing this job, the breadcrumb will be just Trolley and not School > Trolley.


Thanks a lot,
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: Studio 42 on March 21, 2020, 13:47:05 PM
If you want remove the first level, then you have of course to use alias in main menu and real category link in a hidden menu.
But this is only the case for the first level of categories.
Another solutions, is to create an override of the breadcrumb module, or create your own breadcrumb module. I have already code similar request for my customer(eg if a breadcrumb item have no link this need to be removed for google snippets since last year)
The logic is to verify if you have in request option=com_virtuemart. If it's the case, then you write your own breadcrumb links.
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on March 21, 2020, 19:52:30 PM
Hi,

as wrote Patrick:

- use override of the breadcrumb module, or create your own breadcrumb module (don't forget for new google rich snippets)
- use plugin for Virtuemart Rich Snippets (breadrumb is part of plugin) - https://www.minijoomla.org/extensions/google/rich-snippets-for-virtuemart
Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on March 23, 2020, 11:04:08 AM
Hi Guys,

I know that I need to do an override, but I don't know how to get the right values! :)

@Pinochico, my template supports the rich snippets, if I buy that plugin, can I disable the rich snippets of your plugin and use it only for breadcrumbs?

Thanks.
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: Studio 42 on March 23, 2020, 17:29:37 PM
The code is too long to write. So i cannot write it for you for free.
Contact me, if you need, it should be done in an hour.
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on March 26, 2020, 12:52:05 PM
Quote@Pinochico, my template supports the rich snippets, if I buy that plugin, can I disable the rich snippets of your plugin and use it only for breadcrumbs?

Yes
Are You looking on product images?
https://www.minijoomla.org/images/stories/virtuemart/product/rich_snippets-setup-02.jpg
https://www.minijoomla.org/images/stories/virtuemart/product/rich_snippets-setup-03.jpg
Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on March 27, 2020, 14:53:48 PM
Hi pinochico,

yes, I saw it, but to be sure it's better to ask.

So you can confirm that the breadcrumbs is made from Virtuemart categories and not from the menu structure?

Thanks.
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on March 27, 2020, 15:34:54 PM
Yes,

for breadcrumbs we use category strom (function getPathway), not Joomla menu list
Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on March 27, 2020, 15:36:05 PM
Ok, thanks.


Regards,
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on April 18, 2020, 12:24:03 PM
Quote from: pinochico on March 27, 2020, 15:34:54 PM
Yes,

for breadcrumbs we use category strom (function getPathway), not Joomla menu list

Pinochico, I tried to buy your extensions but GOPay doesn't accept my credit cards, why? I haven't problems with them.
Tried to contact you via form, but no captcha and it doesn't work.

Thanks.
Title: Re: Showing breadcrumbs following the category structure
Post by: Jörgen on April 18, 2020, 13:54:56 PM
@Pinochico

Contact form at minijoomla:

QuoteError
Captcha plugin not set or not found. Please contact a site administrator.

Jörgen @ Kreativ Fotografi
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on April 18, 2020, 18:33:27 PM
davide82:

Sorry, today I created plugin for trusted Shops for virtueMart and I'm busy, pls try send me email to

rudolf.balas@minion.cz

I will fix contact form and look insode gopay log, why you can't buy with creditcards
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on April 18, 2020, 18:48:18 PM
Davide82:

Thanks for debug :)
I setup Contact Form with OPC captcha, and now is ok.

But for Gopay payment I don't see any info in log and created order in VM too. If you created order with gopay, then order must be created in VM before redirect to gopay.
Are you created today?

The last order is from 14.4 with gopay payment.

Title: Re: Showing breadcrumbs following the category structure
Post by: m.davide82 on April 19, 2020, 22:56:53 PM
Hi Pinochico,

I just wrote you an email.


Thanks.
Davide
Title: Re: Showing breadcrumbs following the category structure
Post by: pinochico on April 20, 2020, 07:56:22 AM
Hi Davede,

I send email for you with info about your credit cards, than you use on eshop minijoomla.org.

Rudolf