Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Saving files in Admin


Ijones

Recommended Posts

Posted

Hi,

I'm new to PHP and OS Commerce. I am trying to add my shipping and returns policies through the admin. It won't save or update the file. It's still blank.

 

I've even edited the catalog/includes/languages/english/shipping.php file. Am I missing something? I've been at this for 2 days, and can't figure it out.....I've read the manual, surved the forums, and I don't see anything. Has anyone had a problem like this?

 

 

 

<?php/* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License*/define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

define('TEXT_INFORMATION','

 

<b>Standard Shipping:</b><br><b>Standard Shipping</b><br><br>Single basket orders received by 12pm EST Monday through Friday are guaranteed to ship the same day. Single basket ordersreceived after 12pm EST will be shipped the next business day. We reserve the right to alter the cut-off time for same day shipping during holiday peaks. At this time, we use UPS Ground delivery only. UPS Ground service does not guarantee deliverytimes to residential destinations. Saturdays and Sundays are not counted when calculating the number of days a parcel willspend in transit. All shipping costs shown are for destinations in the continental United States only.Please check all addresses carefully. We guarantee delivery only to the addresses we are given. Postal and delivery services may not forward without additional charges.<br><br>

 

<b>Cancellation Policy</b><br><br>Cancellation of orders must be made within 24 hours from the time of order and prior to shipment. <br><br>

 

<b>Customer Pledge</b><br><br>We pledge to produce a unique gift basket, one that will bring pleasure and enjoyment to both the recipient and the gift giver, with a continuous commitment to customer service and buyer satisfaction. <br><br>

 

<b>Substitutions</b><br><br>We reserve the right to substitute items of equal or greater value when necessary with our promise to never compromise ourhigh standards for quality. Substitutions for chocolate items are made May through October. Prices are subject to change without notice.');?>

Posted

Did you copy the above file to your website? Via FTP?? That looks right and should work.

 

Might try clearing history and cookies in browser.

Lloyd

Posted
Did you copy the above file to your website? Via FTP?? That looks right and should work.

 

Might try clearing history and cookies in browser.

 

 

Hi,

I tried editing the file and uploading it via FTP. It didn't work. When I try to insert it in the Shipping and returns box in the information module and click save, it disappears. I didn't get the message that my files uploaded successfully. I've even temporarily changed the permissions. That didn't work either.

 

I also tried clearing out my cookies. That didn't work either.

 

Right now, I don't know what to do. OS commerce was recommended to me. I'm not a developer, but I do understand the logistics of OSC.

Posted

Change this:

<?php/* $Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License*/define('NAVBAR_TITLE', 'Shipping & Returns');

 

To:

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License

*

/define('NAVBAR_TITLE', 'Shipping & Returns');

 

Its really the first - <?php/*

Without a space between <?php/*

php is trying to figure out what that means!

Lloyd

Posted

The complete page - neatness counts for more than just appearance!

 

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', '<b>Standard Shipping</b><br><br>Single basket orders received by 12pm EST Monday through Friday are guaranteed to ship the same day. Single basket ordersreceived after 12pm EST will be shipped the next business day. We reserve the right to alter the cut-off time for same day shipping during holiday peaks. At this time, we use UPS Ground delivery only. UPS Ground service does not guarantee deliverytimes to residential destinations. Saturdays and Sundays are not counted when calculating the number of days a parcel willspend in transit. All shipping costs shown are for destinations in the continental United States only.Please check all addresses carefully. We guarantee delivery only to the addresses we are given. Postal and delivery services may not forward without additional charges.<br><br><b>Cancellation Policy</b><br><br>Cancellation of orders must be made within 24 hours from the time of order and prior to shipment.<br><br><b>Customer Pledge</b><br><br>We pledge to produce a unique gift basket, one that will bring pleasure and enjoyment to both the recipient and the gift giver, with a continuous commitment to customer service and buyer satisfaction.<br><br><b>Substitutions</b><br><br>We reserve the right to substitute items of equal or greater value when necessary with our promise to never compromise ourhigh standards for quality. Substitutions for chocolate items are made May through October. Prices are subject to change without notice.');

?>

Lloyd

Posted
The complete page - neatness counts for more than just appearance!

 

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', '<b>Standard Shipping</b><br><br>Single basket orders received by 12pm EST Monday through Friday are guaranteed to ship the same day. Single basket ordersreceived after 12pm EST will be shipped the next business day. We reserve the right to alter the cut-off time for same day shipping during holiday peaks. At this time, we use UPS Ground delivery only. UPS Ground service does not guarantee deliverytimes to residential destinations. Saturdays and Sundays are not counted when calculating the number of days a parcel willspend in transit. All shipping costs shown are for destinations in the continental United States only.Please check all addresses carefully. We guarantee delivery only to the addresses we are given. Postal and delivery services may not forward without additional charges.<br><br><b>Cancellation Policy</b><br><br>Cancellation of orders must be made within 24 hours from the time of order and prior to shipment.<br><br><b>Customer Pledge</b><br><br>We pledge to produce a unique gift basket, one that will bring pleasure and enjoyment to both the recipient and the gift giver, with a continuous commitment to customer service and buyer satisfaction.<br><br><b>Substitutions</b><br><br>We reserve the right to substitute items of equal or greater value when necessary with our promise to never compromise ourhigh standards for quality. Substitutions for chocolate items are made May through October. Prices are subject to change without notice.');

?>

 

Thanks, I tried that, but it didn't work....What could it possibly be?

Posted

Thanks, Why does the url take me to your Admin panel??

http://enchantedtreats.liajbridal.com/cata...in/shipping.php

 

The URL to the shipping page should be:

http://enchantedtreats.liajbridal.com/catalog/shipping.php

 

Are you saving the file in the right directory? You should be saving the file in your root 'catalog' directory not the 'admin' directory.

 

Plus did you ftp the above page to your website into the catalog drectory:

The complete page - neatness counts for more than just appearance!

 

Or are you still trying to edit in the Admin panel.

Lloyd

Posted
Thanks, Why does the url take me to your Admin panel??

http://enchantedtreats.liajbridal.com/cata...in/shipping.php

 

The URL to the shipping page should be:

http://enchantedtreats.liajbridal.com/catalog/shipping.php

 

Are you saving the file in the right directory? You should be saving the file in your root 'catalog' directory not the 'admin' directory.

 

Plus did you ftp the above page to your website into the catalog drectory:

The complete page - neatness counts for more than just appearance!

 

Or are you still trying to edit in the Admin panel.

 

 

I tried it both ways- the first link I sent was for the actual catalog page for the store

The second link was to my admin page- it allows me to put the information in manually, but it won't save- I don't get the "files uploaded successfully" page. That's why you saw the blank box on the admin page. That's where I'm having the problem.

 

Since that didn't work, I saved the file to catalog/includes/languages/english/shipping.php. The blank shipping and returns on the actual catalog page is as a result of me saving my file to the catalog/includes/languages/english/shipping.php. I even copied what you sent last night and copied the everything into the file and saved it. it still doesn't show up on the catalog page

Posted
The blank shipping and returns on the actual catalog page is as a result of me saving my file to the catalog/includes/languages/english/shipping.php. I even copied what you sent last night and copied the everything into the file and saved it. it still doesn't show up on the catalog page

 

When you say 'saved it', Do you mean uploaded the page to your website into the directory 'catalog/includes/languages/english/' via ftp? Becuase when I open the page, I do not see any of the text. Which tells me that the page you are saving is not being saved on your website.

 

Can you open your site via ftp server, or website admin panel(not osC Admin) and edit the file directly?

Lloyd

Posted
When you say 'saved it', Do you mean uploaded the page to your website into the directory 'catalog/includes/languages/english/' via ftp? Becuase when I open the page, I do not see any of the text. Which tells me that the page you are saving is not being saved on your website.

 

Can you open your site via ftp server, or website admin panel(not osC Admin) and edit the file directly?

 

 

I:

1. tried editing the file in frontpage and uploaded it via ftp- no go...

2. tried editing the file via my hosting server and saved it that way- no go

3. tried using oscAdmin to copy and insert the file and save it that way- no go

Posted

I use frontpage to..

 

Try copying the file the other way from remote to local. Then open and see whats up. Is it what its suppose to be?

 

**Be advised this should overwrite your local file, so copy it to a backup first!!!.

 

Also in frontpage/remote website who is listed as the author of the file you are copying to?

Here we are concerned about directory and/or file permissions

Lloyd

Posted

Post the contents of this file between CODE tags:

 

/catalog/shipping.php

 

Maybe the code in the above file that makes the text in the other file display got removed/modified/corrupted/etc.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
I use frontpage to..

 

Try copying the file the other way from remote to local. Then open and see whats up. Is it what its suppose to be?

 

**Be advised this should overwrite your local file, so copy it to a backup first!!!.

 

Also in frontpage/remote website who is listed as the author of the file you are copying to?

Here we are concerned about directory and/or file permissions

 

I'm listed as the author- I got an error that I didn't have permission, then I changed the permission to 777 just to be able to make the change- I would change it back when I was done

Posted
Post the contents of this file between CODE tags:

 

/catalog/shipping.php

 

Maybe the code in the above file that makes the text in the other file display got removed/modified/corrupted/etc.

 

I'll try it tomorrow- thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...