Bonjour,
J'ai des nouvelles de Weeblr (Yannick Gaultier), voici ces remarques :
**********************************
The reason this is happening is because Hikashop is doing 3 requests to update the display, one per line in the cart:
I don't know why it does, but it does.
The other problem, which may be the root cause, is that to edit the quantity, they use such URL:
meylanmateriaux.ch/panier/checkout/submitblock/tmpl-raw
meylanmateriaux.ch/panier/product/cart/m...-cart/tmpl-component
These are wrong and I don't know why they use that instead of a non-sef URL.
I also noticed the following: when I run a 4SEO analysis on the site, I see new URLs being created in 4SEF similar to:
categories/articles-speciaux/x-wblr-cw-cdn-bpass-id-f9173531-b3ea-4503-91dd-c2ee80fdb994
The x-wblr-.... part is coming from 4SEO (it's used to bypass cdn caching, such as cloudflare). It's normally removed and should never be used in URL but it looks like the Hikashop router is appending all these bits to the URL for some reason.
To be able to troubleshoot the URL creation part, and understand if the problem comes only from Hikashop, from 4SEF or both, I'll need to take a backup of your current site and install locally to trace how each URL is created. You have 3 akeeba backup profiles, which one should I use? (I don't need the images actually)
*********************************
Puis dans une seconde réponse :
***********************************
Hi
So at least I know why there are such weird URLs.
Hikashop just add anything in the non-SEF URLs to the SEF URL, if it does not know how to handle it. That's why the URLs below are created and stored by 4SEF:
/panier/checkout/submitblock/tmpl-raw
/panier/product/cart/module_id-122/module_type-cart/tmpl-component
categories/articles-speciaux/x-wblr-cw-cdn-bpass-id-f9173531-b3ea-4503-91dd-c2ee80fdb994
At the end of their router.php file, they have this code:
if(!empty($query)){
foreach($query as $name => $value){
if(!in_array($name,array('option','Itemid','start','format','limitstart','lang','cart_id'))){
if(is_array($value)) $value = implode('-',$value);
$segments[] = $name.$separator.$value;
unset($query[$name]);
}
}
}
which does add all non-used query variables to the SEF URL. Not much I can do about it.
I think this is the source of the problem, and at this stage, I'd really need their feedback. This is pretty bad for any installation of Hikashop that works with 4SEF (and with sh404SEF in the past) and I never realized that.
Currently, the list of excluded query variables is:
'option','Itemid','start','format','limitstart','lang','cart_id'
At the very least, it should also include 'tmpl' and likely others (search term?). If they could also exclude any variable that starts with "x-wblr", that'd be great.
Can you pass this message to them in extenso and get their feedback?
****************************************
Je n'y comprend rien, donc je ne fait que transmettre