News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How do I change the word "number" in Oder Datils view SEF URL?

Started by Genius WebDesign, January 18, 2015, 00:31:49 AM

Previous topic - Next topic

Genius WebDesign

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/ ?
 

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Genius WebDesign

Thanks, I will give it a try if needed.
May be my client can live with the current URL structure (I hope).