[WordPress] 外掛分享: PrestaShop Integration

首頁外掛目錄 › PrestaShop Integration
100+
安裝啟用
★★★★
4.6/5 分(13 則評價)
891 天前
最後更新
問題解決
WordPress 3.3.0+ v0.9.15 上架:2012-01-12

內容簡介

這個外掛定義了四種小工具和各種 shortcode,以整合 WordPress 和 PrestaShop 發行版 1.4、1.5、1.6 或 1.7。

這個外掛定義了一個 shortcode,可用於在博客上顯示產品列表,只需使用[ps_product_list id_category=X n=C p=P tpl=TPL],其中 X 為您要顯示的類別的類別 ID(預設使用首頁類別 1),C 是您要顯示的產品數量(預設值為 10),P 是頁碼(預設為 1),TPL 是要使用的 Smarty 模板(預設為product-list.tpl)。您可以用產品 ID 清單替換 id_category。

請注意,此模組將您的 PrestaShop 主題(CSS 和 JavaScript)匯入到您的博客中,但這是可選的,自從版本0.6以後可選。一般來說,您需要一個從 PrestaShop 主題翻譯過來的 WordPress 主題:它需要與 PrestaShop 主題具有相同的 XHTML 佈局,並且您必須在博客主題中用小工具區域替換 PrestaShop HOOK 標記,可能像這樣:

<div class="prestashop-sidebar"><ul class="xoxo">
<?php dynamic_sidebar( 'hooktop-widget-area' ); ?>
</ul></div><!-- .prestashop-sidebar -->

此外,您可能需要使用 PrestaShop 的內部 JavaScript 庫來替換內部 JavaScript 庫,以避免衝突。有關該插件的更多信息,請查看法語的PrestaShop Integration頁面。

可用的小工具如下:

PrestaShop Integration Hook

此小工具用於插入 PrestaShop 的主要 hook 之一:

頁面頂部
左側列區塊
右側列區塊
頁尾

PrestaShop Integration Module

此小工具用於直接插入 PrestaShop 模組,該模組必須附加到其中一個主要 hook 才能顯示。

PrestaShop Integration Products

此小工具用於顯示附加到 WordPress 帖子的產品列表,如果沒有附加產品,則不會輸出。這個小工具已經被下面的小工具取代了。

PrestaShop Integration Template

此小工具用於顯示 tpl 文件,它可以根據當前帖子所附加的產品包含產品列表,即使當前帖子沒有附加產品,也可以顯示該模板。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.15) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PrestaShop Integration」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugins defines four widgets and various shortcodes to integrate WordPress and PrestaShop release 1.4, 1.5, 1.6 or 1.7.
This plugins defines a shortcode that can be used to display products on your blog. Only products list has been defined by using [ps_product_list id_category=X n=C p=P tpl=TPL] where X is the category id of the category you want to display (by default the home category 1 is used), C is the number of product you want to display (by default 10), P is the page number (by default 1) and TPL is the Smarty template to use (by default product-list.tpl). You may replace id_category by id_product list of product ids separated by comma.
Note that the module will import the current theme of PrestaShop to your blog (both CSS and Javascript) but this is optional since 0.6. Generally you need a WordPress theme that is translated from the PrestaShop theme : it need to have the same XHTML layout and you have to replace PrestaShop HOOK markers by widget area in your blog theme, maybe like this :

Furthermore, you may need to replace internal Javascript library by the PrestaShop one to avoid conflicts. For more information about the plugin, please check PrestaShop Integration page in french.
The available widgets are :
PrestaShop Integration Hook
This widget is used to insert one of the main PrestaShop hooks :

Top of pages
Left column block
Right column block
Footer

PrestaShop Integration Module
This widget is used to insert a PrestaShop module directly, the module must be attached to one of the main hooks to be displayed.
PrestaShop Integration Products
This widget is used to display the product list attached to a WordPress post. If there are no product attached, no output is made. This widget has been obsoleted by the following one.
PrestaShop Integration Template
This widget is used to display a tpl file, it may include a product list according to product attached to current post. You may still display the template even if no product have been attached to the current post.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon