[Prestashop] Change the format of the points to be assigned


  • Default avatar
    riga75    
     3 years ago
    0

    Now the format is 1,000 to indicate a thousand points and I would like it to be like this: 1,000 Besides, I don't want the decimals to be seen, can I delete them? thanks a lot

    stefano
  • Your avatar
    seyi    
     3 years ago
    0

    You could override the template files and format the numbers as you like.
  • Default avatar
    riga75    
     3 years ago
    0

    tell me please which file I need to edit?
  • Your avatar
    seyi    
     3 years ago
    0

    From the folder /modules/aworewards/views/17

    You can copy the files:
    - credit.tpl
    - payment.tpl

    to your theme:
    /themes/[your_theme]/modules/aworewards/

    And make your edit there
  • Default avatar
    riga75    
     3 years ago
    0

    Ok thanks but in the files you told us we don't find where to change the format inside the table. what files are they?
  • Your avatar
    seyi    
     3 years ago
    +1

    Im sorry what?  This is the template file, and you can modify the display of points.  For example credit.tpl shows:

                        <td>{$row->credit|escape:'quotes'}</td>

    You can change the number format