ltempest Posted April 12, 2012 Share Posted April 12, 2012 How can I set the status of a product to NEW and over rule the preference of days set in the options? I want my client to be able to display the New tag by selecting an option within the product itself. Anyone have any ideas? Thanks Lee Link to comment Share on other sites More sharing options...
ltempest Posted April 20, 2012 Author Share Posted April 20, 2012 Anyone have any ideas on this? Link to comment Share on other sites More sharing options...
Aldeag Posted April 20, 2012 Share Posted April 20, 2012 Duplicate it and include the photos when it ask you. Delete the old one. Link to comment Share on other sites More sharing options...
ltempest Posted April 23, 2012 Author Share Posted April 23, 2012 Thanks for the advice, but I don't think this is a viable way of my client managing their products. Why is there not a simple check box in the product details to mark the product as new? Thanks Lee Link to comment Share on other sites More sharing options...
john74 Posted November 16, 2012 Share Posted November 16, 2012 I agree, there should be an option for that 1 Link to comment Share on other sites More sharing options...
idofri Posted December 24, 2012 Share Posted December 24, 2012 (edited) I've taken Eck!'s plugin "Order Options" and modified it for setting specific products as new. So, here's how: 1. Copy the attached file into your admin/tabs folder 2. Go to Administration => Menus => Add New 3. Enter "Set as New" as the name (or whatever..) 4. Enter "AdminSetNew" as the class 5. Select "Catalog" as the parent 6. Click Save 7. Go to Catalog/Set as New 8. Enter the reference number of a product you want to set as new 9. Click "Set Product as New" Tested on 1.5.2 AdminSetNew.php Edited May 19, 2013 by idofri (see edit history) 4 Link to comment Share on other sites More sharing options...
fixgear Posted May 18, 2013 Share Posted May 18, 2013 (edited) hi idofri. thanks, this is exactly what i was looking for BUT where is the "Tools" menu option that you refer to with "Tools/Tabs/Add New"? i can't seem to find it in my admin cp. i also don't know what the "Order Options" plugin is. do i need to add that in order to see the "Tools" menu option in BO? if so, where can i get the Order Options plugin? thanks, jez... Edited May 18, 2013 by fixgear (see edit history) Link to comment Share on other sites More sharing options...
idofri Posted May 19, 2013 Share Posted May 19, 2013 Hi, The correct path is: Administration => Menus > Add New "Order Options" was the original feature before I modified it, and if you'll follow my instructions you'll get a new menu-button called "Set Product as New" under the Catalog menu. Cheers. Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted May 20, 2013 Share Posted May 20, 2013 (edited) Hi itemspet, you want to display the product in the shop to be set a new or its condition?if you want to display .. find the belowings you can try this, if you want to display the condition of the product in short description or more info or any other place in page you wantgo to theme directory and select product.tpl file and include this {$product->condition}. before that the condition of each product should be set. This may help you Edited May 20, 2013 by karthik who_am_i (see edit history) Link to comment Share on other sites More sharing options...
fixgear Posted May 20, 2013 Share Posted May 20, 2013 (edited) hi all. ok, after adding the new admin menu option to the catalogue menu, i am able to mark products as "NEW", very cool BUT... aaaaaarrggghhhhh!!! the ones i mark as new DO appear on the new products page (if you click on "All New Products" link below the thumbs) but the DO NOT appear as thumbs in the new product block on the fotter of all of my shop pages. see attached screen capture "newblock.png" yesterday i marked a shirt as new but it is not showing there any way to fix this/add it as a function? thanks, jez... Edited May 20, 2013 by fixgear (see edit history) Link to comment Share on other sites More sharing options...
fixgear Posted May 28, 2013 Share Posted May 28, 2013 hi all. update on my last post above. good news! the thumbs do appear in the new products block after all. not sure why but there was a delay but they are showing now. see attached newBLOCK.png saludos, jer... Link to comment Share on other sites More sharing options...
performia Posted June 16, 2013 Share Posted June 16, 2013 Is this only for 1.5? In 1.4.9 I have error "Cannot access database directly." Link to comment Share on other sites More sharing options...
vekia Posted June 16, 2013 Share Posted June 16, 2013 yes it's for 1.5 tried to use it 1.4 and doesn't work. Link to comment Share on other sites More sharing options...
fabras Posted July 4, 2013 Share Posted July 4, 2013 Hi, where is the 1. Copy the attached file into your admin/tabs folder? Link to comment Share on other sites More sharing options...
performia Posted July 6, 2013 Share Posted July 6, 2013 Not works in 1.5.4.1 And not works after changes '._DB_PREFIX_.'product_shop` to '._DB_PREFIX_.'product`, because what is this 'product_shop`? Link to comment Share on other sites More sharing options...
vekia Posted July 7, 2013 Share Posted July 7, 2013 prestashop in version 1.5 is with multistore feature, product_shop is a table where the products datas are stored Link to comment Share on other sites More sharing options...
div369 Posted March 24, 2014 Share Posted March 24, 2014 Hi, I've tried on 1.5.5.0 and I have recieved the error "Cannot access database directly."Any ideea? Thank's! Link to comment Share on other sites More sharing options...
vekia Posted March 24, 2014 Share Posted March 24, 2014 Hi, I've tried on 1.5.5.0 and I have recieved the error "Cannot access database directly." Any ideea? Thank's! where you see this error? Link to comment Share on other sites More sharing options...
div369 Posted March 24, 2014 Share Posted March 24, 2014 After adding ID and click on "Set as new" button. Link to comment Share on other sites More sharing options...
wilsonj Posted April 29, 2014 Share Posted April 29, 2014 Any fix for this ? I get the same error........ Link to comment Share on other sites More sharing options...
fishordog Posted May 27, 2014 Share Posted May 27, 2014 After adding ID and click on "Set as new" button. Any fix for this ? I get the same error........ You both entering ID of the product that's why you getting Database error. Try entering product reference 1 Link to comment Share on other sites More sharing options...
goodbreeze Posted June 26, 2014 Share Posted June 26, 2014 I followed the intsructions but when I click on the "Set as New" under my Catalog tab, I just get a blank white page....PS 1.5.6.2 Link to comment Share on other sites More sharing options...
sbt Posted August 30, 2014 Share Posted August 30, 2014 Great feature, Wondering how this can be implemented in PS1.6. Tried on PS1.6.0.9 and shows" no controller found" after I click on "set as new". Link to comment Share on other sites More sharing options...
sbt Posted August 30, 2014 Share Posted August 30, 2014 Great feature, Wondering how this can be implemented in PS1.6. Tried on PS1.6.0.9 and shows" Invalid security token" after I click on "set as new". After that, seems works fine for now. Link to comment Share on other sites More sharing options...
sbt Posted August 30, 2014 Share Posted August 30, 2014 Great feature, Wondering how this can be implemented in PS1.6. Tried on PS1.6.0.9 and shows" Invalid security token" after I click on "set as new". After that, seems works fine for now. PS: if the product reference is entered wrongly, you get error. That's the only small issue it has. Link to comment Share on other sites More sharing options...
soniceb Posted September 12, 2014 Share Posted September 12, 2014 Thank you very much, very useful and working perfectly with PrestaShop™ 1.5.6.2 Link to comment Share on other sites More sharing options...
SaLiC Posted October 29, 2014 Share Posted October 29, 2014 (edited) Thanks for a great fix Is it possible to use ID instead of Reference? Also, it lookes like it is working with reference, and the product is set as new, but not the most recent. Does that make sense? In my New products page, it is on page 2... (sorry there was a delay, it is working now ) Using prestashop 1.5.6.2 Edited October 30, 2014 by SaLiC (see edit history) Link to comment Share on other sites More sharing options...
maherma Posted January 25, 2015 Share Posted January 25, 2015 Is it possible to use ID instead of Reference? I modify code from idofri to use product id instead of reference. It's working on PrestaShop™ 1.5.3.1 Thanks to idofri for original code. Regards, Manuel. AdminSetNew.php Link to comment Share on other sites More sharing options...
pskeeda Posted February 12, 2015 Share Posted February 12, 2015 (edited) Does it work on ps 1.6.0.11? Edited February 12, 2015 by madhurna (see edit history) Link to comment Share on other sites More sharing options...
www.exclusivepen.eu Posted April 9, 2015 Share Posted April 9, 2015 Thank you. It works perfectly on 1.5.3.1. Does anyone know how do I get the products to be "OLD"? Maybe its just a little change in the AdminSetNew.php file? Thank you. Link to comment Share on other sites More sharing options...
Bojdeuca Posted April 27, 2015 Share Posted April 27, 2015 @idofri, @maherma Thank you for your contributions, works like a charm in 1.6.0.14 Link to comment Share on other sites More sharing options...
soniceb Posted June 7, 2015 Share Posted June 7, 2015 It works very well, but sometimes I have to clear the cache. Please modify the source code to automatically clear the smarty cache! Link to comment Share on other sites More sharing options...
maherma Posted June 13, 2015 Share Posted June 13, 2015 I update function to add the posibility to mark as OLD (1 year) and clear cache as requested. I hope this mod be useful to everyone Regards, Manuel. AdminSetNew.php 2 Link to comment Share on other sites More sharing options...
YoyoLuke Posted July 23, 2015 Share Posted July 23, 2015 I have been looking for an addon like this FOR AGES! Thank you soooo much! Works exactly how I want!! Link to comment Share on other sites More sharing options...
Fla.Seb. Posted September 18, 2015 Share Posted September 18, 2015 Hello,I use Prestashop 1.6.1.1 (default theme).I do not speak English, sorry.The installation was successful and now have the menu "Set as New".When I insert the ID of the product and save(new or old), it's ok, it does not give me error.But then, in the front office, does not happen no change (i've cleared cache/force compile).Is there any setting that can lock the operation? is there some incompatibility with "virtual products" (without "warehouse")? Is there any other setting to do? Link to comment Share on other sites More sharing options...
www.exclusivepen.eu Posted October 22, 2015 Share Posted October 22, 2015 Hello. Thank you for a great job!! Is there a way to set as new/old a multiple products?? Putting a list of IDs separated by commas or spaces? Really don't want to do hundreds of products one by one. Thank you very much. Link to comment Share on other sites More sharing options...
jlelouer Posted November 23, 2015 Share Posted November 23, 2015 Great feature, Wondering how this can be implemented in PS1.6. Tried on PS1.6.0.9 and shows" no controller found" after I click on "set as new". Same here, how to make it work on PS1.6? Link to comment Share on other sites More sharing options...
Massi-X Posted May 20, 2016 Share Posted May 20, 2016 New version, with bot reference and ID choose, New graphic and fully compatible with 1.6. AdminSetNew.php 1 Link to comment Share on other sites More sharing options...
ozfragrance Posted June 2, 2016 Share Posted June 2, 2016 tested and working on v1.6.1.1 Thank you Link to comment Share on other sites More sharing options...
dpcdpc11 Posted July 9, 2016 Share Posted July 9, 2016 (edited) Hey guys... I've just tested the last version on prestashop 1.6.1.5 and despite the 2 errors bellow, it was working: Notice on line 72 in file /home/mashenka/public_html/adminshop/tabs/AdminSetNew.php [8] Undefined index: id_num Notice on line 80 in file /home/mashenka/public_html/adminshop/tabs/AdminSetNew.php [8] Undefined index: valid So to get rig of the errors I've added 2 variable declarations to test for the $_POST.I've attached the updated php file. Let me know if it works for others as well. P.S. this should be a standard setting for each product by default! Many shop owners disable specific products temporarily and when they enable them again they want their customers to see them as new products. So this is a must have feature IMHO. Edited July 9, 2016 by dpcdpc11 (see edit history) Link to comment Share on other sites More sharing options...
chemocycling Posted July 21, 2016 Share Posted July 21, 2016 (edited) hi successful install but after set a id or reference product says: product not found or cant update ?is this a probplem with permisions? thanks Edited July 21, 2016 by chemocycling (see edit history) Link to comment Share on other sites More sharing options...
WEB EMBASSY Posted October 4, 2016 Share Posted October 4, 2016 hi successful install but after set a id or reference product says: product not found or cant update ?is this a probplem with permisions? thanks The same error. PrestaShop™ 1.5.4.0 Link to comment Share on other sites More sharing options...
WEB EMBASSY Posted October 4, 2016 Share Posted October 4, 2016 The same error. PrestaShop™ 1.5.4.0 Here is fix (works for me). http://dropmefiles.com/Ka454 Link to comment Share on other sites More sharing options...
kimy Posted November 9, 2016 Share Posted November 9, 2016 (edited) Thanks, this work flawless, I was getting errors in my test store, but it runs as without errors in my live store for some reason? Edited November 9, 2016 by kimy (see edit history) Link to comment Share on other sites More sharing options...
w3bsolutions Posted December 2, 2016 Share Posted December 2, 2016 (edited) Attached is a module for this to make it even easier. Edit: module removed while I rewrite it to comply with PS coding and security standards. For now use method posted previously to change status of old/new on products. Edited February 3, 2017 by w3bsolutions (see edit history) Link to comment Share on other sites More sharing options...
[email protected] Posted January 7, 2017 Share Posted January 7, 2017 (edited) I get the following notices after installing the module. It appears to work correctly even with the notices. Notice on line 387 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code[8] Undefined index: ref_numNotice on line 387 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code[8] Undefined index: id_numNotice on line 734 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code[8] Undefined index: productstatusNotice on line 734 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code[8] Undefined index: productstatus Edited January 7, 2017 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
w3bsolutions Posted January 8, 2017 Share Posted January 8, 2017 I get the following notices after installing the module. It appears to work correctly even with the notices. Notice on line 387 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: ref_num Notice on line 387 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: id_num Notice on line 734 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: productstatus Notice on line 734 in file /home/funsock1/public_html/store/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code [8] Undefined index: productstatus Do not worry about the notices. You see them because you have debug mode on. I will fix them anyway when I have some time, but they do not affect the operation of the module. Link to comment Share on other sites More sharing options...
SmartPlugs Posted March 25, 2017 Share Posted March 25, 2017 (edited) We made a module that allows to get more control on the new status : https://addons.prestashop.com/en/administrative-tools/26430-new-products-management-mark-products-as-novelties.html This module adds a product tab that allows to set the date until which products has to be considered as "new". The module configuration permits to choose if the PrestaShop native behavior has to kept (products will be considered as new if they had been added less than X days ago OR if a date has been set whithin the module) or not (for example if you don't want some products like minor accessories to be displayed as new). Edited March 25, 2017 by SmartPlugs (see edit history) Link to comment Share on other sites More sharing options...
danix1 Posted April 20, 2017 Share Posted April 20, 2017 Muchas gracias por el aporte, funciona de lujo y era exactamente lo que buscaba. Link to comment Share on other sites More sharing options...
www.exclusivepen.eu Posted July 27, 2017 Share Posted July 27, 2017 Is there a way to put there multiple IDs and make them all new/old at once? Thank you. Link to comment Share on other sites More sharing options...
Texxi Posted September 16, 2017 Share Posted September 16, 2017 This almighty Tool still works out of the box on 1.6.1.14 I'm very grateful. Much recommended. Let me know if you need help with setup @others. Link to comment Share on other sites More sharing options...
hstrom Posted June 6, 2018 Share Posted June 6, 2018 On 2017-03-25 at 1:23 PM, SmartPlugs said: We made a module that allows to get more control on the new status : https://addons.prestashop.com/en/administrative-tools/26430-new-products-management-mark-products-as-novelties.html Hi, will you update this module to PS 1,7.x? Link to comment Share on other sites More sharing options...
SmartPlugs Posted June 6, 2018 Share Posted June 6, 2018 Hi Hstom, Yes we will. Actually the main code was working but : We get some issues with dnd JS plugin that allows to order new products We also would like to be able to send errors in BO product tab when we need to (and we still struggle with that...) We can't recommand to install it on PS 1.7 until we solve this. Yann Link to comment Share on other sites More sharing options...
hstrom Posted June 7, 2018 Share Posted June 7, 2018 12 hours ago, SmartPlugs said: Hi Hstom, Yes we will. Actually the main code was working but : We get some issues with dnd JS plugin that allows to order new products We also would like to be able to send errors in BO product tab when we need to (and we still struggle with that...) We can't recommand to install it on PS 1.7 until we solve this. Yann Ok, looking forward an official v1.7 version! With kind regards, - Johan. Link to comment Share on other sites More sharing options...
Henrik Pantle Posted February 7, 2019 Share Posted February 7, 2019 If you want to do it manually: Check my forum-post here. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now