Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Some code is missing from the Date Available module 2.3.4.1 CE


Guest

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

Link to comment
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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...