WC Product Embed

WooCommerce Products Anywhere

Thank you for purchasing our plugin. If you have any questions that are beyond the scope of this documentation, please feel free to email via our support forum. Thanks so much!

Requirements

WooCommerce Product Embed has very minimal requirements to run at its best:

  • WordPress 3.8+
  • WooCommerce 2.4+

Optional Requirements of the plugin:

  • Visual Composer to use shortcode via UI

Product Types

  • Simple Product
  • Variable Product
  • External Product
  • Grouped Product
  • Bundle Product ( from Woo Product Bundles )
  • Booking Product ( from Woo Bookings )
  • Subscription Product ( from Woo Subscriptions )

Shortcode Params

WooCommerce Product Embed has various parameters available to customize the output.

*NOTE: Default labels, designs and rest api options can configured via [ WooCommerce -> Settings -> Integration -> WC Product Embed ] page

*BONUS: You can create shortcodes using interface available at [ WooCommerce -> WC Product Embed ] page if used without Visual Composer

Parameter Key Default Value Description
id 0 ID of Product to Embed
hide_title 0 Set to 1 if you want to hide the title
hide_description 1 Set to 0 if you want to show the description
custom_title null Custom Title to display instead of Product’s Title
content null Custom Description to display instead of Product’s Excerpt
hide_price 0 Set to 1 if you want to hide the Unit Price and Total Price info
labels null Key => Value associate array of labels to override in display
info null Extra info to display at the bottom of product
nice_design 1 Set to 0 to ignore the design included via WC Product Embed
hide_image 1 Set to 0 to display Product’s Image
overlap_design 1 Set to 0 to ignore the Title and Image Overlap Design
overlap_image null Image to use instead of default product’s image. You can use either URL or thumbnail id
css null Custom design properties to be configured via Visual Composer Interface
quantity_source null Quantity Source for Bundle Product items when Per-Product-Pricing is enabled
def_unit_price null Default Unit Price to display for Bundle Product when Per-Product-Pricing and Quantity Source is in effect
product_source internal Product belongs to internal or external website
design_background_color null Background color for box
design_border_color null Border color for box
design_secondary_border_color1 null Secondary Border color #1 for box elements
design_secondary_border_color2 null Secondary Border color #2 for box elements
design_shadow_color null Shadow color for box
design_text_color null Text color for box
design_overlap_text_color null Text color for header overlap section
design_overlap_text_shadow_color null Text shadow color for header overlap section
design_secondary_text_color null Secondary text color for box
design_accent_color null Accent color for box elements
design_subtitle_text_color null Sub-Title/Sub-Heading text color for box
design_button_background_color null Background color for the button
design_button_text_color null Text color for the button
design_pricebox_background_color null Background color for the price box
design_pricebox_border_color null Border color for the price box
restapi_store_url null WooCommerce Store Link ( only for external product )
restapi_consumer_key null WooCommerce API Consumer Key ( only for external product )
restapi_consumer_secret null WooCommerce API Consumer Secret ( only for external product )

Shortcode Examples

Basic Example

[product-embed id=1]

Example with no title

[product-embed id=1 hide_title=1]

Example with custom title

[product-embed id=1 custom_title='Awesome Product']

Example with custom description

[product-embed id=1 hide_description=0 content='Something interesting about the product here']

Example with some extra info about the product

[product-embed id=1 info='Some PS about the product']

Example with plugin’s design disabled

[product-embed id=1 nice_design=0]

Example with no title and image overlap design

[product-embed id=1 overlap_design=0]

Example with product image

[product-embed id=1 hide_image=0]

Example with custom image for product

[product-embed id=1 hide_image=0 overlap_image=THUMBNAIL_ID_OR_IMAGE_LINK]

Screenshots

For Developers

WooCommerce Product Embed is completely hookable almost everywhere.

 

pembed_remote_product_embed
Type: filter
Description: This filter allows you to override the default template to load during remote product embed.

wc_embed_opt
Type: filter
Description: This filter allows you to override the configurations.

wc_pembed_product_types
Type: filter
Description: This filter allows you to override the list of supported product types.

pembed_track_advanced
Type: filter
Description: This filter allows you to enable/disable advanced tracking of products.

pembed_track_multiple_records
Type: filter
Description: This filter allows you to enable/disable multiple tracking records for same origin.

pembed_stat_table_data_view
Type: filter
Description: This filter allows you to override the default values to save for product view stats.

pembed_stat_table_data_click
Type: filter
Description: This filter allows you to override the default values to save for product click stats.

pembed_embed_reference_data_click
Type: filter
Description: This filter allows you to override the reference data for remote embed click action.

pembed_remote_product_embed
Type: filter
Description: This filter allows you to override the default template to load during remote product embed.

pembed_supported_status_product_stats
Type: filter
Description: This filter allows you to override the supported status for products to display the ‘Stats’ row action.

wc_pembed_settings
Type: filter
Description: This filter allows you to override the available settings for WooCommerce.

wc_pembed_grab_product
Type: filter
Description: This filter allows you to load products for custom integration.

wc_embed_labels
Type: filter
Description: This filter allows you to override the labels for product embedding.

wc_pembed_template_data
Type: filter
Description: This filter allows you to override the default values to pass-on to product embed template.

wc_pembed_price_format
Type: filter
Description: This filter allows you to change the price format.

wc_pembed_formatted_price
Type: filter
Description: This filter allows you to override the formatted price text.

wc_pembed_product_script
Type: filter
Description: This filter allows you to override the custom script to load for the related embedded product.

wc_pembed_variable_sattrs
Type: filter
Description: This filter allows you to override the default selections for the variable product.

wc_pembed_product_script_data
Type: filter
Description: This filter allows you to override the default data to pass to script for the embedded product.

pembed_track_onsite
Type: filter
Description: This filter allows you to enable/disable on-site tracking for products.

pembed_tracking_single_product_rows
Type: filter
Description: This filter allows you to override the number of rows to display for single product stats.

pembed_tracking_product_rows
Type: filter
Description: This filter allows you to override the number of rows to display for all products stats.

pembed_embed_reference_data
Type: filter
Description: This filter allows you to override the reference data for remote embedded product.

can_embed_product
Type: filter
Description: This filter allows you to enable/disable embedding product for specific product.

pembed_add_tracking_append
Type: action
Description: This action allow you to append custom codes to on-site embedding product.

pembed_add_tracking_append_remote
Type: action
Description: This action allow you to append custom codes to remote embedding product.

pembed_embed_reference
Type: action
Description: This action allow you to do what-ever you like to do with the reference data available for embedded product.

before_pembed_html_embed
Type: action
Description: This action is called before remote product embed starts.

after_pembed_html_embed
Type: action
Description: This action is called after remote product embed ends.

product_embed_disabled
Type: action
Description: This action is called when remote product embed is disabled for specific product

wc_pembed_pricing_html
Type: action
Description: This action is called to load the pricing row for embedded product with native support.

Labels in Shortcodes

WooCommerce Product Embed allows you to completely override labels displayed for the product.

  • Default Labels are loaded from [WooCommerce -> Integration ] page
  • You can change labels per product via ‘Product Embed Labels’ metabox while you are editing product
  • You can also change labels per shortcode instance either via Visual Composer UI or by attaching onto filter ‘wc_pembed_labels’
Key Description
quantity Label to display against ‘Quantity’ text
sale_price Label to display against ‘Sale Price’ text
total_price Label to display against ‘Total Price’ text
unit_price Label to display against ‘Unit Price’ text
single_price Label to display against ‘Price’ text for single product
multi_price Label to display against ‘Price’ text for muti or grouped or bundled product
add_to_cart Label to display against ‘Add to Cart’ text
optional_extras Label to display against ‘Optional Extras:’ text
Download Premium Magento Themes Free | download premium wordpress themes free | giay nam dep | giay luoi nam | giay nam cong so | giay cao got nu | giay the thao nu