Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Author « Topic »  

LadyM
ECT Moderator

1692 Posts

Posted - 02/10/2020 :  12:30:28  
If a product is already marked as Out of Stock on the website, can the text be changed after the fact? This: $yyOOStoc

I modified the languageadmin (and added text to includes so it doesn't get overwritten again) but refreshing the page still shows out of stock.

DLSS
ECT Moderator

Canada
3944 Posts

Posted - 02/10/2020 :  12:56:29  
Be sure that the order of your include lines are correct. The languagefile must be included before the includes.php line so that it can be overridden.


Mike Beebe
President,
DataLinks Software Solutions
www.dlss.ca

Rate Me Here

ASP and PHP mods - www.dlss.ca/products.asp
A Tremendous Home - www.ATremendousHome.com
Buy Cigars Online www.CigarSmokeShop.net

LadyM
ECT Moderator

1692 Posts

Posted - 02/10/2020 :  13:05:14  
Yes, it is. I had trouble remembering it so I've had a post-it on my monitor now for a long time.

<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>

However, the Out of Stock message is not in the regular languagefile but the admin language file. I have emptied the cache, refreshed the page, and tried a different browser.

dbdave
ECT Moderator

USA
10292 Posts

Posted - 02/10/2020 :  14:12:06  
Hi, languageadmin only works for language in the admin.
In the vsadmin/inc folder, you will see language files for each language.
Typically you want languagefile_en.php

I think this is the one you want, but you can search the word "stock" and find quite a few in there
$GLOBALS['xxOutStok']='Out of Stock';

LadyM
ECT Moderator

1692 Posts

Posted - 02/10/2020 :  15:35:38  
Brilliant. The first thing I did was search the language file and this is why it didn't show up. It was written differently. Not showing up here.

Out of Stock'


So then I searched for xxOutStok and there it was. I'm putting it in the includes also.

Thank you!!!

Edited by - LadyM on 02/10/2020 15:41:19

dbdave
ECT Moderator

USA
10292 Posts

Posted - 02/10/2020 :  16:04:35  
No worries, I'm glad I could point you in the right direction.

Having some experience with the code, I am pretty sure front end website languagefile entries prefix with "xx" and back end (admin) are all "yy"

Thanks,
David

LadyM
ECT Moderator

1692 Posts

Posted - 02/10/2020 :  19:05:26  
Yes, they do and I knew that but it wasn't showing up in the search in my text editor and that's what threw me.

Thanks for your help.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000