VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Acmiron on July 26, 2018, 13:50:59 PM

Title: Multilingual defaults to the home page
Post by: Acmiron on July 26, 2018, 13:50:59 PM
Hello,

Website with Joomla 3.7.3, a Gantry Template and languages English, German and Dutch,
PHP Version 7.1.19, MySQL version 5.7.22.
The website is functioning correctly.

Installed VirtueMart VM3.2.14 and the VirtueMart languages Dutch and German.
Created in VirtueMart for each language a Shop, a Manufacturer, a Manufacturer Category,
a Product Category and Products.

In VM configuration shop language is set to German and multilingual shop to German, Dutch and English.

Selecting in the website Shop, product is displayed. Selecting Product Details shows the details of the
selected product (link: ../en/component/virtuemart/piano-covers/imagine-detail?Itemid=136).

Selecting "Add To Cart" and "Show Cart" displays the Cart (../en/component/virtuemart/cart?Itemid=136)

Up to now, for the three languages everything is OK.
However, when selecting "Checkout Now", the Itemid changes to 0
(link: ../en/component/virtuemart/user/editaddresscartBT?Itemid=0) and the home page is displayed.

Manually changing in the link Itemid=0 to Itemid=136, the page with "your account details" is displayed.
After entering data and continue with register, the Itemid changes to 0 and the home page is displayed.

The same happens when selecting in the Cart one of the other options. The Itemid changes to 0.

Please be so kind and advice.
kind regards,
Title: Re: Multilingual defaults to the home page
Post by: Jörgen on July 26, 2018, 14:06:31 PM
Have You set landing page for Cart ? and user account?

Jörgen @ Kreativ Fotografi
Title: Re: Multilingual defaults to the home page
Post by: Acmiron on July 26, 2018, 15:16:17 PM
Thanks for replying,

The webpage contains for each language a menu item "Shop".
In VM configuration "Select the default template for your Shop" the template used in Joomla is selected.

The content of the Cart shows the correct data. When I continue by selecting "Check out now",
../en/component/virtuemart/cart?Itemid=136 changes to ../virtuemart/user/editaddresscartBT?Itemid=0
When I replace the itemid=0 to itemid=136 the page with "Your account details" appears with data to fill in.

For some reason, in the cart the itemid is set to 0 and defaults to the home page. Thus a user account is not created.
The only user is the administrator of the webpage.

Regards,
Title: Re: Multilingual defaults to the home page
Post by: Jörgen on July 26, 2018, 15:48:54 PM
Try protostar template. You should assign menu items to cart and user account
Jörgen @ Kreativ Fotografi
Title: Re: Multilingual defaults to the home page
Post by: Acmiron on July 26, 2018, 17:43:04 PM
I have assigned a menu item User for each language.
Your suggestion solved it.

Thank you,
regards