Paypal Button Style

  • Posts: 68
  • Thank you received: 0
10 years 9 months ago #143607

-- HikaShop version -- : starter 2.2.3
-- Joomla version -- : 2.5
-Hello
I use Hikashop for 2 joomla 2.5 websites with a paypal paiment.
I need to personalize the paypal page for each website.
Paypal give me an opportunity to use a paypal style that I can integrate in the button code of the paiment.
Can I do that with hikashop and the paypal plugin ?
Have a nice day
Marietek

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #143617

Hi,
If you have to send them some parameters to customize your Paypal payment space, you'll be able to do it by editing the onAfterOrderConfirm function of the Paypal plugin, and add your new parameters through the "$vars" variable.

Please Log in or Create an account to join the conversation.

  • Posts: 68
  • Thank you received: 0
10 years 9 months ago #143627

Thanks for you very quick answer!
Can you give me the path to find the onAfterOrderConfirm function?
Marietek

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #143662

Sure, you'll find it through the file : "plugins\hikashoppayment\paypal\paypal.php".

The following user(s) said Thank You: marietek

Please Log in or Create an account to join the conversation.

  • Posts: 68
  • Thank you received: 0
10 years 9 months ago #143672

I find it, thanks!
But ....I am a little afraid to put a wrong code in this..
I need to put
<input type="hidden" name="page_style" value="NomDuStyleQueVousAvezCréé">
Can I put some thing like
'page_style' => 'NomDuStyleQueVousAvezCréé',
Can you tell me if it is right?
marietek

Last edit: 10 years 9 months ago by marietek.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 9 months ago #143706

to do it you'll just have to add this value through your "$vars" variable, so using this code will probably do the job :

$vars['page_style'] = 'NomDuStyleQueVousAvezCréé';

The following user(s) said Thank You: marietek

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum