News:

Support the VirtueMart project and become a member

Main Menu

Thank you for your order - how to change $this->html;

Started by Kywabara, February 03, 2012, 11:46:48 AM

Previous topic - Next topic

bogusj

Hi,

I don't need anything special after the Paypal order, just a link to inform the customer that they can make a booking after the purchase.
So I put some code into Virtuemart language file com_virtuemart.ini for the two languages I use at my site (Greek and English).
Old code: COM_VIRTUEMART_CART_THANKYOU="Thank you for your Order!"
My code: COM_VIRTUEMART_CART_THANKYOU="Thank you for your Order! <a href="_QQ_"http://www.allmassage.gr/index.php?option=com_pbbooking&amp;view=pbbooking&amp;layout=calendar&amp;Itemid=692"_QQ_"><img src="_QQ_"/images/stories/icons/book_now_en.png"_QQ_" alt="_QQ_"book now"_QQ_" /></a>"

It works fine with Paypal payments, however it has a strange problem with the standard ones.
Please check at my screencap, at the top/left and also the selection I made. It's the Joomla Breadcrumb.


I assume the code of the standard payments cannot handle Joomla's standard "_QQ_" and so it messes with the PHP.

Please advice.

Maxim Pishnyak

You could try to do language override for COM_VIRTUEMART_CART_THANKYOU .
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

bogusj

Hi Maxim,

Thanks for you reply. Could you please explain how I do that?

Thanks in advance.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

unixman32

Hopefully this discussion isn't dead, I noticed it's been 3 months since the last response and I'm hesitant to open a new thread.
I'm looking to edit the "Thank you for your order" page also, the difference is I'm actually looking to disable (or hide) the printout of Payment Method, Order Number, and Amount but I'd like to include the Payment Info section because I've built my own "HTML Thank You Page" that's aesthetically pleasing and has instructions for the customer to follow following the order placement.

I'm not concerned about displaying this information because the Payment Method, Order Number, and Amount are included in the email that's automatically sent to the customer, and I have included instructions for the customer to check their email in my custom thank you page.

I've considered just using CSS to hide the text of the items I don't want displayed, but the items are still there, interfering with the positioning of my HTML under the Payment Info section.
I also attempted editing /plugins/vmpayment/standard/standard.php but I'm no expert at PHP and anything I change seems to break the rest of the checkout process.