New items - by jnunoalves - on WordPress WooCommerce support

This topic has 13 replies, 5 voices, and was last updated 8 years, 7 months ago ago by Robert Hall

  • Avatar: jnunoalves
    jnunoalves
    Participant
    October 5, 2015 at 22:28

    Hello,

    I need to find a solution to have a menu with novelties.
    I know that in terms of database there is a meta key called “product_new” that can be added as enable and the new products can have automatically the tag “new”.

    I would like to have a menu with these products.

    I know that I can create a new category called novelties but this is not practical as besides adding the tag, I need to assign and remove the products to a category and that is a lot of maintenance (I can create a query to assign and remove the products, but it’s a lot of work and somehow risky).

    I’m quite proficient with databases, but I’m pretty sure that you have other customers that are not and they have the same requirement as I have.

    Can you tell me if there is any way to do it without creating a category?

    Thanks in advance

    José

    12 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 6, 2015 at 07:55

    Hello,

    You need mark products as new in Products editor and you can create page for new products, then use Products element in Visual Composer editor and select type “New” to display new products.

    Best regards,
    Jack Richardson.

    Avatar: jnunoalves
    jnunoalves
    Participant
    October 6, 2015 at 08:26

    Hello,

    Did you understand my question?
    You answer seems related with creating products (where I don’t need help), marking them as new (where I don’t need help) and displaying them in one block of a page (that I don’t need).

    What I need is to use those products marked as new, in a menu. Like I can have a menu for a brand, or category, I would like to know how to have a menu based in the tag “new”.

    Thanks in advance.

    José

    Avatar: Eva
    Eva Kemp
    Support staff
    October 6, 2015 at 12:49

    Hello,

    Please take our apologies, but there is no such feature in the theme.

    Regards,
    Eva Kemp.

    Avatar: jnunoalves
    jnunoalves
    Participant
    October 6, 2015 at 13:02

    Hello Eva,

    And there is not workaround? Only option is to create a category NEW? That is not practical.

    Luckily I know how to assign/remove products to a new category directly in the database, still it will take some work. Other customers without database knowledge that would need to add every month 50 or 100 products to the category and then need to remove again after one month, will lose a lot of time.

    Regarding the menu “NEW” I would like to create it with a different font color, let’s say RED to draw customers attention. Can I do it? Custom CSS?

    Thanks

    José

    Avatar: Brian Johnson
    Brian Johnson
    Member
    October 6, 2015 at 13:48

    Hello.

    Yes. Please rename default.custom.css in wp-contents/themes/legenda to custom.css and enable it via theme-options ->custom.css. Will be glad to provide you with css code as soon as “new” menu element appears on site. Please let us know about it.

    Regards,
    Brian Johnson

    Avatar: Brian Johnson
    Brian Johnson
    Member
    October 6, 2015 at 13:56

    You may use following code as an example in custom.css:
    .main-nav .menu > li:nth-child(2) > a{color:red!important;}
    Number 2 corresponds the top level menu items.

    Regards,
    Brian Johnson

    Avatar: jnunoalves
    jnunoalves
    Participant
    October 6, 2015 at 14:12

    Hello,

    Corresponds means that I have to replace 2 by the name of the menu? Or corresponds means that it will change all top level menus items to red?

    I want all the top level menus to be as they are at the moment and the new one “NEW” to be created to be red.

    Thanks

    José

    Avatar: Eva
    Eva Kemp
    Support staff
    October 6, 2015 at 15:14

    Hello,

    Please provide us with wp-admin panel credentials in Private Content.

    Regards,
    Eva Kemp.

    Avatar: jnunoalves
    jnunoalves
    Participant
    October 11, 2015 at 21:39

    Hello Eva,

    I’ve just created the category NEW.

    Below the credentials

    Tks in advance

    José

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 12, 2015 at 14:34

    Hello,

    I’ve added this code in custom.css file:

    li.menu-item.menu-item-type-taxonomy.menu-item-object-product_cat.menu-item-13251 > a {
        color: red !important;
    }

    Now only “New” menu item has red color.

    Please check.

    Best regards,
    Jack Richardson.

    Avatar: jnunoalves
    jnunoalves
    Participant
    October 12, 2015 at 20:31

    It’s perfect. Tks. You can close this topic.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 12, 2015 at 20:34

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

  • Viewing 13 results - 1 through 13 (of 13 total)

The issue related to '‘New items’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.