Forums / General Questions / Where do I find the code to change PRICE to Price in the product listings ???

Where do I find the code to change PRICE to Price in the product listings ???

Started by wulf359 on 1 May 2023, 5:43 PM · Views: 1,394

Results 1 to 10 of 10
1 May 2023, 5:43 PM
#1
wulf359 avatar

wulf359

New Zenner

Join Date:
Feb 2008
Posts:
44
Plugin Contributions:
0

Where do I find the code to change PRICE to Price in the product listings ???

https://graphicsnbits.com/products_new.html
ver. 1.5.8a
PHP 8

All the others like Featured show it as "Price" and not "PRICE" and I cannot for the life of me locate it anywhere. Any help you can afford me would be greatly appreciated.

1 May 2023, 8:23 PM
#2
swguy avatar

swguy

Administrator

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

Re: Where do I find the code to change PRICE to Price in the product listings ???

Look for

includes/languages/english/lang.products_new.php
includes/languages/english/responsive_classic/lang.products_new.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.

2 May 2023, 2:11 AM
#3
wulf359 avatar

wulf359

New Zenner

Join Date:
Feb 2008
Posts:
44
Plugin Contributions:
0

Re: Where do I find the code to change PRICE to Price in the product listings ???

swguy:

Look for

includes/languages/english/lang.products_new.php
includes/languages/english/responsive_classic/lang.products_new.php

That was my first guess also but this is what's in the file

"<?php
$define = [
'NAVBAR_TITLE' => 'New Products',
'HEADING_TITLE' => 'New Products',
];

return $define;
"

2 May 2023, 3:45 AM
#4
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Where do I find the code to change PRICE to Price in the product listings ???

my friend, i believe you are looking for this define (in the v158 format):

'TEXT_PRICE' => 'Price:',

that looks to be defined here (in the latest codeset):

includes/languages/lang.english.php:474:

as you are using responsive classic, it is entirely possible that the file was overwritten using the ZC ovewrite method. if you do not know what that is, refer to the docs.

hope that helps. i feel your frustration.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

2 May 2023, 9:26 AM
#5
swguy avatar

swguy

Administrator

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

Re: Where do I find the code to change PRICE to Price in the product listings ???

Try using the developer's tool kit. (Admin > Tools > Developer's Tool Kit.)

This is related to a customization that has been done on your store; a fresh install of 1.5.8a does not do this.

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.

2 May 2023, 10:30 AM
#6
wulf359 avatar

wulf359

New Zenner

Join Date:
Feb 2008
Posts:
44
Plugin Contributions:
0

Re: Where do I find the code to change PRICE to Price in the product listings ???

swguy:

Try using the developer's tool kit. (Admin > Tools > Developer's Tool Kit.)

This is related to a customization that has been done on your store; a fresh install of 1.5.8a does not do this.

That actually makes sense... especially given the history of the site.

2 May 2023, 11:56 AM
#7
coastalbob avatar

coastalbob

New Zenner

Join Date:
Apr 2023
Location:
USA
Posts:
22
Plugin Contributions:
0

Re: Where do I find the code to change PRICE to Price in the product listings ???

My go to when I can't find something is in v158a anyways, using "Tools" - "Developers Tool Kit" and using the bottom choice, enter the search word (Price), select all directories or just one and no file extension.

This will search everything and ig it an find a reference to the key word of phrase it will list it and tell yu where it is and what line.

It's not fool proof but it's helped me out more than a few times.

2 May 2023, 12:47 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Where do I find the code to change PRICE to Price in the product listings ???

CoastalBob:

My go to when I can't find something is in v158a anyways, using "Tools" - "Developers Tool Kit" and using the bottom choice, enter the search word (Price), select all directories or just one and no file extension.

This will search everything and ig it an find a reference to the key word of phrase it will list it and tell yu where it is and what line.

It's not fool proof but it's helped me out more than a few times.

Considering the issue is related specifically to capitalization and further a single specific word, suggest trying first:
'PRICE' and selecting the check box to match case.
If nothing is found in that manner, then instead use double quotes around the word.
Then if that doesn't work, it may be that the template forces all upper case on that page either through php or css.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

2 May 2023, 3:57 PM
#9
swguy avatar

swguy

Administrator

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

Re: Where do I find the code to change PRICE to Price in the product listings ???

Then if that doesn't work, it may be that the template forces all upper case on that page either through php or css.

My thought was css too, but there's no special styling to that word on the page the OP posted.

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.

2 May 2023, 4:35 PM
#10
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Where do I find the code to change PRICE to Price in the product listings ???

swguy:

Then if that doesn't work, it may be that the template forces all upper case on that page either through php or css.

My thought was css too, but there's no special styling to that word on the page the OP posted.

includes/languages/english/responsive_classic/english.php
OR
includes/languages/english/responsive_classic/lang.english.php

that's my best guess.

viewing the source of the page shows the text all in CAPS. means not a css. nor a js change.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.