Skip to content

Display additional product information as weight, dimensions and product attributes anywhere

License

Notifications You must be signed in to change notification settings

lomars/WooCommerce-product-additional-information-shortcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Product additional information shortcode
(For WooCommerce)

Display additional product information as weight, dimensions and product attributes anywhere.

The shortcode has an unique optional "id" argument (the product id). If the "id" argument is not defined, the shortcode will try to get the post ID (checking that is a product Id).

SHORTCODE USAGE

  1. With a defined "id" argument (the product ID):

    [product_additional_information id='37']

    or in php:

    echo do_shortcode("[product_additional_information id='37']");

  2. Without a defined "id" argument (In an existing product page when "additional information" product tab is removed for example):

    [product_additional_information]

    or in php:

    echo do_shortcode("[product_additional_information]");

You will get something like:

alt text

Based on my Stack Overflow answer: WooCommerce product additional information shortcode

Made on Stack Overflow on 2018-05-02 (Updated on 2019-04-22)

About

Display additional product information as weight, dimensions and product attributes anywhere

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages