Jump to content

How to change products "add date" in DB. [SOLVED]


blackflow

Recommended Posts

Hi, I am developing a new shop and while adding multiple products I get the "new product" label. I' ve set  "14 days product as new" in  the admin panel and changed dates in mysql but still I get the "NEW" label. Any ideas? ( I've changed add and upadate dates)

http://lolo2.blackflow.pl/index.php?id_category=3&controller=category ["NOWOSCI tag]

Running presta 1.5.6

Edited by blackflow (see edit history)
Link to comment
Share on other sites

second table ps_product_shop is related to multistore feature, you can run several shops based on one prestashop installation, in this table you've got definition of products for each shops, You can enable / disable products for shops, and definition of this is stored in this table.

 

this tabe is used even if you don't use multistore feature.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 8 months later...

in bo - prod information tab

 

works in 1.6.1.x

 

Add it to line 132 (1.6.1.3) (after hard return) of: admin folder\themes\default\template\controllers\products\informations.tlp

{if $product->date_add}<div class="form-group"><label class="control-label col-lg-3"></td><span class="label-tooltip" data-toggle="tooltip"                title="{l s='Change date for "product new from".'}">{$bullet_common_field} {l s='New from'}</span></label><div class="col-lg-3"><input type="text" id="date_add" name="date_add" value="{$product->date_add|escape:html:'UTF-8'}" /></div></div>{/if}

edit - added the smarty if statement to hide the field if new product is really being added

Link to comment
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
×
×
  • Create New...