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 to override view.html.php file?

Started by rage76, February 15, 2014, 09:49:07 AM

Previous topic - Next topic

rage76

Dear Milbo

You will have to explain this in a better way. I am sorry but I didn't understand !!

AH

He asked to override the continue link, not creat his own link  :)

If he had asked to remove the link and create his own link then I would have suggested another option  8)
Regards
A

Joomla 3.10.11
php 8.0

Milbo

Why he wants to override the continue link? and not just directly use the one he creates anyway?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

StefanSTS

Quote from: rage76 on February 18, 2014, 06:30:07 AM
$continue_link = JRoute::_ ('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE);
to
$continue_link = JRoute::_ ('index.php' . $categoryLink, FALSE);
but it is not working. did I do anything wrong?

I just saw, that you are still appending the $categoryLink:
$continue_link = JRoute::_ ('index.php', FALSE);
might do the trick.

There is kind of a documentation for JRoute: http://docs.joomla.org/API17:JRoute, but I didn't really dig deaper to find out how JRoute really works and if you need it.
Well, this solution is kind of the fast lane, probably dirty in programmers eyes, but I am not a programmer. ;-)

So long
Stefan

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.