Linux 软件免费装

Easy Cart

开发者 zeshanb
更新时间 2023年9月28日 06:33
PHP版本: 8.0 及以上
WordPress版本: 6.3
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode Shopping Cart Transient Storage Sessions

下载

详情介绍:

屏幕截图:

  • On other pages you can create add to cart buttons using [add_to_cart /] shortcodes using the following attributes - itemid, product_name, product_desc, product_qty.
  • Add to cart button takes on the button styling from your Wordpress theme.\
  • Cart page displays and totals the items selected using add to cart button.
  • This is the JSON error in the editor you can simply ignore.
  • Use shortcode blocks and column block to create cart page slug.
  • Minimum permalink setting uses post name for the cart to function properly
  • Add to cart buttons using shortcode blocks. Notice there are no quote marks used for product_qty and price.
  • Using Gutenberg shortcode

升级注意事项:

1.2
  • Added output buffer to support shortcode content appearance where shortcode is placed using editor.
1.1
  • Add to cart buttons support full site url. Support for easy cart usage in subfolder wordpress installations.
1.0
  • List items and display total. Use shortcode to create add to cart buttons and display cart

常见问题:

There is no checkout?

sorry, not at the moment. Easy Cart is GPLv2 and the code is self explanitory.

Why is there a JSON error notification when I add [easy_cart /] shortcode on cart page?

You can ignore JSON error. When testing your add to cart button be sure to close the browser window entirely and open a new browser window. This will create a new session. You can also click on clear cart link. When testing your add to cart buttons also remember to monitor easy-cart cookie by pressing [shift] + [F9] on Firefox browser.

What about templates?

Use standard WordPress templates. You can create a wordpress page template for the cart display e.g "pagetemplate-cart.php". Even the cart uses basic html table tags to display items and the item list table may be stylized to your desire.

What about the use of cookie?

You can add the following text to your sites privacy policy: This site uses "easy-cart" cookie to allow this site to temporarily store and display your item selections. The sites database auto garbage collects and deletes your selection after sixty minutes.

How can I create my own checkout?

In a pagetemplate-cart.php file in your wordpress you may do as you wish with the total amount and the post requests. Use the results and pass to a checkout slug, pagetemplate-checkout.php. Have fun!

更新日志:

1.3 1.2 1.1 1.0