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

How to change Add Date field for a Product

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 03-02-2015, 08:58 AM
 
Pher9999 Pher9999 is offline
 

Newbie
  
Join Date: Jan 2015
Posts: 4
 

Default Re: How to change Add Date field for a Product

I know this is an older thread but It still works in 4.6.6. I have an issue that popped up.

When modifying the date for several products. it works great. When the customer goes to view the product lists it shows them in date order then alphabetical. Which my providers complain about since it messes with the order they want to see stuff listed. Now to fix this we need to use the time portion of the timestamps. I've tried to modify this to use the time but I'm getting lost and don't want to mess too much. Can nyone help with this? Either by adding a second field on the modify page to take a time to help with the sort in the end.
__________________
X-cart 4.6.6 Platninum
Reply With Quote
  #12  
Old 08-05-2017, 04:54 AM
  Mick's Avatar 
Mick Mick is offline
 

Advanced Member
  
Join Date: Jun 2003
Location: UK
Posts: 31
 

Default Re: How to change Add Date field for a Product

This thread is a little old but the method still works on 4.78! The only issue is that the multi-edit is not supported but adding an extra line like so rectifies even this. A must have mod for those users with Hot Products or New Arrivals.

Code change on main/product_details.tpl
Code:
<tr> {* New Line Here *} {if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[add_date]" /></td>{/if} <td class="FormButton" nowrap="nowrap">{$lng.lbl_date_added}:</td> <td class="ProductDetails"> {include file="main/datepicker.tpl" name="add_date" date=$product.add_date} </td> </tr>

A thank-you for the original post by ADDISON
__________________
Mick Seymour

XCart 4.1.x ~ 4.7.x
Multiple XC Installations
http://www.x-shops.co.uk
Reply With Quote

The following user thanks Mick for this useful post:
Ben G (06-19-2018)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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 not 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 12:57 PM.

   

 
X-Cart forums © 2001-2020