이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

WooCommerce Dynamic Sorting

설명

Dynamic Sorting is a lightweight WooCommerce plugin that links up with your Google Analytics account and allows you to sort products based on a website’s usage statistics. Out the box, it adds two ordering options – sort by views and sort by visits.

Google Analytics sorting options can be hidden from the user facing sorting dropdown. This means you can set the default sorting order to feature your shop’s most popular products without your customer knowing.

There is also a premium version of the plugin called Sort by Google Analytics that lets you sort any post type by any Google Analytics metric. WooCommerce Dynamic Sorting works with the product post type and supports sorting by pageviews and visits.

The Indexer

For performance reasons the plugin operates off a locally downloaded index of Google Analytics data. The indexer runs twice a day and you can trigger it manually through the Dynamic Sorting Settings section in the Catalog tab in WooCommerce Settings. Once the indexer has run at least once, the plugin is ready to use.

To increase the batch of the indexer to 400, add the following code to your plugin or theme:

add_filter( 'woocommerce_dynamic_sorting_indexer_data_batch_size', create_function( '', 'return 400;' ) ); 

Requirements

  • WordPress 3.1+
  • WooCommerce 1.0+ plugin installed
  • PHP cURL extension
  • PHP JSON extension
  • Google Analytics Account

설치

This walkthrough explains how set up the plugin and make your most viewed products appear first.

  1. Extract the contents of the ZIP file into your <root>/wp-content/plugins/woocommerce-dynamic-sorting folder.
  2. Login to the WordPress administration area.
  3. Click ‘Plugins’ in the left hand main navigation menu.
  4. Scroll down to WooCommerce Dynamic Sorting and click activate
  5. There should be a notice at the top of your page. Click the click configuration link. Alternatively locate the WooCommerce link in the left hand main navigation menu and select Settings in the sub-menu. Select the catalog tab and scroll to the bottom of the page.
  6. Get your Google Authentication Code by clicking the link below the text box. This will open a popup window asking for permission to use your Analytics data. Your data is completely confidential – nobody ever see’s it and it’s only ever transferred between your website and Google. Click accept.
  7. The popup will display a code in a text box. Select the code and copy it to your clipboard by holding down CTRL + C (Windows) or Command + C (Mac).
  8. Close the popup window and paste the code (CTRL/Command + V) into the Google Authentication Code field in the WooCommerce Dynamic Sorting settings. Click the Save Changes button.
  9. You now need to select your Google Analytics profile for your current website. Choose your profile from the dropdown list and click the Save Changes button. Your page may take time to refresh as the plugin is indexing data in the background.
  10. Two more fields will appear in the refreshed settings page. Date range allows to you to choose how far back your statistics will be accounted for. Indexer status allows you to manually update your local Google Analytics data. On larger WooCommerce shops, you may need to click this again to fully index your site.
  11. Scroll to the top of the page to Catalog Options and select the dropdown labelled Default Product Sorting. There should be two new options – most viewed and most visited. Choose most visitied, scroll to the bottom of the page, and click Save Changes.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“WooCommerce Dynamic Sorting”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “WooCommerce Dynamic Sorting”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.