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

Woo Product Shortcodes (Free)

설명

Sometimes you refer to a product in a post, page or on your homepage with reference to a price, product name or SKU.
With this plugin, you can replace the static text with a shortcode so the values are pulled dynamically from your woocommerce store.
Especially useful when referring to the price as this can change regularly leaving old static text out of date.

To get started, use the shortcode to show the price:
[woo-product-shortcodes id=”20″ data_attribute=”price”]

Use can use data_attributes for “name”, “short_description”, “sku”, “price”, “regular_price”, “sale_price” and more. See FAQ for details.

FAQ // Frequently Asked Questions

What shortcode do I use?

[woo-product-shortcodes id=”20″ data_attribute=“price”]

There are two variables to the shortcode:
1) id = the product id from the woocommerce shop
2) data_attribute = this defined what text will be shown – see below for possible options

What data attributes can I use?

data_attribute=”name”
This will show the name of the product

data_attribute=”short_description”
This will show the short description of the product

data_attribute=”sku”
This will show the SKU of the product

data_attribute=”price”
This will show the price of the product. If the product is on sale, then the sale price will be shown automatically.

data_attribute=”regular_price”
This will show the regular price of the product

data_attribute=”sale_price”
This will show the sale price of the product

Error Codes

ERR001: No valid attribute defined.

REASON: This is triggered when you have not defined which data_attribute to return and show on the page/post.
FIX: Add the data_attribute variable to the shortcode with a permitted value

ERR002: Invalid data_attribute defined.

REASON: This is triggered when you have defined data_attribute but its not a permitted value
FIX: Read the list of permitted data_attribute options from FAQ and update your shortcode with a correct data_attribute

스크린샷

  • This screen shot shows the setup of the shortcode which could be used screenshot-1.png

  • This screen shot shows the output of the shortcode screenshot-2.png

설치

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use our easy shortcode builder at TOOLS > WOO PRODUCT SHORTCODES
  4. On a page or post, add the shortcode to show product information. See below in FAQ for shortcode examples.

후기

2020년 8월 15일
I just luve it when i find a plugin that does exactly what I want and works out of the box!! Well done
2020년 3월 3일 1 reply
Very good plugin but I miss the option of showing the lowest and the highest price of products with variants.
2017년 12월 11일
Sweet plugin! works perfectly, exactly what i needed!! however, i was wondering if theres a shortcode for description as well?
모든 3 평가 읽기

기여자 & 개발자

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

기여자

자국어로 “Woo Product Shortcodes (Free)”(을)를 번역하세요.

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

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

변경이력

2.2

  • Minor changes post internal review

2.1

  • Complete change to logic post WooCommerce upgrade

1.1

  • Updates to images and tags

1.0

  • Initial release version