탐색 건너뛰기

Open

Reported for: Gravity Forms Multilingual 1.8.2

Topic Tags: Bug, Compatibility, WCML

Overview of the issue

When using Gravity Forms with WooCommerce Multilingual, the Option Pricing field within the form loses its price and currency on the front end. The issue occurs when WooCommerce’s multicurrency feature is enabled.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open Edit …/wp-content/plugins/gravityforms-multilingual/classes/compatibility/woocommerce/class-gfml-currency.php file.
  • Look for line 84.
  • Replace:
    		$price = preg_replace( [ '~&.*?;~', '~[p{Sc}s]+~u' ], '', $price );
    
  • With:
    		///compsupp-7615 - Manually add your currency: ie. USD, EUR...
    		$pattern = '~&.*?;|[p{Sc}s]+|b(?:USD|EUR|Kr|JPY|GBP)b~u';
    		$price = preg_replace($pattern, '', $price);
    

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>