News:

Looking for documentation? Take a look on our wiki

Main Menu

Happy new year and a question for VM4 !!

Started by chabi01, January 02, 2023, 10:00:46 AM

Previous topic - Next topic

chabi01

Hi everybody,
First, happy new year to everybody !!!

This said, I have a question for the last VM version on J4.
I cant find the link to create in the menu to get the home page of the shop.
Before, I used to create a link to category without any category name or the simple link "Shop home" in J3 but I cant find it anymore.

Moreover, when I create a link to "COM_VIRTUEMART_VIRTUEMART_VIEW_DEFAULT_TITLE " (not translated in the menu creation), I get an error when I try to access to this link...

Best :)
Xavier

chabi01

By the way, is this VM4 usable for production ??

jenkinhill

Menu link for VM home is the same as it has been for a long time...  Virtuemart > category layout > top level category.

As far as I'm concerned it is suitable for live shops (although I won't be using J4 yet) - as long as any other extensions you use are also compatible. Report if you find any bugs.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

visitmontaione

Quote from: chabi01 on January 02, 2023, 10:02:00 AM
By the way, is this VM4 usable for production ??

I'am using VM VirtueMart 4.0.12 10777 on Joomla 4.2.6 and from my side, I can say that it is stable.

chabi01

Hi everybody,
I have lost this thread and had to search to find my thread again :)

Ok,
Let's see what I get.
On a very last VM (4.0.12.10777 + last Joomla4), I have nothing more than this (fresh test).

If I go in the menu, I can see if I had a link for Virtuemart all these links.
First, note there is link in french and there is missing translation no ? :
(copy paste of the list shown) :
**************************
Affichage des détails d'un fabricant
Affiche les détails d'un fabricant
Affichage des détails d'un produit
Affiche un produit
Affiche le contact d'un vendeur
Affiche la page contact d'un vendeur
Affiche les détails d'un vendeur
Affiche les détails d'un vendeur
Affiche les fabricants
Affiche la liste des fabricants
Affiche les vendeurs
Affiche les vendeurs de VirtueMart
Affiche une catégorie
Affiche une catégorie
Afficher les CGV d'un vendeur
Affiche les Conditions Générales de Vente d'un vendeur
COM_VIRTUEMART_CART_VIEW_DEFAULT_TITLE
COM_VIRTUEMART_CART_VIEW_DEFAULT_DESC
COM_VIRTUEMART_MANAGE_PRODUCTS_TITLE
COM_VIRTUEMART_MANAGE_PRODUCTS_DESC
COM_VIRTUEMART_VIRTUEMART_VIEW_DEFAULT_TITLE
COM_VIRTUEMART_VIRTUEMART_VIEW_DEFAULT_TITLE_DESC
Commande complétée (Créer un item de menu caché.)
Pour le suivi ou pour placer des modules sur la page de commandes terminées.
Gestion du compte
Affiche la gestion du compte-client
Liste les commandes
Liste les commandes

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

Ok, so far, it should be "COM_VIRTUEMART_VIRTUEMART_VIEW_DEFAULT_TITLE", so I add this in my menu and I get as menu : "Home page for Virtuemart (Page d'accueil de Virtuemart) and as url, I have : index.php?option=com_virtuemart&view=virtuemart&manage=1

Now, If I click on this link, I get an error.

Ok, now, If I create a menu element "URL" and put as url : "/index.php?option=com_virtuemart&view=virtuemart", I then dont get any error.

You can check this on this test site : https://dev2022.asiashop-france.fr/

Link "boutique" is my url entry in the menu
Link "BoutiqueTMP" is the Virtuemart homepage link.

What is then wrong ?

Thanks for your help :)
Xavier




chabi01

For the record, If i use category -> first category where all the other categories are nested (BoutiqueTMP2 in the menu), I can see the page correctly, but my question is for the "homepage link available in the virtuemart list of links creation"....

Thanks :)
Xavier

chabi01

I also get an error in my email for the offending link.
I give you some informations copied here, maybe it can help :


***************************************
I also get an error in my email for the offending link.
I give you some informations copied here :

A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: InvalidArgumentException
File: /mytestsite/libraries/vendor/joomla/application/src/AbstractWebApplication.php
Line: 507
Message: You have not supplied a valid HTTP status code

#0 /mytestsite/libraries/src/Application/CMSApplication.php(975): Joomla\Application\AbstractWebApplication->redirect()
#1 /mytestsite/components/com_virtuemart/virtuemart.php(85): Joomla\CMS\Application\CMSApplication->redirect()
#2 /mytestsite/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/asiamark/...')
#3 /mytestsite/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
#4 /mytestsite/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#5 /mytestsite/libraries/src/Application/SiteApplication.php(200): Joomla\CMS\Component\ComponentHelper::renderComponent()
#6 /mytestsite/libraries/src/Application/SiteApplication.php(241): Joomla\CMS\Application\SiteApplication->dispatch()
#7 /mytestsite/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\SiteApplication->doExecute()
#8 /mytestsite/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#9 /mytestsite/index.php(32): require_once('/home/asiamark/...')
#10 {main}

Request information
GET variables

Array
(
    [option] => com_virtuemart
    [view] => category
    [virtuemart_category_id] => 0
    [Itemid] => 210
)

POST variables

Array
(
)

COOKIE variables

Array
(
    not usefull here !
)

REQUEST variables

Array
(
    [option] => com_virtuemart
    [view] => category
    [virtuemart_category_id] => 0
    [Itemid] => 210
    [manage] => 0
)

SERVER variables

Array
(
    [PATH] => /usr/local/bin:/bin:/usr/bin
    [HTTP_ACCEPT] => */*
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => fr-FR,fr;q=0.8,en-US;q=0.5,en;q=0.3
    [HTTP_COOKIE] => not usefull here
    [HTTP_HOST] => dev2022.asiashop-france.fr
    [HTTP_PRAGMA] => no-cache
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
    [HTTP_CACHE_CONTROL] => no-cache
    [HTTP_PRIORITY] => u=4
    [HTTP_ALT_USED] => dev2022.asiashop-france.fr
    [HTTP_SEC_FETCH_DEST] => empty
    [HTTP_SEC_FETCH_MODE] => cors
    [HTTP_SEC_FETCH_SITE] => same-origin
    [DOCUMENT_ROOT] => /mytestsite
    [REMOTE_ADDR] => my ip address !
    [REMOTE_PORT] => 59851
    [SERVER_ADDR] => the server Ip
    [SERVER_NAME] => dev2022.asiashop-france.fr
    [SERVER_ADMIN] => xxxxxxx@toto.fr
    [SERVER_PORT] => 443
    [REQUEST_SCHEME] => https
    [REQUEST_URI] => /index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&Itemid=210
    [GEOIP_ADDR] => my ip address !
    [GEOIP_CONTINENT_CODE] => EU
    [GEOIP_COUNTRY_CODE] => FR
    [GEOIP_COUNTRY_NAME] => France
    [GEOIP_CITY] => Paris
    [GEOIP_POSTAL_CODE] => 75006
    [GEOIP_CITY_CONTINENT_CODE] => EU
    [GEOIP_CITY_COUNTRY_CODE] => FR
    [GEOIP_CITY_COUNTRY_NAME] => France
    [GEOIP_REGION] => IDF
    [GEOIP_LATITUDE] => 48.83230
    [GEOIP_LONGITUDE] => 2.40750
    [GEOIP_ISP] => 12322
    [GEOIP_ORGANIZATION] => My provider
    [HTTPS] => on
    [CRAWLER_USLEEP] => 1000
    [CRAWLER_LOAD_LIMIT_ENFORCE] => 20
    [X_SPDY] => HTTP3
    [SSL_PROTOCOL] => QUIC
    [SSL_CIPHER] => TLS_AES_128_GCM_SHA256
    [SSL_CIPHER_USEKEYSIZE] => 128
    [SSL_CIPHER_ALGKEYSIZE] => 128
    [SCRIPT_FILENAME] => /mytestsite/index.php
    [QUERY_STRING] => option=com_virtuemart&view=category&virtuemart_category_id=0&Itemid=210
    [SCRIPT_URI] => https://dev2022.asiashop-france.fr/index.php
    [SCRIPT_URL] => /index.php
    [SCRIPT_NAME] => /index.php
    [SERVER_PROTOCOL] => HTTP/1.1
    [SERVER_SOFTWARE] => LiteSpeed
    [REQUEST_METHOD] => GET
    [X-LSCACHE] => on,crawler
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1673884959.06266
    [REQUEST_TIME] => 1673884959