Jump to content
Latest News: (loading..)
Sign in to follow this  
puggybelle

Some code is missing from the Date Available module 2.3.4.1 CE

Recommended Posts

Stumbled on a file that appears to be missing a line of code.

Catalog > Includes > Modules > Content > Product_Info > cm_pi_date_available.php

Bottom of the file reads:

function keys() {
      return array('MODULE_CONTENT_PI_DATE_AVAILABLE_STATUS', 
          'MODULE_CONTENT_PI_DATE_AVAILABLE_CONTENT_WIDTH',      
          'MODULE_CONTENT_PI_DATE_AVAILABLE_SORT_ORDER');

It's missing the entry for Available Style, which controls the appearance of the date format.  Should look like this:

function keys() {
      return array('MODULE_CONTENT_PI_DATE_AVAILABLE_STATUS', 
          'MODULE_CONTENT_PI_DATE_AVAILABLE_CONTENT_WIDTH',
          'MODULE_CONTENT_PI_DATE_AVAILABLE_STYLE',      
          'MODULE_CONTENT_PI_DATE_AVAILABLE_SORT_ORDER');

I stumbled on it after trying to figure out how to change the date format that was being output on my products.

I don't know who is responsible for maintaining the downloads of osCommerce, but I thought I should pass this on so it can be corrected.
Makes life a little easier when setting up the module.  :)

- Andrea

Share this post


Link to post
Share on other sites

Hi Zahid,

Should I just provide a link to the thread I created above or write a brand new post in that one? 

Looks like it's still active, last post dated November 29th.

- Andrea

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×