1 point per euro spent


  • Default avatar
    riga75    
     4 years ago  last edited 4 years ago
    0

    I would like to make sure that 1 point is given to all registered users for every euro spent
    How should I do it?

    thanks a ot

    stefano

    I tried to put Percent of Order Total in the field
    100 but the point number to be assigned disappears
  • Your avatar
    seyi    
     4 years ago
    0

    riga75 @ Jun 4, 2020, 5:14:13 AM

    I tried to put Percent of Order Total in the field
    100 but the point number to be assigned disappears

    What do you mean by this?
  • Default avatar
    riga75    
     4 years ago
    0

    Tell me and I must configure to get the result that I would like to have
  • Your avatar
    seyi    
     4 years ago
    0

    Pretty much what you said:
    Rule type: order
    Minimum order total type: per order
    Percent of Order total: 100%
  • Default avatar
    riga75    
     4 years ago
    0

    Ok I did it but I can't set the point number. The field to enter the number of points does not exit
    See screenshot: https://nimb.ws/2YWLQv
  • Your avatar
    seyi    
     4 years ago
    0

    That is because you have set the percent of order total field.  If you left that blank then you could enter a static point, otherwise it uses the order total field.
  • Default avatar
    riga75    
     4 years ago
    0

    No Sorry but I didn't understand.
    I have to set that every euro of expenditure must have a point.
    Can you tell me how to do it?
  • Your avatar
    seyi    
     4 years ago
    0

    By setting "Percent of order total" to 100%.  When a customer purchase 50.32 amount, they will receive 50.32 points.
  • Default avatar
    riga75    
     4 years ago
    0

    Sorry but I would like that if one makes an order from € 50.70 he would have 50 points but instead he would have 50.70 points.
    How can I go about solving it?
  • Your avatar
    seyi    
     4 years ago
    +1

    Hello,

    This is not a feature of AwoRewards.  You can do it by modifying the code, but you would have to modify it on every update.  In the file
    www/administrator/components/com_aworewards/aworewards/library/class-aworewards-library-reward.php, around 2150 is the line
    <?php
            $points 
    $ototal_to_use $rule->params->order_percent 100;
    ?>

    Right after that, you can add the below to round it down
    <?php
            $points 
    floor$points );
    ?>