News:

Looking for documentation? Take a look on our wiki

Main Menu

forcing ItemId in search module

Started by herr.proof, July 23, 2013, 12:19:48 PM

Previous topic - Next topic

herr.proof

Hullo to everyone here!
I noticed search modules do not work in my site (do not ask why, I am perusing every topic in Virtuemart.net and even otherwhere as far as I can)

My site is a multi-language one

these are my credentials:

joomla 2.5.11
virtuemart 2.0.20b
virtuemart search within products, and all other modules, 2.0.18a (as per the alert suggesting NOT to update VM if using it in multilanguage site )

Unfortunately I have not the permission to give out urls or whatever before going online (a pity, I know it, but I have no word on this)

Here is my question:


I created 4 search modules as each one has to work proprerly in the right (one) language...

Could you help me to alter a search module in order to force it to build urls with a predetermined itemid:

exemple:

the search module in the main italian page should be forced to build urls using ITEMID 145

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=4830&virtuemart_category_id=85&Itemid=145&lang=it

instead of

index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=4830&virtuemart_category_id=85&lang=it

this last one leads the system to show the right language but in the generic, all, whatever, language (wrong modules, wrong menu [mainmenu_all] , etc)

***
this should be done with all the 4 languages the shop is meant to work.


Thank you in advance for any help!

Maxim Pishnyak

Quote from: herr.proof on July 23, 2013, 12:19:48 PM
Unfortunately I have not the permission to give out urls or whatever before going online (a pity, I know it, but I have no word on this)
Available options still exists for cases like yours:
1. Turn off your web site frontend and publish here access to the frontend login box. Also block web site from indexing by web search crawlers with robots.txt if you wish.
2. Create copy of your web shop only for solving this issue. Cut everything, except couple demo products/categories. You could even use standard beez5 joomla template for solving phase.
3. Finally you could transfer your web site to a free shared hosting and post here link to your project.
Quote from: herr.proof on July 23, 2013, 12:19:48 PM
Could you help me to alter a search module in order to force it to build urls with a predetermined itemid:
index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=4830&virtuemart_category_id=85&Itemid=145&lang=it
this should be done with all the 4 languages the shop is meant to work.
Quote from: jjk on July 09, 2013, 22:06:35 PM
Somehow you seem to have messed up your multilanguage category and multilanguage menu configuration. If you turn off SEF urls for a while, it might be easier for us too see what you made wrong.

A normal non-SEF url to a VM2 category looks like this:
http://proba.hermex.hu/index.php?option=com_virtuemart&view=category&virtuemart_category_id=6&Itemid=127&lang=en
Also see here:
http://forum.virtuemart.net/index.php?topic=116282.msg391928#msg391928

Did you follow this tutorial to check your settings? http://docs.virtuemart.net/tutorials/36-multilingual-store/99-multilanguage-setup.html

BTW - I've also noticed that you have 7 categories in your menu, but 8 categories in your category browse page. So apparently one menu item is missing. This can cause malfunctions in the Joomla/VM2 routers (the code which produces the SEF urls).
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

herr.proof

Quote from: Maxim Pishnyak on July 23, 2013, 16:09:58 PM
Available options still exists for cases like yours:

thankyou, To me it's kinda over-tech, I'm a humble newbie...
I'll check it out with those in higher grounds  ;)  [whenever in the future they'll be available, I fear]

Quote from: jjk on July 09, 2013, 22:06:35 PM
Somehow you seem to have messed up your multilanguage category and multilanguage menu configuration. If you turn off SEF urls for a while, it might be easier for us too see what you made wrong.
[/quote]

with sef:
    index.php/it/component/virtuemart/view/productdetails/virtuemart_product_id/4830/virtuemart_category_id/85
instead of the rightful
    index.php/it/menu-shop-ita/view/productdetails/virtuemart_product_id/4830/virtuemart_category_id/85

mind it, the same is valid starting from other language search modules: search results get the menu-all landscape instead of the language-related one.

multilang settings?
    ... I jump from one language to another seamlessly by means of language selectors (obviously changing lang within virtuemart shop jumps me up to main page, but that's standard, as far as I know)
    ... Multilang status component gives out green lights, notifying
         
Quote
**published language modules 4
**published predefined homepages 5 (including 'All' language)

I hunted down errors in id,s but double-checking them I can say
1) each and every product has its traduction in the 4 languages, has a unique id, each traduction a unique alias.
2) the same for each and every category.

  ...  ??? ...

Maxim Pishnyak

Bored a bit to type so much?

Then choose these over-tech options - bring your web shop in real web environment now.

Without link/screenshots it's terrible hard to help.

At least I hope that you made proper links to VM in all languages.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart