- Posts: 164
- Thank you received: 5
Please post all pre-sales questions of all products on this forum
target top if payment method is paypal
- Andrea Baldoni
- Topic Author
- Offline
- Elite Member
-
Less
More
11 years 2 months ago #42531
by Andrea Baldoni
target top if payment method is paypal was created by Andrea Baldoni
hi, i need to open paypal web site in target top (because i use eshop for a facebook application and facebook blocks it) so in the file components/com_eshop/plugins/payment/os_payment.php
at line 275 i added a check of payment method using the "paypal" word in payment method name, like this:
it not works, could you help me? tx
at line 275 i added a check of payment method using the "paypal" word in payment method name, like this:
Code:
<form action="<?php echo JUri::root(); ?>index.php?option=com_eshop&task=checkout.processOrder" method="post" name="payment_method_form" id="payment_method_form" class="form form-horizontal" onsubmit="return checkPaymentData();" <?php if(stristr($this->payment_name,"paypal")) echo 'target="_top"'; ?>>
it not works, could you help me? tx
Please Log in or Create an account to join the conversation.
- Andrea Baldoni
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 5
11 years 1 month ago #42931
by Andrea Baldoni
Replied by Andrea Baldoni on topic target top if payment method is paypal
hi, have news about this? please could you help me?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 1 month ago #42934
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic target top if payment method is paypal
I believe you should edit code in the method submitPost :
1. Find the code below:
2. Change it to :
After that, it should work as expected.
Regards,
Tuan
1. Find the code below:
Code:
<form method="post" action="<?php echo $this->url; ?>" name="eshop_order_form" id="eshop_order_form">
2. Change it to :
Code:
<form method="post" action="<?php echo $this->url; ?>" name="eshop_order_form" id="eshop_order_form" <?php if ($this->name == 'os_paypal') echo ' target="_top"'; ?>>
After that, it should work as expected.
Regards,
Tuan
The following user(s) said Thank You: Andrea Baldoni
Please Log in or Create an account to join the conversation.
- Andrea Baldoni
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 164
- Thank you received: 5
11 years 1 month ago #42936
by Andrea Baldoni
Replied by Andrea Baldoni on topic target top if payment method is paypal
hi, tx for your help, now it opens paypal page in top target but url not works like i posted here
joomdonation.com/forum/questions/42252-p...-error-detected.html
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.