Is it possible to edit or remove "A note from the seller" text inside paypal checkout? Or Is there a way to add custom CSS inside the paypal checkout?
Asked
Active
Viewed 105 times
0
-
1How is this integration done? Is it an HTML subscribe button or a smart button? Show the code / give details about your implementation – Preston PHX Mar 22 '21 at 07:47
-
1Its from here: https://developer.paypal.com/docs/nvp-soap-api/create-recurring-payments-profile-nvp/ I just need to remove that text, I'm not sure if there is an API value that will replace the text though. – JOB Mar 22 '21 at 08:29
1 Answers
0
You can edit the structure of this string in the language files of Opencart:
public_html\catalog\language\en-gb\extension\payment\pp_express.php
Original:
$_['text_recurring'] = '%s every %s %s';
The controller uses sprintf()
to replace the placeholders with variables, so you may want to edit that too if you need access to more data. That file is here:
public_html\catalog\controller\extension\payment\pp_express.php
There are very, very long functions but you can search for 'text_recurring' and you'll find the sprintf()
function there:
$recurring_description = $trial_text . sprintf($this->language->get('text_recurring'), $recurring_amt, $item['recurring']['cycle'], $item['recurring']['frequency']);

Daniel
- 2,167
- 5
- 23
- 44
-
-
You haven't indicated which version of OpenCart you're using so it's very possible that the change is done but not visible. Did you refresh your cache after trying it? – Daniel Mar 26 '21 at 07:54
-