VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Genius WebDesign on January 18, 2015, 00:31:49 AM

Title: How do I change the word "number" in Oder Datils view SEF URL?
Post by: Genius WebDesign on January 18, 2015, 00:31:49 AM
Hi,

Regarding the order details view, the SEF URL generated looks like this:
http://www.mysite.net/da/ordreoversigt/number/1a5a03

My question is, how do I change this part of the URL: /number/ to /info/ ?
 
Title: Re: How do I change the word "number" in Oder Datils view SEF URL?
Post by: GJC Web Design on January 18, 2015, 12:52:08 PM
perhaps

if ( isset($query['order_number']) ) {
            $segments[] = 'number/'.$query['order_number'];
            unset ($query['order_number'],$query['layout']);
         } else if ( isset($query['virtuemart_order_id']) ) {
            $segments[] = 'id/'.$query['virtuemart_order_id'];
            unset ($query['virtuemart_order_id'],$query['layout']);
         }

components\com_virtuemart\router.php  ~ line 266 - no idea what side effects it may have
Title: Re: How do I change the word "number" in Oder Datils view SEF URL?
Post by: Genius WebDesign on January 21, 2015, 21:16:24 PM
Thanks, I will give it a try if needed.
May be my client can live with the current URL structure (I hope).