Forums / General Questions / Where to edit shopping cart message?

Where to edit shopping cart message?

Started by dat311 on 7 Jun 2011, 9:02 PM · Views: 2,947

Results 1 to 20 of 32
7 Jun 2011, 9:02 PM
#1
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Where to edit shopping cart message?

Hi everyone!

I have been searching for an hour on where to change the message that is currently displayed in my shopping cart. The one that says "You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php)"

I am new here so this is probably a super easy thing that I just don't know about! Thanks so much for your help!!

Here is my website:
lunapetuniadesigns.com/index.php?main_page=shopping_cart&number_of_uploads=0

7 Jun 2011, 9:13 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Where to edit shopping cart message?

If your host has a cpanel you can access the file there through the folder called File Manager..

www.your_web_site.com/cpanel

If not,
you will use your FTP to navigate to this file starting from the root directory and then use a good text editor like notepad+++ to change the wording then upload back to your server..

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.

7 Jun 2011, 9:29 PM
#3
dat311 avatar

dat311

New Zenner

Join Date:
Jun 2011
Posts:
65
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi Haredo, thanks so much!

Yes, my host uses cpanel but the File Manager is empty and I don't see my FTP either.

I will try to have her fix this for me.

Thank you again for your help :smile:

7 Jun 2011, 9:36 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Call your host and ask why you don't see your directory tree of files withing the File Manager

A FTP is a program you download to transfer files..

Take a look at this thread:

https://www.zen-cart.com/tutorials/index.php?article=139Then click on this link on that page:
WIKI REFERENCE: http://www.zen-cart.com/wiki/index.php/Basic_Checklist

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.

23 Dec 2012, 3:51 AM
#5
ma_ri avatar

ma_ri

New Zenner

Join Date:
Dec 2012
Location:
Vaughan, Ontario, Canada
Posts:
1
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hello,

I am not a programmer and this is very confusing. So there is no simple way to delete that message other than going through these steps ?

23 Dec 2012, 6:16 AM
#6
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: Where to edit shopping cart message?

Ma Ri:

Hello,

I am not a programmer and this is very confusing. So there is no simple way to delete that message other than going through these steps ?

Hi and welcome to Zen Cart.
many of us are not programmers so don't worry yourself too much.
As the shopping cart message states the file to edit you will need to connect to your hosting server. ALWAYS save a copy of the files you are going to edit to your computer first, just in case...
Connect to your files by using either your cpanel file manager of via ftp, then find the wording you wish to edit, click 'edit' and modify the phrase to suit your tastes. Just as long as you do not delete the ' ' either end of the text then you will be just fine.

27 Dec 2012, 12:11 PM
#7
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi I'm having the same problem Dat311 has. I want to change the wording in the shopping cart and I went to includes/languages/english/Mytemplate/shopping_cart.php
and also
includes/languages/english/shopping_cart.php
I put the text I wanted in the: define ('TEXT_INFORMATION', '') and nothing happened.

By the way, in the Developer's Kit I couldn't find the text I want to change.

I appreciate if somebody can help me with this.

Thanks

27 Dec 2012, 1:51 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Where to edit shopping cart message?

A link to your site would allow us to see what text we're seeing on that page.

27 Dec 2012, 2:26 PM
#9
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Thanks Stevesh, this is the link:
http://gnosticeditions.com/index.php?main_page=shopping_cart
And the bit I want to change is this bit:
"Note: Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. [More Info] For more information regarding Gift Certificate, please see our Gift Certificate FAQ."

27 Dec 2012, 3:49 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Where to edit shopping cart message?

And there's nothing returned in the Developers Tool Kit when you search for will be merged ? When I search for that string on my stock test site, I see this file referenced: includes/languages/english/login.php

The DTL isn't very smart. If you search for Note: If you have shopped you won't get anything returned since the actual text in that file is: Note:</strong> If you have shopped

27 Dec 2012, 5:15 PM
#11
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi Stevesh,
Yes, yesterday I did see the file you mentioned, but I found it so confusing! I typed something and the site went blank.
Now, after your reply, I put the text that I want in the cart. I did it in:

includes/languages/english/login.php
includes/languages/english/mytemplate/login.php

and nothing happened. I wonder where these can be now... I mean the changes in the files modified. .

27 Dec 2012, 6:26 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Where to edit shopping cart message?

You should never change /includes/languages/english/login.php; put all custom defines in /includes/languages/english/mytemplate/login.php.

What exactly does your define statement look like? Are you certain that those changes are in the file on your server?

27 Dec 2012, 6:30 PM
#13
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi, I don't know if that is related with the issue that I have, but while transferring files with my ftp I noticed that there are to includes folders, here is the image the 2nd includes folder has only the shipping folders and files.
Attachment 11665
There is something wrong here, isn't it?

27 Dec 2012, 6:41 PM
#14
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi Gjh42,

includes/languages/english/shopping_cart.php

define('TEXT_INFORMATION', 'For printed books, you will receive your book(s) on standard delivery times. <br/> For ebooks, you may download your ebook <b> immediately upon purchase<b/>. <br/> Payments are processed through PayPal. <b> No PayPal account required<b/>'); 

includes/languages/english/login.php

define('TEXT_VISITORS_CART', 'For printed books, you will receive your book(s) on standard delivery times. <br/>
 For ebooks, you may download your ebook <b> immediately upon purchase<b/>. <br/>
 Payments are processed through PayPal. <b> No PayPal account required<b/>
');

includes/languages/english/RI_TEMPLATE_07/login.php

define('TEXT_VISITORS_CART', 'For printed books, you will receive your book(s) on standard delivery times. <br/>
 For ebooks, you may download your ebook <b> immediately upon purchase<b/>. <br/>
 Payments are processed through PayPal. <b> No PayPal account required <b/>
');
27 Dec 2012, 6:59 PM
#15
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Where to edit shopping cart message?

The second /include/ folder was apparently uploaded to the base /includes/ folder instead of the store root, where the shopping cart files would have dropped into their correct places. You should just delete that second /includes/ folder, assuming you have since uploaded the edited versions of the files (or the /includes/ folder structure that contains them) to the correct places.

The defines look fine, so the issue has to be that they are not in the correct place on the server.
If you have not yet uploaded the edited /includes/languages/english/login.php to the server, don't. That copy of the file should stay as it was for reference.

27 Dec 2012, 7:23 PM
#16
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Hi gjh42,

I deleted the extra folder and still no change... Do you know where the problem might be?

27 Dec 2012, 8:44 PM
#17
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Where to edit shopping cart message?

The extra folder would have done nothing, good or bad. It's just extra baggage. Are you certain the edited files are on the server at
/includes/languages/english/shopping_cart.php
and
/includes/languages/english/RI_TEMPLATE_07/login.php?

Again, /includes/languages/english/shopping_cart.php should not be edited; you should copy it into /includes/languages/english/RI_TEMPLATE_07/shopping_cart.php and edit that version.

27 Dec 2012, 9:01 PM
#18
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Yes, sure, I edited them from my server.

This is the file I edited:

includes/languages/english/RI_TEMPLATE_07/shopping_cart.php

<?php
/*

GPL released as part of the big_royalmail_v2.3 package

see CREDITS.txt for the contributors and support forum.

*/

define('NAVBAR_TITLE', 'The Shopping Cart');
define('HEADING_TITLE', 'Your Shopping Cart Contents');
define('HEADING_TITLE_EMPTY', 'Your Shopping Cart');
define('TEXT_INFORMATION', 'For printed books, you will receive your book(s) on standard delivery times. <br/> For ebooks, you may download your ebook <b> immediately upon purchase<b/>. <br/> Payments are processed through PayPal. <b> No PayPal account required<b/>');
define('TABLE_HEADING_REMOVE', 'Remove');
define('TABLE_HEADING_QUANTITY', 'Qty.');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRICE','Unit');
define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty.');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
define('SUB_TITLE_TOTAL', 'Total:');

define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock or there are not enough in stock to fill your order.<br />Please change the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '). Thank you');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' are out of stock.<br />Items not in stock will be placed on backorder.');

define('TEXT_TOTAL_ITEMS', 'Total Items: ');
define('TEXT_TOTAL_WEIGHT', '  Weight: ');
define('TEXT_TOTAL_AMOUNT', '  Amount: ');

define('TEXT_VISITORS_CART', '<a href="javascript:session_win();">[help (?)]</a>');
define('TEXT_OPTION_DIVIDER', ' - ');

// big royal mail modification from ZC 1.3.8a standard shopping cart

define('TITLE_NO_SHIPPING_AVAILABLE', 'Not Available At This Time');
define('TEXT_NO_SHIPPING_AVAILABLE','<span class="alert">Sorry, we cannot calculate your shipping __SHIPPING_COUNTRY__ at this time.</span><br />Please contact us so that we can arrange a quote tailored especially for you.');
27 Dec 2012, 10:37 PM
#19
budy avatar

budy

New Zenner

Join Date:
Jun 2009
Posts:
56
Plugin Contributions:
0

Re: Where to edit shopping cart message?

Still no luck, I'm comparing files from previous backups and I cannot see where is the problem.

27 Dec 2012, 11:56 PM
#20
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Where to edit shopping cart message?

A search in the Developers Toolkit for TEXT_INFORMATION will show where that constant is being used. If it is somehow not called in the actual working file, that would be a place to start investigating. Can you post the shopping cart file where that appears? The stock version is here:
/includes/templates/template_default/templates/tpl_shopping_cart_default.php

Line #32 : <div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION; ?></div>

Your shopping cart page source has

<div class="forward"><strong>Note:</strong> Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. <a href="javascript:session_win();">[More Info]</a></div>

Notice the different leading <div code - your file is probably using some other constant here as well as a diffeent container. You need to find and redefine that instead of the stock constant.

Oops, wrong bit of output - will correct in a moment:)