Editing Text On Payment Detail Page

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Editing Text On Payment Detail Page

Post by quadri_folo » 25 Mar 2021, 07:51

Laravel Version: ^6.20.12"
PHP Version 7.2
Mac OS
Aimeos Verison 2020
Host Hostinger

Hi I am looking to change the text and some of the layout for the payment details page where people enter there card details for stripe, what would be the best way to do this I have looked at the client template file and couldn't see the options I needed

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Editing Text On Payment Detail Page

Post by aimeos » 28 Mar 2021, 07:03

The payment page in the checkout component only contains the selection of the payment option but not yet the forms for entering credit card data. For Stripe, this is asked after the the checkout summary page when the customer clicked on "Buy now".

The template there is very generic because it works with all payment providers and the Stripe code is added here:
https://github.com/aimeos/ai-client-htm ... d.php#L138

Stripe adds the fields via Javascript and the setup code is in the Stripe payment provider:
https://github.com/aimeoscom/ai-payment ... #L334-L415
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Editing Text On Payment Detail Page

Post by quadri_folo » 03 Apr 2021, 00:31

Hi Thank you for your response, so this means that if I change the details for stripe it should change the payment page. Also would features allowing for us to update the payment page be added soon?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Editing Text On Payment Detail Page

Post by aimeos » 06 Apr 2021, 15:07

Can you please explain in more detail? We don't understand what you are trying to say.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Editing Text On Payment Detail Page

Post by quadri_folo » 08 Apr 2021, 18:38

What I mean is currently my page looks like this, see attachement.

I want to change the layout and spelling of the verification label at the end of the form.
To make the changes would I need to make changes within the stripe file or would this need to be updated in the Aimeos Templates ?
Attachments
Screenshot 2021-04-08 at 19.33.51.png
Screenshot 2021-04-08 at 19.33.51.png (74.26 KiB) Viewed 1967 times

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Editing Text On Payment Detail Page

Post by aimeos » 10 Apr 2021, 09:01

You can change the translation of the labels and add your own CSS for changing the styling:

Themeing basics:
- https://aimeos.org/docs/latest/frontend ... me-basics/

Overwriting translations, e.g. for Laravel:
https://aimeos.org/docs/latest/laravel/ ... anslations

Code: Select all

'i18' => [
	'en' => [
		'client/code' => [
			'payment.cardno' => ['Credit card number'],
			'payment.expiry' => ['Expiration date'],
			'payment.cvv' => ['Verification number']
		]
	]
]
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

quadri_folo
Posts: 12
Joined: 15 Feb 2021, 22:23

Re: Editing Text On Payment Detail Page

Post by quadri_folo » 28 Apr 2021, 23:55

Hi Thanks for the reply, after adding this into my shop.php file would I have to clear to cache for this to take effect?

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Editing Text On Payment Detail Page

Post by aimeos » 01 May 2021, 15:34

No
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply