Please help. I need to change Thank you for your order page, i looked at components/com_virtuemart/views/car/tmpl/order_done.php:
<?php
echo "<h3>".JText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU')."</h3>";
echo $this->html;
?>
How to change "$this->html" - where can i find the file with it?
Joomla 1.7.3, Virtuemart 2RC.
Thank you.
also interesting
I am also needing to know the answer to this.
Got it.
html code is in /plugins/vmpayment/standard/standard.php file, it depends on what payment type you choose, so if you using standart payment plugin, you should watch it there.
Quote from: bolonia on February 22, 2012, 06:45:25 AM
Got it.
html code is in /plugins/vmpayment/standard/standard.php file, it depends on what payment type you choose, so if you using standart payment plugin, you should watch it there.
Worked nicely thanks bolonia
thank you bolonia!!!
Hi Guys
If i wanted to delete the text in red where would that be? couldn't see it in above mentioned files?
Thank you for your order!
Payment method Direct CreditDeposit total amount owing into our bank account.
add a message to display with the order
Order Number a2b1016
Amount $ 359,76
cheers
I've got the same problem as above. How do you remove the 'add a message to display with the order' text ????
Joomla 2.5 and VM 2.06
Hi Everyone,
I would also like to know how to display the name and email address of the user's account. For example, I'd like the thank you page to display, Thank you "John" for your order. A confirmation email has been sent to JohnSmith@hotmail.com" where john is obviously the name of the registered user placing the order. Any help on this issue would be greatly appreciated as I have been exploring the forum and searching the web trying to find a solution for weeks.
Ok, try to var_dump all array $order, it should be in it.
For example, i have to change order_number to normal number, not random letters and numbers, so i dump array: $html .= var_dump($order['details']);
and found it there with the name $order['details']['BT']->virtuemart_order_id. Next step — print it. Commenting original code and replacing with our:
//$html .= $this->getHtmlRow('STANDARD_AMOUNT', $currency->priceDisplay($order['details']['BT']->order_total));
$html .= $this->getHtmlRow('STANDARD_ORDER_NUMBER', $order['details']['BT']->virtuemart_order_id);
Thanks Bolonia!!
Do you know if it is possible to override the file like we do with the view files? or we have to hack it?
Thanks again!
Hi all,
I tried to find the thread that is closest to my problem.
My problem is that the "thank you for your order" page with the Paypal payment plugin doesn't show my modules (e.g. my menus). When using the standard payment plugin everything works fine (as the ..../confirm page is apparently part of the cart view which I can assign to a menu entry and in turn assign modules to be shown in that entry).
I also stumbled upon this order_done.php which apprently is only being used by the standard payment plugin.
For the Paypal plugin the return page is something like ...?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=<ordernumber>&pm=<payment number>
Does anyone know how I can set this Paypal "thank you for your order" page up to display a selected number of modules (actually the same that are visible in the cart view?)
Thanks
Quote from: gothamcity on June 18, 2012, 00:55:54 AM
For the Paypal plugin the return page is something like ...?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=<ordernumber>&pm=<payment number>
Does anyone know how I can set this Paypal "thank you for your order" page up to display a selected number of modules (actually the same that are visible in the cart view?)
Thanks
Try to add ItemID in link, or maybe you should create hidden menu and create menu to main virtuemart page and asign modules to that page?
Hi bolonia,
Thanks very much ! It works. :D
Here is how I did it (Virtuemart 2.0.6):
1) create a single article, content is not important (you cannot leave it empty, so just put some"...")
2) create a hidden menu, assign this article to a menu item. When you store, you will see the Menuitem ID in the dialogue --> ID: abc
3) go to the module manager and, for this menu entry, put all modules visible you like to be visible
4) For Paypal you need to edit paypal.php in \plugins\vmpayment\paypal
line 189 shows this code:
"return" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id),
Which creates the return link. Simply add &Itemid=abc to this, so the source code will look like this:
"return" => JROUTE::_(JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived&on=' . $order['details']['BT']->order_number . '&pm=' . $order['details']['BT']->virtuemart_paymentmethod_id) . '&Itemid=abc',
If you need to have it for other payment methods - I guess the procdure is the same for Payzen and others.
Best
This is exactly the page I was looking for. With small modifications to suit my website.
Thanks to Bolonia, I have now found out that I need to work on standard.php. But since I am not a programmer I do not know what to modify and how. I did try a few things but did notwork out.
What I need to do is this -
1. Change order number to order ID. (So that the issue of random numbers is done away with) OR if anyone could suggest how to streamline Order Number to a standard system. Say, YEAR-12345 or something like that
2. Customize the Thank you message. Maybe by adding a module to show up. But unlike gothamcity who needed to edit paypal.php and got the return link, I dont find any return link in standard.php. Or maybe I have missed it.
Could anyone please suggest how do I do the above?
Thanks.
Deepak
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&view=pbbooking&layout=calendar&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.
(http://www.allmassage.gr/images/stories/VMerr1.jpg)
I assume the code of the standard payments cannot handle Joomla's standard "_QQ_" and so it messes with the PHP.
Please advice.
You could try to do language override for COM_VIRTUEMART_CART_THANKYOU .
Hi Maxim,
Thanks for you reply. Could you please explain how I do that?
Thanks in advance.
Read the FAQ: http://forum.virtuemart.net/index.php?topic=113895.0
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.