[WordPress] 外掛分享: Magento 2 WordPress Integration

WordPress 外掛 Magento 2 WordPress Integration 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Magento 2 WordPress Integration」是 2016-09-26 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2022-05-29,距離現在已有 1071 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.3 以上。
  • 有 7 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ayachmenev | modernminds | maximtkachuk | yaroslav0yachmenov |

外掛標籤

magento | magento2 | ecommerce | e-commerce | integration |

內容簡介

將強大的電子商務解決方案Magento 2與WordPress的優秀CMS功能結合。Magento 2 WordPress Integration外掛將Magento 2與WordPress集成,讓使用者享受統一的用戶體驗。使用shortcode或function來共享session/cart數據、導航菜單、頁眉、頁腳、產品、佈局元素和靜態區塊。

此外掛程式並不是用來取代Magento 2,而是允許你通過整合Magento和WordPress的設計來為訪問者創建無縫的用戶體驗。

特點

在WordPress主題中包含Magento 2塊
使用shortcode將產品、購物車、佈局塊和靜態塊包含到WordPress編輯器中(“添加Magento2 Shortcode”按鈕)
在Magento 2和WordPress之間共享session和cart數據
在WordPress編輯器中包含產品信息
將你的Magento 2和WordPress主題無縫地集成在一起
使用session數據顯示購物車/迷你購物車
有4個小工具可以顯示靜態區塊、產品滑塊、單個產品或購物車
滑塊和單個產品範本可以在當前主題中被覆蓋
如果你的主題使用HTML5方法,就可以自動添加頭部和底部來源於你的Magento 2

基本用法

你可以在你的主題文件中使用以下函數:

獲取頭文件的HTML內容(作為字符串):m2i_get_header()
獲取底部文件的HTML內容(作為字符串):m2i_get_footer()
獲取CSS文件的HTML內容(作為字符串):m2i_get_links_css_tags()
獲取JS文件的HTML內容(作為字符串):m2i_get_scripts_from_head()或m2i_get_scripts_from_body()
根據CSS選擇器獲取網站部分(元素)的HTML內容(作為字符串):m2i_get_els_by_css_selector($css_selector)
根據CSS選擇器獲取網站部分(元素)的HTML內容(作為字符串):m2i_get_el_by_css_selector($css_selector)
將產品數據作為數組獲取:m2i_get_product($sku_or_id, $by_id = false)
作為數組獲取類別列表:m2i_get_cat_collection($is_active = true, $level = false, $sort_by = false, $page_size = false)
作為數組獲取商店視圖列表:m2i_get_stores()
作為數組獲取區塊列表:m2i_get_blocks()
作為數組獲取客戶信息:m2i_get_customer_info()
獲取CMS區塊的HTML內容(作為字符串):m2i_get_cms_block($attrs),其中$attrs ['name']是您的Magento2中CMS區塊的名稱
獲取購物車的HTML內容(作為字符串):m2i_get_cart($attrs),如果在$attrs中設置了“hide_if_empty”關鍵字,將會在空時隱藏它。

你可以在WordPress編輯器中使用以下shortcode:

顯示區塊:[m2i_cms_block name=”name_in_layout”]
顯示滑塊:[m2i_category_slider dom_id=”unique-id” cats_ids=”categories_ids_separated_by_comas” qty=”quantity_of_products” margin=”in_number”]
顯示單個產品:[m2i_product_block id=”product id”]或[m2i_product_block sku=”product sku”]
顯示購物車:[m2i_cart]或[m2i_cart hide_if_empty]

你可以在你當前的主題目錄下覆蓋滑塊和單個產品模板
CURRENT_THEME_DIR/m2i-templates/product-view.php或slider.php

原文外掛簡介

Combine the powerful e-commerce solution Magento 2 with the excellent CMS capabilities of WordPress. The Magento 2 WordPress Integration Plugin integrates Magento 2 with WordPress so users will have an unified user experience. Share session/cart data, navigation menus, header, footer, products, layout elements and static blocks by using shortcodes or functions.
This plugin is not meant to replace Magento 2, instead it will allow you to create a seamless user experience for your visitors by integrating the design of Magento and WordPress.
Features

Include Magento 2 blocks in your WordPress theme
Use shortcodes to include products, cart, layout blocks, and static blocks in the WordPress editor (“Add Magento2 Shortcode” button)
Share session and cart data between Magento 2 and WordPress
Include product information in your WordPress editor
Seamlessly integrate your Magento 2 and WordPress theme
Display cart/mini cart with session data
4 Widgets to display static blocks, product slider, single product or cart
Slider and Single Product templates can be overridden in current theme
Auto adding possibility of header and footer from your Magento 2 (only if your theme is using HTML5 approach)

Basic Usage
You can use the following functions in your theme files:

Get HTML content (as string) of the header: m2i_get_header()
Get HTML content (as string) of the footer: m2i_get_footer()
Get HTML content (as string) for CSS files: m2i_get_links_css_tags()
Get HTML content (as string) for JS files: m2i_get_scripts_from_head() or m2i_get_scripts_from_body()
Get HTML content (as string) of the parts (elements) of the site by CSS selector: m2i_get_els_by_css_selector($css_selector)
Get HTML content (as string) of the part (element) of the site by CSS selector: m2i_get_el_by_css_selector($css_selector)
Get Product Data as array: m2i_get_product($sku_or_id, $by_id = false)
Get Categories List as array: m2i_get_cat_collection($is_active = true, $level = false, $sort_by = false, $page_size = false)
Get Store Views List as array: m2i_get_stores()
Get Store Views List as array: m2i_get_blocks()
Get Customer Info as array: m2i_get_customer_info()
Get HTML content (as string) of the CMS block : m2i_get_cms_block($attrs), where $attrs[‘name’] – name of the CMS block in your Magento2
Get HTML content (as string) of the Cart: m2i_get_cart($attrs), if in $attrs is set key ‘hide_if_empty’ it will be hidden if empty.

You can use the following shortcodes in your WordPress editor:

Show Block: [m2i_cms_block name=”name_in_layout”]
Show Slider: [m2i_category_slider dom_id=”unique-id” cats_ids=”categories_ids_separated_by_comas” qty=”quantity_of_products” margin=”in_number”]
Show Single Product: [m2i_product_block id=”product id”] or [m2i_product_block sku=”product sku”]
Show Cart: [m2i_cart] or [m2i_cart hide_if_empty]

You can override Slider and Single Product templates in your current theme directory
CURRENT_THEME_DIR/m2i-templates/product-view.php or slider.php

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Magento 2 WordPress Integration」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.2 | 1.3 | 1.4 | 1.1.2 | 1.1.3 | 1.2.6 | 1.2.7 | 1.3.1 | 1.4.1 | trunk | 1.2.5.1 | 1.3.0.1 |

延伸相關外掛(你可能也想知道)

  • WooCommerce 》p>WooCommerce是全球最受歡迎的開源電子商務解決方案之一,擁有世界上最多的市場份額。, 我們的核心平臺是免費的、靈活的,並擁有全球社區的支持。開源的自由...。
  • Popup Builder & Popup Maker for WordPress – OptinMonster Email Marketing and Lead Generation 》🤩使用這個外掛可以製作彈出視窗和訂閱表單,增加電子郵件訂閱者、銷售和業績–最受歡迎的彈出視窗建構器!🚀, 最佳的 WordPress 彈出視窗建構器和電子報彈窗...。
  • WooCommerce PayPal Payments 》PayPal 最新、功能最完備的付款處理解決方案。除了接受 PayPal 獨有的付款方式,也可接受信用卡/借記卡和本地付款方式。開啟 PayPal 付款選項或處理完整的付...。
  • Mailchimp for WooCommerce 》加入 Mailchimp 的 1,700 萬客戶,這是全球最大的行銷自動化平台,以發展您的電子商務行銷策略。藉由官方 Mailchimp for WooCommerce 整合,您的客戶及其購買...。
  • Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress 》理 their accounts., , Content Restriction, Restrict content based on membership level, user role, or custom capabilities. With ProfilePress members...。
  • WooCommerce PayPal Checkout Payment Gateway 》⚠️ PayPal 結帳功能將於 2022 年 3 月 1 日停止支援,外掛的更新已在 2021 年 9 月 1 日停止。我們建議轉換至 PayPal Payments。, 這是一個用於 WooCommerce ...。
  • WooCommerce Multilingual & Multicurrency with WPML 》這個外掛包含您需要開始跨國銷售所需的一切。輕鬆地設定和管理多種貨幣下的產品,不論您的商店大小和負責團隊的規模。或者,您可以升級購買 WPML,將您的整個...。
  • Mercado Pago payments for WooCommerce 》官方的 Mercado Pago 外掛可讓您為您的網路商店處理付款,讓使用者以他們喜歡的付款方式完成購買。, 安裝不需要技術知識,您可以從我們的開發者網站上按照整...。
  • WooCommerce Admin 》WooCommerce Admin 已不再被支援, WooCommerce Admin 已經成為 WooCommerce 的一部分!為了確保您的商店繼續順利運行,請確認 WooCommerce 已更新至最新版本...。
  • TI WooCommerce Wishlist 》增加銷售和轉換率, 您是否正在尋找提高您的 WooCommerce 網站銷售量的方法?不用再找了,使用 WooCommerce 愿望清單!我們強大的工具旨在提高轉換率和增加網...。
  • Mollie Payments for WooCommerce 》, 透過 Mollie 的強大外掛,您可以在 WooCommerce 中快速整合所有主要的付款方式,不論您在何處需要它們。只需將它們直接丟入您的 WooCommerce 網店中,Molli...。
  • Matomo Analytics – Ethical Stats. Powerful Insights. 》已經使用 Matomo On-Premise 或 Matomo Cloud 的使用者?您需要使用 WP-Matomo 外掛而非此外掛。, 對於所有想要以更輕鬆的方式獲取顧客洞察資訊以發展自己的...。
  • Download Manager 》WordPress Download Manager 是一款檔案/文件管理外掛程式,可讓您管理、追蹤和控制從您的 WordPress 網站下載的檔案。您可使用密碼、使用者角色來控制檔案的...。
  • Download Monitor 》Download Monitor 是一個提供上傳及管理可下載檔案的介面外掛(支援多版本),可以插入下載連結到文章中並記錄下載次數。, 特點, , 在熟悉的 WP 介面中新增、...。
  • WC Custom Thank You 》這個免費的 WooCommerce 外掛允許你為你的顧客定義一個特定且自訂的感謝頁面。, 購買後,你的顧客會被重定向到自訂的感謝頁面,而不是預設的 WooCommerce 感...。

文章
Filter
Apply Filters
Mastodon