VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: owenn on November 18, 2019, 11:27:02 AM

Title: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 11:27:02 AM
Hello, I need ur help about a little problem:

I want to delete the button "view your order" in last page order but I can't find it. I know that for paypal it's here :
/plugins/vmpayment/paypal/paypal/tmpl/stdresponse.php but for stripe, they use default Virtuemart view, in this, " they just pass the data and all the view code is managed by Joomla itself."

But where is it ? I have search in /components/com_virtuemart/views/cart/tmpl/     orderdone.php or order_done.php  but nothing.

Thank you so much

Joomla 3.9.5
VM 3.4.2
Template JSN Ferado 2

Title: Re: VMPAYMENT Stripe Thankyou page
Post by: Jörgen on November 18, 2019, 11:44:07 AM
Hello

This is a custom software, please contact Your payment provider for the stripe plugin.

Jörgen @ Kreativ Fotografi

Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 11:52:15 AM
Thanks, I have do it but they say to me : "We have used the default Virtuemart view, in this, we just pass the data and all the view code is managed by Joomla itself. If you are using the third party template then the view is as per the template."

So it's in native VM config and they can't say to me where exactly
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: jenkinhill on November 18, 2019, 12:21:56 PM
You are using template overrides, so the file you seek may be in templates/jsn_ferado_2/html/com_virtuemart/cart
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 12:30:52 PM
Thanks but nothing in theses files   :-\
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 12:37:05 PM
They say to me You can find this code from plugins/vmpayment/stripepayment/stripepayment.php file.

In the stripepayment.php file, You find a function _handleResponse(), in this function you can find the order done HTML code.

Note: As per our policy, We will not provide the support if the customer made any changes in the code.


I attached the file .... there is no button "View your order" (constant COM_VIRTUEMART_ORDER_VIEW_ORDER)  :-\ :-\
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 12:39:48 PM
Quote from: owenn on November 18, 2019, 12:30:52 PM
Thanks but nothing in theses files   :-\

Attached
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 12:47:30 PM
I explain my problem in more detail. When the customer has finished his purchase, he returned by this page that I seek with the button "view your order". If we click on this button, we come across a blank page, unless we are a registered customer. Yet I have uncheck "Only registered users can checkout".
So I want to custom this button and change it to a "go home" buton.
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 14:07:46 PM
SOLVED ! (by support of webkul)  ;D ;D
It was line 1027 - 1028
$html .='<a href="'.JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number='.$response['order_number'].'&order_pass='.$order_pass).'" class="vm-button-correct">View your order</a>';
       $this->debugLog(JText::_('VMPAYMENT_STRIPE_ORDER_NUMBER') . " " . $response['order_number'] . ' payment approved', '_handleResponse', 'debug');

of the file stripepayment.php

Thanks for all
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: jenkinhill on November 18, 2019, 14:56:53 PM
Nobody would know that unless they had exactly the same stipe plugin as used on your site.
Title: Re: VMPAYMENT Stripe Thankyou page
Post by: owenn on November 18, 2019, 15:57:01 PM
Yes ... this topic will help someone who's having same problem  ;)