飞龙博客

深入经藏 智慧如海

how to use dukapress wordpress ecommerce plugin abc

feilong.org 修订于2010-12-06 10:33:10 1,279

how to use dukapress wordpress ecommerce plugin step by step

Though there are many free wordpress ecommerce plugins,such as wordpress e-commerce plugin/shopp/eshop/chopy shop/catablog/really-simple-e-commerce/wordpress-paypal-shopping-cart/yak-for-wordpress/zingiri web shop/wazala/ecwid-shopping-cart/artpal/avactis-shopping-cart-affiliate-widget/ecwid-shopping-cart and so on,feilong suggest you to have a try of this wonderful plugin:dukapress

how to use dukapress wordpress ecommerce plugin step by step?Follow feilong.

ONE,Where to publish my products?

It is a simply ecommerce plugin based on post or page or your custom post type,it do not tick wordpress core framework away like wordpress e-commerce,but is not too simply as wordpress-paypal-shopping-cart either to use as a solution of echop.

You can post or edit your products just in the screen of /wp-admin/post-new.php or /wp-admin/post-new.php?post_type=page,of course commonly you shoul use /wp-admin/pos-new.php

TWO,How to give categories to my products?

Another way to post your products is to create your post type special for your products.dukapress has already register a custom post type labeled "duka" and named "Products" in the file:/wp-content/pluginsdukapress/php/dp-products.php You can use it directly or you can neglect it and create your own post type eg "movies" by way of using this plugin: custom-post-type-ui

Of course, if you do not like adding and using any custom post type,use the default post type "post",and add your categories here:/wp-admin/edit-tags.php?taxonomy=category where you has been so familiar as before.This just as feilong has done.

So how to neglect the custom post type which labeled "duka" and "the sceond icon of duka" at backend ?

First open the file:/wp-content/plugins/dukapress/php/dp-products.php ,then

<?php
//change
//'show_ui' => true,
//to
'show_ui' => false,
?>

THREE,How to fill my metadata in /wp-admin/post-new.php for eaxmple?

Dukapress has added an metabox which labeled as "DukaPress Product options" already.This fuction was defined in the file:/wp-content/plugins/dukapress/php/dp-products.php

You can edit this function area "Add Meta Box for ease".For eaxmple,feilong do not want the meta box appears on /post-new.php?post_type=page or /wp-admin/post.php?post=1&action=edit

So just note this line to cancer its function.

<?php
//add_action('submitpage_box', 'dp_add_meta_box');
?>

FOUR,How to display thest meta keys and values,and how to display "add to cart" button on each product page?

There are two ways to display meta keys and values and the "add to cart" button.These infos are named "product metadatas" in dukapress.

One way is to use shortcode when you post or edit a product,the other is using the according template tag.Commonly feilong use the template tag because the products are too many to insert shortcodes by hand.

Shortcode to display product metadatas when editing a post.
[dpsc_display_product]

Template tag to echo product metadatas in your theme.

<?php
echo dpsc_pnj_display_product_name($atts);
?>

FIVE,How to display the shopping cart when adding to cart?

Dukapress has provide two widgets named "dukapress shopping cart" and "mini dukapress shopping cart",you can display them just drag them to sidebar or somewhere other in /wp-admin/widgets.php

But if you want to use the according template tags in your theme file,eg siderbar.php

This is the mini dukapress shopping cart:

<div class="dpsc-mini-shopping-cart" id="dpsc-mini-shopping-cart">
<?php echo dpsc_print_cart_html(TRUE);?>
</div>

This is the full dukapress shopping cart:

They are almost the same? No,look it carefully,they are only using the same function dpsc_print_cart_html() which defined in the file:/wp-content/plugins/dukapress/php/dp-widgets.php

SIX,How to display check out page when a customer want to check the order?

When a customer add some products into "the shopping cart", they can click "Empty your cart" or"Go to Checkout".

So he/she came to the chectout page which you should create firstly, eg feilong has created a page which path is "/account/my-checkout".

But why there is nothing in this checkout page? Aha,you should put a shortcode in this page before publishing it.

The shortcode to display checkout infos is:
[dpsc_checkout]

It displays such infos:
the shopping cart order in details again
the total fees including "Price" "Shipment" and "Discount"
area of "Enter Discount Code"
the "Billing Address" form for the customer to fill in
and the "Make payment" button

This is called "One page checkout".

SEVEN,How to make payment?

Open this url of your wordpress backend and choose your payment methods: /wp-admin/admin.php?page=dukapress-shopping-cart-settings

The best payment for a shop online is paypal.

Of course you can use other free payments such as AlertPay Business Account here

Or use moneybookers Business account to Start accepting payments for your online shop.

更新网址:http://feilong.org/usage-dukapress-wordpress-ecommerce-plugin
最初发布:20101202 06:19:39 feilong.org 于广州

加入收藏夹,查看更方便。

所在分类: wordpress

新作:

旧文:

飞龙前端QQ群