News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Unique thank you page link, when ordes is complete!

Started by andrai2, September 11, 2017, 14:21:14 PM

Previous topic - Next topic

andrai2

Hello!

My idea is to "make" unique thank you page link - this request was ask from one adwords manger to set goal form site analytics/adwords campaign to count purchases

If we take demo site as an example

http://demo.virtuemart.net/cart - shows cart all good

http://demo.virtuemart.net/cart - this link is also shown when product is bought when i press  Confirm purchase

please see the the attachment

Is there a way to make unique thank you page link in virtuemart 3 from http://demo.virtuemart.net/cart

in one old vm2 i have this and the link /cart/confirm but in vm 3 just cart

Can i do this in admin panel..? I think i am missing something easy

Thank you!

jenkinhill

The after payment page  is part of the payment plugin, although not all include this. For the standard VM payment plugin the template used after returning from payment processing is plugins/vmpayment/standard/standard/tmpl/post_payment.php so that could be overriden to include more than just the Thank you for your order message and brief order details.
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

andrai2

Hi jenkinhill

Can you please have quick look at image attached info.jpg  once more

The idea is to have unique thank you page link like  http://demo.virtuemart.net/thank insteda of http://demo.virtuemart.net/cart 

as my client wants to add this link to analytics goal to see ho many people have visited this link
https://support.google.com/analytics/answer/1012040?hl=en#goal_types

I get the override idea of vmpayment/standard/standard/tmpl/post_payment.php but it looks like a lot of custom php and i dont see how can i change there a link to thank, then looks like i have to make a new post_payment.php

May be you know a quick php code to change thank you page link form cart to thank...?

What would you do if you would like to change thank you page link from  http://demo.virtuemart.net/cart  to http://demo.virtuemart.net/thank..?

if it is more than 10 min thing and lot of cusotm php to make to make a new post_payment.php , than probabaly dont look

p.s. to have some motivation, if you help me solve this issue i will by  membership Sales price 60,50 €  or i can pay you this money

Milbo

No, there is no php todo.

The link is not the content. Jenkin showed you, where you can change the content of the link. You want the link, which is without SEF easy to translate option=com_virtuemart&view=cart&layout=order_done. We could add some lines to the xml, so that we can select it for menu items, which would be then an hidden menu item.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jumbo!

You can take a look at VP Conversion Tracking plugin - https://www.virtueplanet.com/extensions/vp-conversion-tracking

It gives you an unique and good looking order confirmation page. The url of the page will be www.your-site.com/thankyou

Milbo

Quote from: Milbo on September 13, 2017, 08:34:25 AM
We could add some lines to the xml, so that we can select it for menu items, which would be then an hidden menu item.

What about this? Abhishek. Should also work with yours, or?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

andrai2

#6
As my clients wants this thing i bought a bronze membership, invoice attached, to achieve a unique thank page link, different form cart page link http://demo.virtuemart.net/cart , as i mention, the problem is that this  link appers twice http://demo.virtuemart.net/cart in cart and in thank page and i can not set a tracking goal to google analytics,

As is demo shop i have alose one standart payment mehod "like bill to email"

Max! Can I send you my shop ftp data  and admin panel data! To make unique thank page link...? Or can you write un turtorial for "dumb web desingner" like go there do that an etc.

was not trying to be lazy did not undesrstand what i have to get uniqyu thank page link, if i go there plugins/vmpayment/standard/standard/tmpl/post_payment.php

did not understand what can i change there what can i do with SEF, seems like that this standard plugin (redirects you to the same cart page)

<?php
defined 
('_JEXEC') or die();

/**
 * @author Valérie Isaksen
 * @version $Id$
 * @package VirtueMart
 * @subpackage payment
 * @copyright Copyright (C) 2004-Copyright (C) 2004 - 2016 Virtuemart Team. All rights reserved.   - All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
 *
 * http://virtuemart.net
 */

?>

<div class="post_payment_payment_name" style="width: 100%">
<span class="post_payment_payment_name_title"><?php echo vmText::('VMPAYMENT_STANDARD_PAYMENT_INFO'); ?> </span>
<?php echo  $viewData["payment_name"]; ?>
</div>

<div class="post_payment_order_number" style="width: 100%">
<span class="post_payment_order_number_title"><?php echo vmText::('COM_VIRTUEMART_ORDER_NUMBER'); ?> </span>
<?php echo  $viewData["order_number"]; ?>
</div>

<div class="post_payment_order_total" style="width: 100%">
<span class="post_payment_order_total_title"><?php echo vmText::('COM_VIRTUEMART_ORDER_PRINT_TOTAL'); ?> </span>
<?php echo  $viewData['displayTotalInPaymentCurrency']; ?>
</div>
<a class="vm-button-correct" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number='.$viewData["order_number"].'&order_pass='.$viewData["order_pass"], false)?>"><?php echo vmText::_('COM_VIRTUEMART_ORDER_VIEW_ORDER'); ?></a>





p.s. Jumbo, I will probably use this plugin in next virtuemart shop, for now i wann give money to virtuemart team

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/