Hi there,
on views we returned an "{{amount}}" value printed out instead, we suppose, the "blank" value.
For example we have a "${{amount}} 15.00" instead of "$15.00" on the product price.

We did try to inspect it and we found the function have a white space before "{{amount}}" in the search parameter on str_replace:

function shopify_money_format() {
  $format = shopify_store_info()->money_format;
  return str_replace(' {{amount}}', '', $format);
}

Removing it, the price is correctly printed:

function shopify_money_format() {
  $format = shopify_store_info()->money_format;
  return str_replace('{{amount}}', '', $format);
}

I'll attach the patch we used, hoping it's the right way and it will help. :)

CommentFileSizeAuthor
0001-Space-on-amount-removed.patch999 bytesbazzmann
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

John Carbone’s picture

Thanks! We'll include this in the next dev/alpha.

  • donutdan4114 committed 527d425 on 7.x-1.x authored by bazzmann
    Issue #2493487 by bazzmann: {{amount}} is printed out instead blank...
donutdan4114’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.