Viewing 1 post (of 1 total)
  • Author
    Posts
  • Minion Friend
    #952588

    So I find solution now 🙂

    1. Create customfiled type string and name New.
    2. Position is ‘ontop’
    3. Value is ‘new’

    If You need another value for another language as english, You have to create little hack into template for product:

    1. Find php code:

    <?php $newCustomField[pregreplace(‘/[^a-zA-Z0-9]+/’, ‘_’, $custom->custom_title)][‘value’][] = ‘<span class="badge badge-‘.strtolower($custom->display).’">’.strtolower($custom->display).’‘; ?>

    on line 93

    1. Change to

    <?php $newCustomField[pregreplace(‘/[^a-zA-Z0-9]+/’, ‘_’, $custom->custom_title)][‘value’][] = ‘<span class="badge badge-‘.strtolower($custom->custom_title).’">’.strtolower($custom->display).’‘; ?>

    1. Now You can use another language for value

    1. Screen-Shot-2016-07-24-at-1.51.43
Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  Minion 7 years, 9 months ago.

The topic ‘VM Product badge’ is closed to new replies.