开发者 | mainichiweb |
---|---|
更新时间 | 2024年11月22日 13:48 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
plugin-name.php
to the /wp-content/plugins/
directory<?php do_action('plugin_name_hook'); ?>
in your templatesFirst, you need to create a "Private App" on Shopify side.
You can use a shortcode to display a list of products. [shopifyProductsList] Code for use in template files. echo do_shortcode('[shopifyProductsList]'); You can customize the display by setting the attributes. Example : [shopifyProductsList limit="6" column="2" type="category-a,category-b,category-c" sort="low-price"]
You can display a buy button for a specific product by specifying the product ID. [shopifyBuyButton id={product-id}] You don't need to specify the ID as long as it is within the loop of the product page. [shopifyBuyButton] You can customize the display by setting the attributes. Example : [shopifyBuyButton id="0000000000000" alignment="center" image="580" quantity="show"]