Okay
  Public Ticket #1226037
Sold out badge
Closed

Comments

  •  2
    efpe started the conversation

    Hello,

    Is it possible to add a SOLD OUT badge to products. There is the OUT OF STOCK option but I have products that will not be restocked again so I would like to display a SOLD OUT badge.

    Thanks


  •  1,559
    Laborator replied

    Hi efpe,

    Changing strings of the theme can be done through a translation plugin, it will scan the words and you can change that easily without needing to edit theme files.

    To translate or rename theme strings, you can do this via Loco Translate plugin. If you don't have it, please install and activate the plugin in your WordPress site.

    1. Then go to Loco Translate > Manage Translations
    2. Click "New Language" for the current active theme (if you didn't created it yet, otherwise ignore this step). On the new language page, choose these options – Screenshot
    3. After that you will be redirected to the editing screen for theme translations. Before you continue with your translations make sure the current language of your site is selected – Screenshot
    4. Follow these instructions to learn how to translate strings – Screenshot
    5. The changes will be applied immediately – Screenshot

    Note: Translation files will be saved to wp-content/themes/{theme-name}/languages folder or global directory of theme translations: wp-content/languages/themes/ (based on your choice)

    If you have saved your translations inside theme folder, always save a backup of languages/ folder (inside the theme) when there is new theme update. After you update the theme (languages folder will be replaced with an empty folder), just move the backup files you previously saved to the same languages directory and your changes will still be applied.


    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group

  •  2
    efpe replied

    Hi Art,
    Thank you for your reply, if I understand correctly this suggests that I rename the OUT OF STOCK to SOLD OUT?
    I would like to continue using OUT OF STOCK for some products and I would like to have an additional tag with SOLD OUT to be used with some other products, so this solution unfortunately does not solve that error.
    Is there any way an additional tag with SOLD OUT could be added to the theme?
    Thanks

  •  1,559
    Laborator replied

    Hi efpe,

    Sorry I have misunderstood you then, unfortunately adding new badges is not possible so what you can do as a partially fix is use the "featured" badge if you don't usually mark items as featured, and so on you can change the Featured word to Sold Out.

    Best regards,
    Laborator Team


      Documentation         Join Kalium Users Group