Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't seem to override checkout_confirmation.php language file

Can't seem to override checkout_confirmation.php language file

Views: 744

Results 1 to 2 of 2
1 Feb 2012, 1:04 PM
#1
whitephantom avatar

whitephantom

Zen Follower

Join Date:
Jan 2010
Posts:
105
Plugin Contributions:
0

Can't seem to override checkout_confirmation.php language file

Hi,

I have successfully overridden a few template files, but there's one that has me stumped.

I have created a store for a florist (https://www.slaneyflowers.com).

I needed to change the 'Special Instructions or Order Comments' field in the checkout process to read 'NB! Card Message, Delivery Date AND Recipient Phone No'. So I FTP'd the three files in question (checkout_confirmation.php, checkout_shipping.php and checkout_payment.php) do to my local machine, modified the relevant lines, and FTP'd them back up to my override folder (includes/languages/english/flowers).

The first two work perfectly - at stage 1 and stage 2 of the checkout process, the heading on the field is 'NB! Card Message, Delivery Date AND Recipient Phone No'. However at stage 3, which uses checkout_confirmation.php, it continued to say 'Special Instructions or Order Comments'.

I used the developers toolkit to check what files contain this string and there are only two: checkout_confirmation.php and checkout_payment.php, both of which are in my overrides folder with the modified heading.

I edited the core file just to check - I changed 'Special Instructions or Order Comments' to just 'Special Instructions', and refreshed the page. That worked - the heading changed.

(I even changed the name of the checkout_confirmation.php in the core template folder for a few moments to see what would happen if it didn't find the core file - I refreshed the page on stage 3 and it still said 'Special Instructions' - no idea how that worked!)

Why is it refusing to use this particular override file??! :huh:

Using zencart 1.3.9f, php 5.2.17

Thanks!