Forums / General Questions / Define pages editor not editing the correct file

Define pages editor not editing the correct file

Locked

Views: 3,103

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
29 Jul 2007, 5:23 PM
#1
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Define pages editor not editing the correct file

So in the admin I am adding some text to define_conditions.php, but my edits are not appearing on the conditions page. The URL for my conditions page is http://www.banberryplace.com/index.php?main_page=conditions.

This is what is in the conditions.php page:

define('NAVBAR_TITLE', 'Fabric Terminology');
define('HEADING_TITLE', 'Fabric Terminology');

define('TEXT_INFORMATION', 'Your Conditions of Use information should be on this page.');
?>

Incidentally I don't see the text "your Conditions..." text either. Suggestions?

29 Jul 2007, 5:30 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

The editor will tell you at the top what the file path to the file being edited is and If you have another template set you should also have created these files for your template at /includes/languages/english/html_includes/your_template/ and make them writeable or 777

Zen-Venom Get Bitten

29 Jul 2007, 5:48 PM
#3
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

kobra:

The editor will tell you at the top what the file path to the file being edited is and If you have another template set you should also have created these files for your template at /includes/languages/english/html_includes/your_template/ and make them writeable or 777

Yep. When I go into the define pages editor anything that I have added/changed is there, and I am editing the file in the template over ride folder.

It seems like the issue is in the file being called by index.php?main_page=conditions

30 Jul 2007, 4:29 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

I should have spotted this from you OP.

You are editing the incorrect files....

What is the path to the file referened as conditions.php

The file that the editor edits is /includes/languages/english/html_includes/apple_zen/define_conditions.php

The listing for the name is in /includes/languges/apple_zen/english.php in this section:

// information box text in sideboxes/information.php

  define('BOX_HEADING_INFORMATION', 'Information');
  define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
  define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
  define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
  define('BOX_INFORMATION_CONTACT', 'Contact Us');
  define('BOX_BBINDEX', 'Forum');
  define('BOX_INFORMATION_UNSUBSCRIBE', 'Newsletter Unsubscribe');

Zen-Venom Get Bitten

30 Jul 2007, 10:26 AM
#5
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

kobra:

I
What is the path to the file referened as conditions.php

/public_html/includes/languages/english/apple_zen/conditions.php

30 Jul 2007, 12:58 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

terrill,

if you are using the defines pages editor it will point to
includes/languages/english/html_includes/apple_zen/ FILE NAME

Zen cart PCI compliant Hosting

30 Jul 2007, 2:55 PM
#7
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

Merlinpa1969:

terrill,

if you are using the defines pages editor it will point to
includes/languages/english/html_includes/apple_zen/ FILE NAME

Right - that is kind of the crux of my issue. My edits are not being reflected in my cart....

30 Jul 2007, 3:00 PM
#8
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

whats in the includes/templates/apple_zen/templates/tpl_conditions_default.php

Zen cart PCI compliant Hosting

30 Jul 2007, 6:00 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

Look at these 2 paths

/public_html/includes/languages/english/apple_zen/conditions.php
and should be
/includes/languages/english/html_includes/apple_zen/define_conditions.php

See the dis-joint in the files you have edited??

Zen-Venom Get Bitten

31 Jul 2007, 1:10 AM
#10
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

kobra:

Look at these 2 paths

/public_html/includes/languages/english/apple_zen/conditions.php
and should be
/includes/languages/english/html_includes/apple_zen/define_conditions.php
See the dis-joint in the files you have edited??

I'm sorry... I don't. Unless you are referring to the file contents, the paths look okay to my bleary eyes. :frusty:

31 Jul 2007, 1:23 AM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

The paths are both correct but we have been suggesting that you edit the files in the one that is highlighted and not in the one you are editing.

/public_html/includes/languages/english/apple_zen/conditions.php
and should be
/includes/languages/english/html_includes/apple_zen/define_conditions.php

Zen-Venom Get Bitten

31 Jul 2007, 1:39 AM
#12
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

kobra:

The paths are both correct but we have been suggesting that you edit the files in the one that is highlighted and not in the one you are editing.

I'm so sorry, I'm sure I'm not explaining myself well.

When I go into the define pages editor and select define_conditions.php, which has a path of includes/languages/english/html_includes/apple_zen/define_conditions.php
this is the text in the box:

Voile - Very lightweight woven, sheer fabric. 100% cotton

Ice poplin - Lightweight woven poplin with a smooth, almost slippery feel. Not silk but with a silk'ey' feeling. 100% cotton. 

Crash Cotton - Lightweight woven poplin with a crinkled texture. 100% cotton.

However, when when I view the 'conditions' page, it's blank. The URL for the 'conditions' page is http://www.banberryplace.com/index.php?main_page=conditions

Clear as mud?

31 Jul 2007, 1:51 AM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Define pages editor not editing the correct file

Not sure if all you edits are in an override dir but you have stated that you edited /public_html/includes/languages/english/apple_zen/conditions.php and maybe others that you did not need to edit as I tried to point out in my first post and then merlin asked you

Merlinpa1969:

whats in the includes/templates/apple_zen/templates/tpl_conditions_default.php
And you did not respond with the contents so this is becoming a circle.

If you have adhered to the overrides for all of your edits so the the core files are not altered - try switching to the "classic" template and then select conditions.
Make sure that the html_includes/classic files are writeable and edit from the admin the define_conditions.php file and see the result.

If this produces favorable results you then need to look at the files you have edited for the cause

Zen-Venom Get Bitten

31 Jul 2007, 2:00 AM
#14
terrill_taylor avatar

terrill_taylor

New Zenner

Join Date:
Aug 2006
Posts:
96
Plugin Contributions:
0

Re: Define pages editor not editing the correct file

kobra:

Not sure if all you edits are in an override dir but you have stated that you edited /public_html/includes/languages/english/apple_zen/conditions.php and maybe others that you did not need to edit as I tried to point out in my first post and then merlin asked you

And you did not respond with the contents so this is becoming a circle.

If you have adhered to the overrides for all of your edits so the the core files are not altered - try switching to the "classic" template and then select conditions.
Make sure that the html_includes/classic files are writeable and edit from the admin the define_conditions.php file and see the result.

If this produces favorable results you then need to look at the files you have edited for the cause

I thought I respoded to Merlin - that file does not exist in that path. Thanks. I'll try switching to the classic template.