Author Topic: Eliminate [component/virtuemart] - It shows on URL if using Manufactures on Menu  (Read 239 times)

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
LIVE SITE IS HERE FOR REFERENCE: http://lposselt.com/
JOOMLA VERSION 3.6.5
VIRTUEMART VERSION 3.2.1
SETUP TYPE IS FOR 2 MANUFACTURES.
EACH MANUFACTURER HAS ITS OWN PRODUCTS AND STORE
I DON'T HAVE EXTRA 3RD PARTY SEF EXTENSIONS

QUICK EXPLANATION

If I select inside the Joomla Menu the Virtuemart Manufacturer together with the Virtuemart Category I get this URL.

SEE THIS IMAGE - http://lposselt.com/6.jpg

Code: [Select]
http://lposselt.com/component/virtuemart/shirt-a?Itemid=118


If I only select Virtuemart Category I get this URL.

SEE THIS IMAGE - http://lposselt.com/5.jpg

Code: [Select]
http://lposselt.com/manufacturer-a/shirt-a


How I can eliminate component/virtuemart/ from URL and show instead manufacturer a or b depending on which menu the user is visiting?

Like this:

Code: [Select]
http://lposselt.com/manufacturer-a/shirt-a
Code: [Select]
http://lposselt.com/manufacturer-b/shirt-b


**************************************************

LONG EXPLANATION

I have two products that are inside one product category called "SHIRTS"

1) Product - "Shirt 1A"
2) Product - "Shirt 1B"

SEE THIS IMAGE - http://lposselt.com/1.jpg

**************************************************

And I also have two manufactures

1) "Manufacturer A"
2) "Manufacturer B"

SEE THIS IMAGE - http://lposselt.com/2.jpg

**************************************************

"Manufacturer A" will only sell "Shirt 1A"

and

"Manufacturer B" will only sell "Shirt 1B"

**************************************************

My plan was create one Category Virtuemart Layout for each Manufacturer.

So I can display only items for each manufacturer individually on different menus, like having different stores.

In this way when user visit manufacturers menu, they will only see items related to that manufacturer and only order from them

SEE THSES IMAGES
- http://lposselt.com/3.jpg
- http://lposselt.com/4.jpg

**************************************************

But here is the problem.

If I create a Joomla Category Virtuemart Menu with the category "SHIRTS" and no selecting any manufacturer.

I get the following URLS

Code: [Select]
http://lposselt.com/manufacturer-a/shirt-a
SEE THIS IMAGE - http://lposselt.com/5.jpg

**************************************************

However if I select the manufacturer I get this
Code: [Select]
http://lposselt.com/component/virtuemart/shirt-a?Itemid=118
SEE THIS IMAGE - http://lposselt.com/6.jpg

**************************************************

How I can eliminate component/virtuemart/ from URL and show instead manufacturer a or b depending on which menu the user is visiting?

Like this:

Code: [Select]
http://lposselt.com/manufacturer-a/shirt-a
Code: [Select]
http://lposselt.com/manufacturer-b/shirt-b

diri

  • Beginner
  • *
  • Posts: 27
Joomla 3.6.5, VM 3.2.1

Similar applies to using manufacturer categories and mod_manufacturer.

Using VM as startpage (home) links look like:
/manufacturers/manufacturer/manufname

Using Joomla as home:
/shop/manufacturers/manufacturer/manufname

Clicking "Show all products of manufacturer" shows (VM is home):
/manufname/manufacturer/manufname

When Joomla is home:
/shop//manufname/manufacturer/manufname

Remark:
manufacturer is replaced in dependancy of language file.

Something has been changed in router to cause this behaviour. Older "hacks" don't solve the problem.

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Seems like nobody will be able to help on this.

Anyone?