Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Company Start Year

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-08-2015, 01:18 PM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Question Company Start Year

I have a client that wants the year they opened for business to show as it has in the past, but X-Cart 5.1.9 only allows entries back to 1970.

Store Setup - Contact Information - "Year in which store opened"

Where do I change this value to allow earlier years?
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #2  
Old 01-08-2015, 02:54 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Company Start Year

Since it won't change, I would just override the template and hard code this value. Probably much easier than editing the logic to allow the earlier year.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
qualiteam (01-12-2015)
  #3  
Old 01-11-2015, 11:59 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Company Start Year

Hello Sam,

X-Cart uses "unix timestamp" format to store dates.
Unfortunately, this format allows dates from Jan 1, 1970 only: http://en.wikipedia.org/wiki/Unix_time

So, the easiest solution for you will be editing templates as Mike has suggested.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #4  
Old 01-12-2015, 01:25 AM
  CenturyPerf's Avatar 
CenturyPerf CenturyPerf is offline
 

eXpert
  
Join Date: Jun 2003
Location: Reno, Nevada
Posts: 396
 

Default Re: Company Start Year

OK, but when editing the template, nothing happens--even after clearing the cache.

Example:

Before:
Code:
<div class="powered-by"> <p class="copyright">&copy; {getCompanyYear()} {config.Company.company_name}. {t(#All rights reserved.#)}</p> <p class="powered-by-label">{getMessage():h}</p> </div>

After:
Code:
<div class="powered-by"> <p class="copyright">&copy; {t(#1964#)} {config.Company.company_name}. {t(#All rights reserved.#)}</p> <p class="powered-by-label">{getMessage():h}</p> </div>

NOTE: I previously added the custom "powered-by" CSS to remove the .powered-by-label
__________________
Best Regards,

Sam Solace - Pres/CEO
Century Performance Center, Inc.
http://www.centuryperformance.com

(3) sites using X-Cart 5.3.5.5
X-Payments Enterprise 3.1.4
Reply With Quote
  #5  
Old 01-12-2015, 04:25 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Company Start Year

Hi Sam!

I hope, you applied the change according to this guide: http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes

If so, could you please send me your module so I could check it out?

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:56 PM.

   

 
X-Cart forums © 2001-2020