Skip to main content
just-d's user avatar
just-d's user avatar
just-d's user avatar
just-d
  • Member for 11 years, 10 months
  • Last seen more than 4 years ago
awarded
comment
Display Views Result Summary in Twig Template
thanks for reply. Yes I'm trying to show result count, but I want it show on my exposed block before it start some queries. It's like some guide to user about total data before they click the submit button. I already use{{ view.total_rows }} but it show nothing.
Loading…
comment
Filling the field with certain criteria before save
thanks for reply, I 've update my issue and show my code
revised
Filling the field with certain criteria before save
Explain specific issue and display function I wrote
Loading…
Loading…
awarded
comment
accepted
asked
Loading…
awarded
comment
Round Commerce Price: in tpl.php or template.php
@DavidThomas thanks for your help. now i can round($amount,-4) and its render perfectly. could you give me an advice how should i check original currency code. right now i'm trying this if($currency['code']=='USD') { $amount = round($amount,-4); }
comment
Round Commerce Price: in tpl.php or template.php
@DavidThomas I'm trying the solution you provide. I managed to modify prices and price variations were able to take changed. thank you very much for the solution. now I'm trying to learn more deeply. I'm very interested in learning more deeply, where should I start reading something like this?
accepted
awarded
comment
Round Commerce Price: in tpl.php or template.php
thanks @david-thomas for your advice. right now i still trying THEME_preprocess_node(&$variables) after this i will try yours. because i'm still stuck
comment
Round Commerce Price: in tpl.php or template.php
thanks @RajeevK. right now i'm trying your solution. but still stuck in render and only work with USD price.
comment
Round Commerce Price: in tpl.php or template.php
after searching all night, and I found the answer by creating a custom module based on [this][1] function bulat($bilangan){ $bulat = number_format(round($bilangan,-4), 0); return $bulat; } and print it in my node.tpl.php. I hope the way I use it correctly and safely [1]: drupal.org/node/81681#comment-150049
Loading…
awarded