Forums / Templates, Stylesheets, Page Layout / Change out "Shopping Cart" images & text

Change out "Shopping Cart" images & text

Locked

Started by dkjwebs on 8 Aug 2008, 1:21 PM · Views: 4,632

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
8 Aug 2008, 1:21 PM
#1
dkjwebs avatar

dkjwebs

New Zenner

Join Date:
Aug 2008
Posts:
48
Plugin Contributions:
0

Change out "Shopping Cart" images & text

I've got a client who wants to swap out every instance of "Shopping
Cart" and replace it with an image of a jewelry box and refer to it as
"My Jewelry Box".

Is that fairly hard to do? Has anyone here done anything like that?
I'm trying to decide if I want to muddle through it myself or find
someone to out-source it to....

8 Aug 2008, 2:50 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

Tip: in admin->tools->developers tool kit, you can look for phrases like "shopping cart".

In includes/languages/YOUR_TEMPLATE/english.php, look for

Line #108 : define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart'); 

Line #480 : // shopping cart errors 

Line #482 : define('ERROR_PRODUCT_STATUS_SHOPPING_CART','<br />We are sorry but this product has been removed from our inventory at this time.<br />This item has been removed from your shopping cart.'); 

Line #492 : define('WARNING_SHOPPING_CART_COMBINED', 'NOTICE: For your convenience, your current shopping cart has been combined with your shopping cart from your last visit. Please review your shopping cart before checking out.'); 

Line #560 : define('EMPTY_CART_TEXT_NO_QUOTE', 'Whoops! Your session has expired ... Please update your shopping cart for Shipping Quote ...');

The line numbers won't be in the file, but if you use a text editor like Crimson Editor, it'll show you the line numbers. Of course you can just search for the phrase. Replace it with "jewelry box". Be careful not to replace SHOPPING_CART.

I'll have to look around for the image information, but someone else may jump in before I have a chance.

Shopping cart appears other places as well (like includes/languages/english/YOUR_TEMPLATE/shopping_cart.php). Use the tool kit to find them.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Aug 2008, 2:58 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

At least one of the images is from includes/templates/template_default /buttons/english/button_in_cart.gif or includes/templates/YOUR_TEMPLATE/buttons/english/button_in_cart.gif. You can always create the appropriate jewelry box image and put it in the YOUR_TEMPLATE folder. That should get you started.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Aug 2008, 7:08 PM
#4
dkjwebs avatar

dkjwebs

New Zenner

Join Date:
Aug 2008
Posts:
48
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

To clarify, I would just do a search for "shopping cart" in every one of those boxes on the Developers Took Kit page?

I'm still trying to figure out how to do a back up before I make any changes like that. I got the book today but can't find how to do a back-up in there! :dontgetit

8 Aug 2008, 7:23 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Change out "Shopping Cart" images & text

Searching the FAQ area for the word "backup" brings up this article on doing database backups: https://www.zen-cart.com/tutorials/index.php?article=103

As for backups of the PHP files, use your FTP program and download the files from the server to your PC. Zip them up if you desire, after downloading.

.
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.

8 Aug 2008, 7:24 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Change out "Shopping Cart" images & text

dkjwebs:

To clarify, I would just do a search for "shopping cart" in every one of those boxes on the Developers Took Kit page?
You don't have to use "every" field ... just the one that's applicable to your needs. If uncertain, use the last one, and choose "All files" from the pulldown, and it'll search everything.

https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

.
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.

8 Aug 2008, 7:25 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Change out "Shopping Cart" images & text

Search for 'shopping cart' in the bottom left box and choose 'All Files Catalog/Admin in the bottom middle dropdown.

What you're after is lines which begin with 'define'. Change the 'shopping cart' in each to what you want it to say. Don't forget to leave the single quote marks, and to place the edited file in the proper override folder.

8 Aug 2008, 7:41 PM
#8
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

DrByte and stevesh are right. You won't have to change every occurence, but I wanted you to be aware that there may be other instances of "shopping cart" that will need to be changed.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Aug 2008, 7:45 PM
#9
dkjwebs avatar

dkjwebs

New Zenner

Join Date:
Aug 2008
Posts:
48
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

Okay - got everything backed up and did the search for all the instances of "shopping cart" in the site.

This looks a little dicey since I don't know PHP...yet :blink:

8 Aug 2008, 7:48 PM
#10
dkjwebs avatar

dkjwebs

New Zenner

Join Date:
Aug 2008
Posts:
48
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

This tip from stevesh was very helpful:

What you're after is lines which begin with 'define'.

I guess I'll start there and see if anything else needs to be changed.

Then I need to figure out what the names of the images are that need to be swapped out! :unsure:

At least I am making some good progress here, thanks to all of you!

8 Aug 2008, 7:50 PM
#11
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

It's simple as long as you have a good text editor like Notepad++ or Crimson Editor.

Simply type over the text to replace it. Save the file in the correct template folder and FTP it to the corresponding folder on the website.

In includes/languages/YOUR_TEMPLATE/english.php

define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart'); 

would become

define('BOX_HEADING_SHOPPING_CART', 'Jewelry Box'); 

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 Aug 2008, 7:56 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Change out "Shopping Cart" images & text

Be sure to retain the syntax and punctuation:

define('NAME_OF_CONSTANT', 'value of constant, inside matching quotation marks');

.
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.

8 Aug 2008, 8:02 PM
#13
dkjwebs avatar

dkjwebs

New Zenner

Join Date:
Aug 2008
Posts:
48
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

Thank you - that was incredibly helpful because I would have changed out, for example, " 'BOX_HEADING_SHOPPING_CART' " to 'BOX_HEADING_JEWELRY BOX' since I don't know PHP. :cool:

8 Aug 2008, 8:40 PM
#14
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Change out "Shopping Cart" images & text

Terms in all capital letters with underscores between words are constants. Don't mess with those. :smile:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey