Forums / General Questions / I just messed up my zen cart!!!!!!!

I just messed up my zen cart!!!!!!!

Locked

Views: 2,130

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
1 Jul 2007, 6:15 PM
#1
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

I just messed up my zen cart!!!!!!!

Damn, I've been working on this for 2 days, and finally got it online all my items and it's been working perfect. I was trying to change the heading on the front page, "Congratulations your have successfully installed your zen cart".

According to the directions, you're supposed to edit
includes/languages/ENGLISH/index.php file after editing the text you're supposed to upload to: includes/languages/ENGLISH/CUSTOM/index.php

I uploaded and overwrote it to: includes/languages/ENGLISH/index.php on my server.

Is there anyway to fix this? I didn't back up my shopping cart!!! Can I upload and overwrite it with the original that was came with the software?

This is the error I'm getting:

Parse error: parse error, unexpected T_STRING (then it lists the file and path) line 52

1 Jul 2007, 6:23 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

Is there anyway to fix this? I didn't back up my shopping cart!!! Can I upload and overwrite it with the original that was came with the software?

Yes, just copy the original from the downloaded files.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Jul 2007, 6:32 PM
#3
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

Alright that worked, I'm gonna backup!

I can't change the congratulations text, I searched, but I don't see instructions for the default template. I don't have a folder for:

includes/languages/ENGLISH/CUSTOM/index.php

1 Jul 2007, 6:46 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I just messed up my zen cart!!!!!!!

You should always create your own template. If you amend the files that are part of the Zen Cart distribution, then your changes will probably be over-written and lost when you upgrade.

So wherever you see CUSTOM or YOUR_TEMPLATE or YOUR_TEMPLATE_NAME you should substitute the directory in which you have put your custom template files.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Jul 2007, 7:16 PM
#5
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

kuroi:

You should always create your own template. If you amend the files that are part of the Zen Cart distribution, then your changes will probably be over-written and lost when you upgrade.

So wherever you see CUSTOM or YOUR_TEMPLATE or YOUR_TEMPLATE_NAME you should substitute the directory in which you have put your custom template files.

I still don't understand, which files do I need to put in the custom folder? Is it just index.html? Can you explain where is this custom folder? Do I need to create it myself?

Thanks

1 Jul 2007, 7:24 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: I just messed up my zen cart!!!!!!!

open includes/languages/english
create a new folder ( name it like the rest of your template )
in this folder put a copy of the includes/languages/english/index.php

this is now the file that you edit

Zen cart PCI compliant Hosting

1 Jul 2007, 7:30 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I just messed up my zen cart!!!!!!!

abcdabcd:

I still don't understand, which files do I need to put in the custom folder? Is it just index.html? Can you explain where is this custom folder? Do I need to create it myself?Yes, you need to create it yourself and there's a list of the files and an explanation of this in the other thread in which you are posting.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Jul 2007, 7:30 PM
#8
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

I did that, but it didn't remove the message.

I'm using the default shopping cart, so when you say (name it like the rest of your template) I have no idea what that would be.

Edit: I just checked my admin settings and it's called classic, I tried uploading it here, but then I get an error.

1 Jul 2007, 7:36 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I just messed up my zen cart!!!!!!!

It's very difficult to diagnose a parse error when you don't give us the whole error message, especially not which of Zen Cart's 1,300 files generated it. But from what you have said, my best guess would be that you haven't properly closed the quotes in a define statement, or have prematurely closed one, by including an apostrophe in your text without escaping it (a fancy way of saying putting a "" in front of it).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Jul 2007, 7:43 PM
#10
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: I just messed up my zen cart!!!!!!!

and you should really take a look in the wiki for the proper use of templates,

Zen cart PCI compliant Hosting

1 Jul 2007, 7:49 PM
#11
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

how do you make an override copy? I read this might be a solution. I'm not adding any apostrophes. Directions in the file explain clearly which text to replace. This is the error message:

Parse error: parse error, unexpected T_STRING in /home/content/u/b/a/ubaidabcd/html/magicgiftwrap/order/includes/languages/english/index.php on line 52

1 Jul 2007, 8:17 PM
#12
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: I just messed up my zen cart!!!!!!!

hwo about posting the code from lines 47 to 57

Zen cart PCI compliant Hosting

1 Jul 2007, 10:00 PM
#13
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

define('TEXT_SHOW', 'Filter Results by:');
define('TEXT_BUY', 'Buy 1 '');
define('TEXT_NOW', '' now');
define('TEXT_ALL_CATEGORIES', 'All Categories');
define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
// This section deals with the "home" page at the top level with no options/products selected
/Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'/
define('HEADING_TITLE', 'Welcome to Magic Gift Wrap's Online Store!');
} elseif ($category_depth == 'nested') {

Edit: I just noticed I was using an apostrophe, that could be the problem.

1 Jul 2007, 10:04 PM
#14
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: I just messed up my zen cart!!!!!!!

define('TEXT_BUY', 'Buy 1 '');
should be
define('TEXT_BUY', 'Buy 1');

Zen cart PCI compliant Hosting

1 Jul 2007, 10:05 PM
#15
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

Ok, problem fixed. sorry for wasting everybody's time.

1 Jul 2007, 10:06 PM
#16
abcdabcd avatar

abcdabcd

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: I just messed up my zen cart!!!!!!!

define('TEXT_BUY', 'Buy 1 '');
should be
define('TEXT_BUY', 'Buy 1');

I didn't change that, that's the default shopping cart how it was when I downloaded. It's working, should I change it anyway?

1 Jul 2007, 10:08 PM
#17
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: I just messed up my zen cart!!!!!!!

Sorry Merlin. That's default Zen Cart.

The problem is actually the apostrophe buried in the HEADING TITLE in the word wrap's> define('HEADING_TITLE', 'Welcome to Magic Gift Wrap's Online Store!');That needs to become > wrap's

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

1 Jul 2007, 10:25 PM
#18
merlinpa1969 avatar

merlinpa1969

Totally Zenned

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

Re: I just messed up my zen cart!!!!!!!

kk oops,

I guess I should look att hat more often,

Zen cart PCI compliant Hosting