VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hassanegenius on July 04, 2014, 18:32:46 PM

Title: editing view order Template
Post by: hassanegenius on July 04, 2014, 18:32:46 PM
Hi,, i need some idea about virtual mart email confirmation template. After make a any order in my stroe, its send  a link to client for view his order. So, my question is that, how can we edit this template. i dont know what is call this template.  this link is something like mystore/option=com_virtuemart&view=orders&layout=details&order_number=976d015&order_pass=p_06b07

i attached a picture hope my question will be clear. i just want to add  module in left and right side. 

please.. any help..

Thanks.

[attachment cleanup by admin]
Title: Re: editing view order Template
Post by: GJC Web Design on July 04, 2014, 18:58:52 PM
assume u need to over ride  components/com_virtuemart/views/orders/tmpl/details_order.php
Title: Re: editing view order Template
Post by: hassanegenius on July 04, 2014, 19:17:31 PM
Hi,, Thanks for your sugession. But i need to set module position in left or right side. Though i dont have any page/menu  for this template. so, i cant make enable module for this. Any idea,,, how to create a page or menu,, then enable module from extention -> module manager-> my module -> then select this page /menu for particular positon.



Thanks
Title: Re: editing view order Template
Post by: GJC Web Design on July 05, 2014, 01:12:06 AM
embed a load module position in the template?
Title: Re: editing view order Template
Post by: hassanegenius on July 05, 2014, 10:07:39 AM
embed? how? sorry dont get you... i attached a image.. hope then you will help me.
thanks

[attachment cleanup by admin]
Title: Re: editing view order Template
Post by: jenkinhill on July 05, 2014, 13:23:35 PM
You seem to confuse Joomla templates with the type of template used for email. I suggest you use a dedicated VM mail editor - http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-administration/10197
Title: Re: editing view order Template
Post by: GJC Web Design on July 05, 2014, 16:18:12 PM
or if this is just for your order view ->

basically

jimport('joomla.application.module.helper');
$module = &JModuleHelper::getModule('mod_custom','Your module name');
echo JModuleHelper::renderModule($module);


then you can show a module there (I assume this is what u want?)
Title: Re: editing view order Template
Post by: hassanegenius on July 05, 2014, 18:22:49 PM
hI,, GJC Web Design.

YES , THIS IS JUST FOR ORDER VIEW..
Title: Re: editing view order Template
Post by: GJC Web Design on July 05, 2014, 18:37:00 PM
then add that code above etc - google adding Joomla add module to component view - this is std Joomla hacky stuff
Title: Re: editing view order Template
Post by: hassanegenius on July 05, 2014, 20:28:09 PM
sorry i am lost. which file should i add this code :  components/com_virtuemart/views/orders/tmpl/details_order.php  (in this file ?? )
And then ? i don't have google adding Joomla add module !! and i cant find it Google..
please , can you give me easy instruction--

Thanks for your effort.
Title: Re: editing view order Template
Post by: GJC Web Design on July 05, 2014, 21:54:54 PM
There are no easy instructions - it requires skills - if you haven't the skills then you can't expect free training and /or coding..

As with anything in life - if u can't do it you employ someone who can...
Title: Re: editing view order Template
Post by: hassanegenius on July 06, 2014, 19:53:14 PM
i am new in joomla coding.. Anyway thanks for your suggestion .