Author Topic: Unique thank you page link, when ordes is complete!  (Read 421 times)

andrai2

  • Jr. Member
  • **
  • Posts: 79
Unique thank you page link, when ordes is complete!
« on: September 11, 2017, 14:21:14 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26365
  • Always on vacation
    • Jenkin Hill Internet
Re: Unique thank you page link, when ordes is complete!
« Reply #1 on: September 11, 2017, 15:26:32 pm »
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

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8.2 PHP 7.0.25

Testing VM3.2.5.9677 on J!3.8.2

andrai2

  • Jr. Member
  • **
  • Posts: 79
Re: Unique thank you page link, when ordes is complete!
« Reply #2 on: September 12, 2017, 12:07:19 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9374
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Unique thank you page link, when ordes is complete!
« Reply #3 on: September 13, 2017, 08:34:25 am »
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 605
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Unique thank you page link, when ordes is complete!
« Reply #4 on: September 13, 2017, 14:26:09 pm »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9374
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Unique thank you page link, when ordes is complete!
« Reply #5 on: September 14, 2017, 17:13:17 pm »
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?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

andrai2

  • Jr. Member
  • **
  • Posts: 79
Re: Unique thank you page link, when ordes is complete!
« Reply #6 on: September 15, 2017, 11:53:11 am »
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)

Code: [Select]
<?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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9374
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Unique thank you page link, when ordes is complete!
« Reply #7 on: September 20, 2017, 11:21:23 am »
Yeah of course, just use our ticket system http://extensions.virtuemart.net/ticket
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/