If this is your first visit, check our documentation. To post, register or login.
Forums / Basic Configuration / I can't edit conditions of use, privacy and shipping and returns

I can't edit conditions of use, privacy and shipping and returns

Started by rikko101 on 11 Dec 2020, 5:34 AM · Views: 7,299

Results 1 to 20 of 21
11 Dec 2020, 5:34 AM
#1
rikko101 avatar

rikko101

New Zenner

Join Date:
Mar 2007
Location:
Hope Mills, North Carolina, United States
Posts:
14
Plugin Contributions:
0

I can't edit conditions of use, privacy and shipping and returns

Anyone else with this problem? zen-cart 1.5.7B
I have used includes/languages/english/html_includes/responsive_classic/define_conditions.php to edit the editing file. The edits show in Define Pages Editor
but don't show up the Conditions of Use link in the information side box on the website. Help?

11 Dec 2020, 7:20 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: I can't edit conditions of use, privacy and shipping and returns

Common causes of such a situation:

1 - you're editing the file for a template other than the one that's currently active (eg: you edited responsive_classic/define_conditions.php but your active template is bluesuede so it's not finding your changes)

2 - you made edits but they didn't save. In your case you say they show okay in the Define Pages Editor, so perhaps this case doesn't apply to you.

3 - some html error in your template is causing certain content to not display correctly even though the content has been sent to the page. eg: broken html syntax.

Can you post a link to the page?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Dec 2020, 9:54 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: I can't edit conditions of use, privacy and shipping and returns

If you use FTP or your hosting company's File Manager to view your files, what's in the
...../public_html/includes/languages/english/html_includes/responsive_classic/define_conditions.php
file?

On some older servers the file might not have had "write" permissions, thus causing the Admin editor to be unable to save the changes you made there ... but it should have given you warnings about that. In fact it should have alerted you to that and prevented you from being able to edit the content at all.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Mar 2021, 11:19 PM
#6
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

Dr. Byte,
I'm hoping you can help me, as well. My site is personalizedpetid.com. Host is still working on installing my SSL, so you'll get the message about it being unsecured. I have had my sites dormant for some time and I'm trying to get them going again. When I click on any of the customer support links, I get the 404 message. I also updated my phone number in my store settings and it didn't take. I can see the file path isn't correct, but I don't know what it IS supposed to be. I also suspect more than one file ties this all together. Can you tell me where to find each one that needs to be addressed and exactly where they need to go?

Here's what I get when I click on any of the "Customer Support" options:

Not Found

The requested URL /personalizedpetid/PersonalizedPetID Website backup 7072013/includes/languages/english/extra_definitions/brighton_pets/http:/personalizedpetid.com/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at personalizedpetid.com Port 443

Thanks!

1 Apr 2021, 12:16 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: I can't edit conditions of use, privacy and shipping and returns

gizmo_girl:

I get the 404 message. I also updated my phone number in my store settings and it didn't take. I can see the file path isn't correct, but I don't know what it IS supposed to be. I also suspect more than one file ties this all together. Can you tell me where to find each one that needs to be addressed and exactly where they need to go?

Here's what I get when I click on any of the "Customer Support" options:

Not Found

The requested URL /personalizedpetid/PersonalizedPetID Website backup 7072013/includes/languages/english/extra_definitions/brighton_pets/http:/personalizedpetid.com/index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at personalizedpetid.com Port 443

> 
> 
> Thanks!
It seems you've got some erroneous hard-coded paths in whatever files control your mega-footer in your specific template.
I'm not familiar with your template, but you could search your site's files for 7072013 to try to find where that bad path has been injected for odd reasons.
You could also search for <dd class="third"> or footer-phone to see what files may be using it.
It might even be in some admin settings that might have been added for the sake of controlling those links there, and fix those via the admin.

Admin->Tools->Developers Toolkit is one tool for searching site files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Apr 2021, 1:03 AM
#8
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

DrByte:

If you use FTP or your hosting company's File Manager to view your files, what's in the
...../public_html/includes/languages/english/html_includes/responsive_classic/define_conditions.php
file?

On some older servers the file might not have had "write" permissions, thus causing the Admin editor to be unable to save the changes you made there ... but it should have given you warnings about that. In fact it should have alerted you to that and prevented you from being able to edit the content at all.

I'm having the same problem. I'm using the ZCA bootstrap template. This folder is not in the unzipped downloaded files:
includes/languages/english/html_includes/MY TEMPLATE/define_conditions.php. Is it in a completely different location than what's indicated here and in the admin define pages section? Or is it called something totally different?

27 Apr 2021, 11:35 AM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: I can't edit conditions of use, privacy and shipping and returns

You create the folder

includes/languages/english/html_includes/MY_TEMPLATE

(where MY_TEMPLATE is the name of your template) and then populate that folder with your changes to define_conditions.php

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

27 Apr 2021, 11:40 AM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: I can't edit conditions of use, privacy and shipping and returns

gizmo_girl:

I'm having the same problem. I'm using the ZCA bootstrap template. This folder is not in the unzipped downloaded files:
includes/languages/english/html_includes/MY TEMPLATE/define_conditions.php. Is it in a completely different location than what's indicated here and in the admin define pages section? Or is it called something totally different?
You're correct, the ZCA Bootstrap 4 template doesn't supply that file. For that template, the file /includes/languages/english/html_includes/define_conditions.php will be the one that's used.

You can use an FTP program (e.g. WinSCP or FileZilla) to copy all the files you want to customize from /includes/languages/english/html_includes/ to /includes/languages/english/html_includes/YOUR_BS4_TEMPLATE if you want to customize them specifically for that template.

27 Apr 2021, 6:43 PM
#11
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

swguy:

You create the folder

includes/languages/english/html_includes/MY_TEMPLATE

(where MY_TEMPLATE is the name of your template) and then populate that folder with your changes to define_conditions.php

Thanks so much!

27 Apr 2021, 6:59 PM
#12
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

lat9:

You're correct, the ZCA Bootstrap 4 template doesn't supply that file. For that template, the file /includes/languages/english/html_includes/define_conditions.php will be the one that's used.

You can use an FTP program (e.g. WinSCP or FileZilla) to copy all the files you want to customize from /includes/languages/english/html_includes/ to /includes/languages/english/html_includes/YOUR_BS4_TEMPLATE if you want to customize them specifically for that template.

I copied all of those define_xyz.php files to the folder specific to my template. I can open the define pages option in admin, but my changes still don’t show up. For example, I want some text on my main page other that welcome, would you like to log in? None of the text from the file to define main page shows up on my home page. I want to describe shipping details. They don’t show up when I edit the define shipping file. What am I missing?

27 Apr 2021, 8:06 PM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I can't edit conditions of use, privacy and shipping and returns

https://docs.zen-cart.com/user/new_user_topics/welcome/

The H1 and H2 (the Welcome) above the displayed define_main_page.php are changed elsewhere.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

28 Apr 2021, 5:13 PM
#14
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

dbltoe:

https://docs.zen-cart.com/user/new_user_topics/welcome/

The H1 and H2 (the Welcome) above the displayed define_main_page.php are changed elsewhere.

RE: define pages...
I have all of the define_xyz.php files in both locations:

includes/languages/english/html_includes
includes/languages/english/html_includes/mytemplate

I can open the file in both locations and see that it’s identical in both places. When I go to the define pages area of admin, I can see where I have made the changes that exactly match what’s in those files. Yet, when I go to the information side box and click on shipping & returns, there is absolutely nothing there.

Also from admin, configuration, define page status, the only option showing is define page not found. Instructions show I should have the ability in admin to turn these all on/off, but only one of the define pages is even listed. Is this normal? What am I missing & how do I fix it? Could THIS be why none of my define pages aren’t showing up on my site?
https://docs.zen-cart.com/user/admin_pages/configuration/configuration_definepagestatus/

29 Apr 2021, 3:37 PM
#15
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

I have created the ‘my template’ folder, entered my text from define pages in admin, copied al of the files to that my template folder, manually looked at them to verify the text is there, and not one of these define pages shows any text in them when I click on the links from the actual website. What else can I look for? I’m at a loss here.

29 Apr 2021, 6:08 PM
#16
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

gizmo_girl:

Also from admin, configuration, define page status, the only option showing is define page not found. Instructions show I should have the ability in admin to turn these all on/off, but only one of the define pages is even listed. Is this normal? What am I missing & how do I fix it? Could THIS be why none of my define pages aren’t showing up on my site?
https://docs.zen-cart.com/user/admin_pages/configuration/configuration_definepagestatus/

I would say that this is your problem. Unless the options in admin > configuration > define page status contain 'Define Text ON', as mentioned in the docs you linked to, you will not see any content on your define page.

Unfortunately I do not have a solution for you, only that items missing from Admin menus could point to database corruption. It might be possible to add the missing entries to the database but I would be concerned as to what else might have been affected at the time of the loss of the define page status items.

Simon

29 Apr 2021, 6:45 PM
#17
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: I can't edit conditions of use, privacy and shipping and returns

Unfortunately I do not have a solution for you, only that items missing from Admin menus could point to database corruption.
I have seen this exact thing in the past.

If you go to zc_install/sql/install/mysql_zencart.sql you'll see how the relevant entries are created; you can just copy the needed lines and run them in Tools > Install SQL Patches. For the three define pages mentioned, you want:

insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Privacy Status', 'DEFINE_PRIVACY_STATUS', '1', 'Enable the Defined Privacy Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '62', now(), now(), NULL, 'zen_cfg_select_option(array('0', '1', '2', '3'),');
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Shipping & Returns', 'DEFINE_SHIPPINGINFO_STATUS', '1', 'Enable the Defined Shipping & Returns Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '63', now(), now(), NULL, 'zen_cfg_select_option(array('0', '1', '2', '3'),');
insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('Define Conditions of Use', 'DEFINE_CONDITIONS_STATUS', '1', 'Enable the Defined Conditions of Use Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '64', now(), now(), NULL, 'zen_cfg_select_option(array('0', '1', '2', '3'),');

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

29 Apr 2021, 7:21 PM
#18
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I can't edit conditions of use, privacy and shipping and returns

It's certainly not helping that you created a "my template" folder. Those files will be pulled from two places. First, from the folder with the same name as your template's folder name in Tools >> Template Selection .. Template Directory. If you have not placed them in that directory, the system will look for them in the template_default directory.

SO... Go to your admin Tools >> Template Selection and make note of your tempate's Template Directory. Make sure that those files are in that directory and set with permissions of 644. If your Template Directory were fr1BBiTT, you would put the files in the includes/languages/english/html_includes/fr1BBiTT/

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

29 Apr 2021, 10:02 PM
#19
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: I can't edit conditions of use, privacy and shipping and returns

dbltoe:

It's certainly not helping that you created a "my template" folder. Those files will be pulled from two places. First, from the folder with the same name as your template's folder name in Tools >> Template Selection .. Template Directory. If you have not placed them in that directory, the system will look for them in the template_default directory.

SO... Go to your admin Tools >> Template Selection and make note of your tempate's Template Directory. Make sure that those files are in that directory and set with permissions of 644. If your Template Directory were fr1BBiTT, you would put the files in the includes/languages/english/html_includes/fr1BBiTT/

Ok I’m confused (as if that isn’t already painfully obvious)...
I copied all of the define pages files to includes/languages/english/html_includes/bootstrap (bootstrap being the name of my template). I added the /bootstrap per instructions given earlier in this thread, but above you indicate that may be contributing to my problems that I created the folder with my template name. File permissions are set at 644.

The instructions said to copy the files to your template directory, but it also said they had to exist in the html_includes folder. I’m at a loss what else to look for.
:blink:

30 Apr 2021, 12:24 AM
#20
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I can't edit conditions of use, privacy and shipping and returns

Get https://www.zen-cart.com/downloads.php?do=file&id=1393 and keep it as a link on your desktop. Make sure your folder structure for bootstrap matches that on the chart.

The define pages should be in includes/languages/english/html_includes/bootstrap/ in order to show up in your site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com