VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: welrachid on June 29, 2017, 13:46:04 PM

Title: [Solved - permission error] template override not working
Post by: welrachid on June 29, 2017, 13:46:04 PM
Hi guys
I'm having trouble making a template override of the order_done.php page.

the file i want to override is this:
components/com_virtuemart/cart/tmpl/order_done.php

Im doing this by making a new file here:
templates/template_name/html/com_virtuemart/cart/order_done.php

But its still reading the order_done.php from components and i dont know why

Using: J3.7.2 , VM 3.2.2
I've also tried to disable OPC from virtueplanet with no success

Usually im familier with template overriding so maybe im just being blind..
Title: Re: template override not working
Post by: Ghost on June 29, 2017, 13:55:05 PM
What exactly are you trying to change there? Because most data on that page is generated by payment plugins. Some plugins have their own layouts, e.g. /plugins/vmpayment/standard/standard/tmpl/post_payment.php.
Title: Re: template override not working
Post by: welrachid on June 29, 2017, 14:07:28 PM
Im trying to make a pretty page that is a bit more personal than standard checkout done.

I dont want it to be a part of the plugins because they can be many, and i dont want to update many different.

Epay for example does not support this. Therefor i had to make my own version of that plugin that supports template override and make a pull request. But apprantly epay doesnt think my additions are any good for them.
See my additions here
https://github.com/welrachid/virtuemart3

Anyway.. Im trying to make a pretty page without having to hack VM, so i dont need to make the changes EACH time there is a VM update.
Title: [SOLVED] Re: template override not working
Post by: welrachid on June 30, 2017, 13:27:58 PM
Permission error