VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: webmiep on August 12, 2013, 20:52:54 PM

Title: [ SOLVED ] Virtuemart is on a template which is not the default of Joomla system
Post by: webmiep on August 12, 2013, 20:52:54 PM
Hello,

I have Joomla 2.5.14 VM 2.0.22a PHP versie: 5.3.17-1byte1squeeze1

My installation comes with a website and an template and an vm webshop with a secondary template (beautiful!)
Can someone help me where to change the 'default' template code to the secondary template name for following pages:
1. Thank you page for the order
2. Forgot Password
3. Forgot username
4. Login in the webshop

thanks a lot.
warm regards
Webmiep


Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: jenkinhill on August 13, 2013, 10:40:34 AM
Make menu items to the pages you want to show (using a url link if necessary) and the assign those menu items to the required template.

See the Joomla documentation.  http://docs.joomla.org/How_do_you_assign_a_template_to_a_specific_page%3F
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: webmiep on August 13, 2013, 16:12:48 PM
Hello,

Thank you for your answer.
Do you know whereto I have to link in case of the thank you page?
Is this in VM?

warm regards
Webmiep
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: Maxim Pishnyak on August 13, 2013, 20:19:38 PM
components\com_virtuemart\views\cart\tmpl\order_done.php
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: jenkinhill on August 13, 2013, 20:50:56 PM
That is the template/view file, but the Thank You page does not exist until someone completes their payment. So I don't see how you can directly link to it.

Maybe override the view so it is displayed in Fancybox? No idea how to do that, though.
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: Maxim Pishnyak on August 14, 2013, 22:28:35 PM
Quote from: webmiep on August 13, 2013, 16:12:48 PM
Do you know whereto I have to link in case of the thank you page?
What will you do with that link?
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: webmiep on August 18, 2013, 18:01:57 PM
I do want the thank you message in my template for the virtuemart shop and not in the default template of the joomla installation

Thanks for your help
Webmiep
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: webmiep on August 18, 2013, 19:14:19 PM
Hello,

I finally found the file I think there has to change the name of the default template to myTemplate.
It is (I think) in com_virtuemart/controllers/pluginresponse.php on line 72 en 78
I send the code from line 58 until 100 and please can someone tell me where to add my templatename instead of the default templatename.
I am desperate now with searching.

Webmiep


I saw in the folder cart/order_done This line:

echo JRoute::_('http://www.mijndomeinnaam.nl/winkelwagen');

Does this have the right php quotes etc??

Or does it has to be something like this:

echo $this->html .JRoute::_('"&tmpl=my_templatename"');

[attachment cleanup by admin]
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: Maxim Pishnyak on August 19, 2013, 11:54:09 AM
Quote from: webmiep on August 18, 2013, 18:01:57 PM
I do want the thank you message in my template for the virtuemart shop and not in the default template of the joomla installation
Post here address of your customized 'thank you' file in your template for the virtuemart shop.
Title: Re: Virtuemart is on a template which is not the default of the Joomla system. Pleas
Post by: webmiep on August 20, 2013, 16:26:31 PM
Hello,

Thank you for all the attention and time.
I changed the whole system and made an Joomla installation special for my webshop and made the shop template the default.
Now all is working allright.

Thanks al lot.
Webmiep