Post by Calis1978 » Tue Feb 13, 2024 10:17 pm

Voor de herkeuring door Webwinkelkeur moeten we een aanpassing maken. Ik wil graag 'Ik ga akkoord met de Algemene Voorwaarden' wijzigen naar 'Ik ga akkoord met de Algemene Voorwaarden en de betaalverplichting'
Dit leek mij te moeten in /catalog/language/nl-nl/checkout checkout.php, maar dat verandert niets.

Wat doe ik fout?

OC 3.0.3.2

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by by mona » Tue Feb 13, 2024 10:36 pm

Have you Refreshed cache?
How are you changing it?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Calis1978 » Wed Feb 14, 2024 4:49 am

Thank you for replying!

I changed the line in checkout.php to:
$_['text_agree'] = 'Ik ga akkoord met de <a href="%s" class="agree"><b>%s</b></a> n en de betaalverplichting';

as for refreshing the cache, i refreshed both 'theme' and' SASS' on the dashboard with the blue button top right.

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by Frens » Wed Feb 14, 2024 9:10 pm

En werkt het nou?

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by by mona » Wed Feb 14, 2024 9:45 pm

extensions => modifications => refresh cache

blue button top right

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Calis1978 » Thu Feb 15, 2024 5:14 am

Sadly, that did not fix it.

Nee het werkt nog niet.

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by Frens » Thu Feb 15, 2024 9:10 pm

Ik heb taal bestand gewijzigd voor test , werkt zonder leeghalen cache...

Mischien kun je mappen op server eens verwijderen system/storage/cache alles behalve de index.html

Wel ff map dupliceren/copy

Verder, komen je aangepaste bestanden in de goede map? weet niet hoe/waar je ze aanpast.

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by Calis1978 » Fri Feb 16, 2024 4:29 am

Die zal ik ook eens verwjderen.

Het leek me ook zo simpel, eerder een cache probleem van de browser.
Het bestand dat ik wijzigde is:/catalog/language/nl-nl/checkout checkout.php en ik gebruik nl-nl als taal.

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by Calis1978 » Fri Feb 16, 2024 9:26 pm

Helaas, die was het ook niet. Ook een categorie plaatje dat ik veranderd heb, geeft nog steeds de oude weer. Heel vreemd!

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by by mona » Fri Feb 16, 2024 10:15 pm

It is not weird.

If you change a file in the correct language or theme it will change in the front end.
That will not happen if :-
1. The file is already modified, in which case it will change if you clear the modification folder.
2. The file is modified by other systems, for example changed in the built in editor and the modification folder.
3. You have a server caching, in which case you have to clear that cache or wait for it to clear itself.
4. You have installed a cache system and have not cleared that, which if combined with the above can keep caching old data and get into a loop. Your theme can contribute to this.
5. You have not cleared your browser cache which is especially relevant if using a mobile or ipad for example.

Somewhere something is not being done correctly.
You start with ensuring you are changing the correct file
You check if this change is being applied on the modified file, if that is relevant
.. and so on.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Frens » Sat Feb 17, 2024 6:46 pm

Hoe pas je de code aan, lokaal en dan uploaden naar server?

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by OSWorX » Sat Feb 17, 2024 8:28 pm

Sorry when I reply here in in English (my Nederlandse is too long in the past ..).

When you use this wording
Ik ga akkoord
that will not be correct!
Many court decisons (and high punishments therefore especially in Germany), because you don't have to be confirm it should be have read and understand.
Better to use such wording to avoid becoming letters from lawyers ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Calis1978 » Sun Feb 18, 2024 9:19 pm

The category picture was updated.
/catalog/language/nl-nl/checkout/checkout.php
ja, via FileZilla download ik het bestand, Open het in notepad++ en dan is hij aangepast.
$_['text_agree'] = 'Ik ga akkoord met de <a href="%s" class="agree"><b>%s</b></a> en de betaalverplichting';
Mensen moeten hiermee akkoord gaan om de bestelling te plaatsen en dit wordt ook aangegeve door webwnkelkeur als voldoende.

De modifications cache ververst. (bij extensions -> modifications.)
De Theme cache ververst (bij het dashboard)
De SASS cache ververst (bij het dashboard)
/system/storage/cache verwijderd

In de browser (getest met Firefox en Chrome op 2 computers) ook de pagina ververst verversen en via F5) geen verandering zichtbaar

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by by mona » Sun Feb 18, 2024 9:53 pm

So many things are not clear.
You are not clear which language file you are using or changing.
You have not stated if you are using default theme or extensions.
There is no link to your site.

Try this ocmod so we can try to narrow this down.
Upload and remember to refresh cache - that is in modifications and on your server (if that is what fixed your image, or any other caching you have - dashboard SASS is irrelevant for this)

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Calis1978 » Sun Feb 18, 2024 11:12 pm

> So many things are not clear.
> You are not clear which language file you are using or changing.
i'm editing /catalog/language/nl-nl/checkout/checkout.php
I want to change
$_['text_agree'] = 'Ik heb de <a href="%s" class="agree"><b>%s</b></a> gelezen en ga hiermee akkoord';
to
$_['text_agree'] = 'Ik ga akkoord met de <a href="%s" class="agree"><b>%s</b></a> en de betaalverplichting';

> You have not stated if you are using default theme or extensions.
I'm using Journal3 theme. The reason I did not mention this is that the mere mention of this can stop people from giving advice immediately.

> There is no link to your site.
I didn't think giving tat without being asked was appreciated.
It is: https://www.filamentenmeer.nl/

> Try this ocmod so we can try to narrow this down.
> Upload and remember to refresh cache - that is in modifications and on your server (if that is what fixed your image, or any other caching you have - dashboard > SASS is irrelevant for this)
I installed it (no files in upload?) and refreshed the cache...no change

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by Calis1978 » Sun Feb 18, 2024 11:15 pm

In the modifications log there was a new entry

MOD: Change text_agree

FILE: catalog/language/en-gb/checkout/checkout.php
CODE: $_['text_comments']
LINE: 31

FILE: catalog/language/nl-nl/checkout/checkout.php
CODE: $_['text_comments']
LINE: 31
----------------------------------------------------------------

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by by mona » Sun Feb 18, 2024 11:38 pm

The reason we ask for theme is because we work on the basis of all things being standard.
The reason we often do not assist with that specific theme is because most of the time the issue is related to it and I personally have no intension of purchasing something that I have no interest or purpose for except to assist people on this forum.

You are changing the wrong file or the wrong text.
You have a checkout installed that is not the OC3 checkout.
Maybe there is something in your settings to change it, maybe it is another file, but unfortunately I can not help, you have to ask your theme developer how to change it.

The good news is that your ocmod is working and you can edit that to look for the text you need.

Code: Select all

<file path="catalog/language/*/*/*.php|catalog/language/*/*/*/*.php">
		<operation>
		  <search><![CDATA[akkoord]]></search>
		  <add position="before"><![CDATA[//HERE
]]></add>
		</operation>
	</file>	
Check your log and see if you can find the right file

Just to add that your theme caches and duplication cache can lead to a never ending loop that could still be effecting things.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Mon Feb 19, 2024 12:08 am

You have a number of modifications, e.g.

Ik ontvang graag de nieuwsbrief.
Ik heb de Privacyverklaring gelezen en ga hiermee akkoord
Ik heb de Algemene voorwaarden gelezen en ga hiermee akkoord

Also, you are using the Journal3 framework, not the OpenCart framework. And worse, you are using the Journal3 single checkout page, not the OpenCart checkout sequence. The Journal3 checkout is different compared to OpenCart, it uses its own checout.php, with its own template. Hence you should either contact the Journal3 support, or use OpenCart, or at least the OpenCart checkout.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Calis1978 » Mon Feb 19, 2024 12:39 am

Thank you for your help. Now I know there is another checkout.php file look for :)
Last edited by Calis1978 on Mon Feb 19, 2024 4:18 pm, edited 1 time in total.

New member

Posts

Joined
Tue Jul 30, 2013 8:35 pm

Post by Frens » Mon Feb 19, 2024 12:51 am

Vandaar dat ik vroeg of je wel het juiste bestand aanpast en of deze wel op de goede plek op server aankomt.

Ik heb bestand nog eens aangepast en een F5 is genoeg om te gewijzigde tekst te zien.
Ook de zip file van Mona werkt direct.

@mona : File works fine default theme !

Vraag, heeft jou versie geen talen editor? ik heb zelf versie 3.0.3.8

Verder zou je het standaard OC theme eens kunnen activeren i.p.v Journal kijken wat het doet.

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm
Who is online

Users browsing this forum: No registered users and 20 guests