View of Sale Closing Date

wisdom - November 1, 2007 - 13:59
Project:e-Commerce Sale
Version:5.x-1.0
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

I do not see a view of the field, sale closing date. What is the way to make the sale closing date field appear in the view module fields list?

#1

Darren Oh - November 1, 2007 - 15:02
Status:active» by design

The sale closing date will replace the add to cart link.

#2

wisdom - November 5, 2007 - 11:38

When adding the add to cart in view it is not replaced by the sale closing date the add to cart link remains when products expire. But in product page it does replace.

I modified the code 130-136 a little bit as follows. If that is the problem but still the product page behaves properly.

elseif (empty($links['add_to_cart']['html'])) {
      //$links['add_to_cart']['title'] = t('Sales of this item close on !date', array(
      //  '!date' => format_date($node->sale->sale_closing_date, 'custom', 'F j, Y'),
      //));
      $links['add_to_cart']['title'] = t('Apply for this job before !date', array(
       '!date' => format_date($node->sale->sale_closing_date, 'custom', 'F j, Y'),));
    }

#3

Darren Oh - November 5, 2007 - 14:12
Status:by design» postponed (maintainer needs more info)

Are you using the stable version of e-Commerce?

#4

wisdom - November 5, 2007 - 19:04

Well I made some serious modifications of ecommerce as result I do not guarantee stabilty to the code I am using; but the ecommerce distribution I started working was a stable one.
Probably some of the changes made could disable that not to function. If you are sure the feature works, we can close this trade.

#5

Darren Oh - November 5, 2007 - 19:24
Status:postponed (maintainer needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.