2017-04-10 9 views
2

先週私はPHP 7に更新しました。また、WooCommerceも3.0.xにアップデートしました。WooCommerce 3主な更新テンプレートのエラー

しかし、更新後、ユーザー登録時に追加したフィールドがもう機能していないことに気付きました。 WP-Memberプラグインを使用して追加フィールドを追加しました。

私は、さらに私は、このエラー

customtheme/woocommerce /カート/ cart.phpバージョン2.1.0が古くなって見つかったページの下部にWooCommerceシステムステータスで検索。 コアバージョン3.0.0、 customtheme/woocommerce/checkout/form-checkout.phpバージョン2.0.0は、 が古くなっています。コアバージョンは2.3.0、 customtheme/woocommerce/checkout/review-order.phpバージョン2.1.8は、 の日付です。コアバージョンは2.3.0、 customtheme/woocommerce/checkout/thankyou.phpバージョン2.2.0は 日付のうちです。コアバージョンは3.0.0、 customtheme/woocommerce/content-product.phpバージョン1.6.4は 日付のうちです。コアバージョンは3.0.0、 customtheme/woocommerce/loop/loop-start.php、 customtheme/woocommerce/loop/pagination.php、 customtheme/woocommerce/myaccount/form-edit-address.phpバージョン2.1.0です。 は古くなっています。コアバージョンは2.6.0、 customtheme/woocommerce /単一製品/ add-to-cart/variable.php バージョン2.1.0は古くなっています。コアバージョンは2.5.0、 customtheme/woocommerce/single-product/product-image.phpバージョン 2.0.14が古いです。コアバージョンは3.0.0、customtheme/woocommerce/single-product/product-thumbnails.phpバージョン 2.0.3は古くなっています。コアバージョンは3.0.0、customtheme/woocommerce/single-product/short-description.php、 customtheme/woocommerce/single-product/tabs/description.php、 customtheme/woocommerce/single-product/title.php

です。

誰も私がこれらを固定助け、すべての私のカスタムフィールドに表示されるように、私のユーザー登録ページを作るでし

おかげ

答えて

1

WooCommerce 3.0+は本当にメジャーアップデートで、はるかに厳格より前。多くのことが変更されており、WooCommerceバージョン2.6以降で使用されているカスタムコードのほとんどは更新する必要があります。

ここにあなたのケースでは、あなたのcustomtheme(フォルダ)>woocommerce(サブフォルダにある、あなたのテーマのすべてのwoocommerceテンプレートを更新する必要がWooCommerce Development blog

に関連する記事を参照してください。 )

それを行うには、あなたがwoocommerceプラグインから"テンプレート" woocommerce(サブフォルダ)テーマにフォルダリストされたすべてのファイルを置き換える必要があります。

woocommerce/templates/cart/cart.php        => customtheme/woocommerce/cart/cart.php 
woocommerce/templates/checkout/form-checkout.php    => customtheme/woocommerce/checkout/form-checkout.php 
woocommerce/templates/checkout/review-order.php     => customtheme/woocommerce/checkout/review-order.php 
woocommerce/templates/checkout/thankyou.php      => customtheme/woocommerce/checkout/thankyou.php 
woocommerce/templates/content-product.php      => customtheme/woocommerce/content-product.php 
woocommerce/templates/loop/loop-start.php      => customtheme/woocommerce/loop/loop-start.php 
woocommerce/templates/loop/pagination.php      => customtheme/woocommerce/loop/pagination.php 
woocommerce/templates/myaccount/form-edit-address.php   => customtheme/woocommerce/myaccount/form-edit-address.php 
woocommerce/templates/single-product/add-to-cart/variable.php => customtheme/woocommerce/single-product/add-to-cart/variable.php 
woocommerce/templates/single-product/product-image.php   => customtheme/woocommerce/single-product/product-image.php 
woocommerce/templates/single-product/product-thumbnails.php  => customtheme/woocommerce/single-product/product-thumbnails.php 
woocommerce/templates/single-product/short-description.php  => customtheme/woocommerce/single-product/short-description.php 
woocommerce/templates/single-product/tabs/description.php  => customtheme/woocommerce/single-product/tabs/description.php 
woocommerce/templates/single-product/title.php     => customtheme/woocommerce/single-product/title.php 

をしかし、以前のテンプレートのコピーを保存しておいてください。新しいテンプレートでは、メイドするすべての変更を置き換える必要があります。


この関連ドキュメントを参照してください:Template Structure + Overriding Templates via a Theme

関連する問題