News:

Looking for documentation? Take a look on our wiki

Main Menu

Invoice email(s) product links change to /shop/category/product format

Started by camble, December 20, 2012, 12:22:48 PM

Previous topic - Next topic

camble

Hi guys,
I have used VM for the first time on one of my ecommerce projects, so far it's been brilliant to work with etc.

Throughout the store the URL format is domain.co.uk/shop/category/product.

I have almost finished the store and I've styled the emails etc, the email to the admin and customer have the link to the product, however it links in the format of "http://www.domain.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=1&virtuemart_product_id=3".

This is the only instance of this happening and totally messes up the styling, is it possible to somehow change the format to the /shop/category/product?


Thank you in advance
Liam

bytelord

Hello,

I had the same issue before some months, so i create some code and Milbo implemented as function to the core shopfunctionsf and you can use it: getSiteUrl ($link)

More related information here:
http://forum.virtuemart.net/index.php?topic=106536.msg355846#msg355846

Have been added but haven't test it properly yet, i work with that one and is working fine for me... so create your urls using getSiteUrl and report back your results for both SEF enabled and disabled, will help us if other users work on that also and finally implemented on the default mail templates ... i create that on August.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!