How to swap the symbol and price in the catalog so that the symbol is after the price? This is not in the product card, but in the general catalog.

Code:

<span class="price"><?php echo $sale ? '<span class="old-price">' . $reg_price . $currency . '</span> ' $price . $currency : $price . $currency;?>/1000шт</span> 
  • What is an online store plugin? There are about a dozen of them. - KAGG Design
  • Woocommerce plugin - ZoomieOS

1 answer 1

Use the setting WooCommerce-> Settings-> Currency Settings-> Position of currency designation

enter image description here

In your code, the syntax is missing a dot after the '</span> '

 <span class="price"><?php echo $sale ? '<span class="old-price">' . $reg_price . $currency . '</span> ' . $price . $currency : $price . $currency;?>/1000шт</span> 
  • I understand this, but it only changes in the item card, and does not change in the catalog - ZoomieOS
  • Something breaks WooCommerce - theme or plugin. This option works everywhere by default. Just checked on the test site. - KAGG Design
  • breaks the topic, I would just like to know where it is possible to see it? - ZoomieOS
  • The theme has a woocommerce folder, archive-product.php in it. Most likely, this particular template is made incorrectly. It uses many other nested ones. To say for sure, without seeing the site, is impossible. Check out this answer for general guidelines on how to find code in WP. En.stackoverflow.com/a/738972/220220 - KAGG Design
  • Here is the site: beleksprint.by/shop - ZoomieOS