Quantcast
Channel: weDevs Plugin Documentation
Viewing all 197 articles
Browse latest View live

Adding Functions

$
0
0

Functions.php is where a theme’s main functions are typically stored. A parent theme’s functions are always loaded with the child theme, but if you need to add more custom functions to your theme then you can do so by creating a new functions.php file within your child theme folder. The new functions will be loaded right before the parent theme’s functions. Your child theme’s functions.php file should start with a php opening tag and end with a php closing tag. In between, you can add your desired php code.

Write Function

You could easily write your functions in functions.php. The functions will be available through out your child theme.

Screenshot from 2014-06-16 15:39:57

The post Adding Functions appeared first on weDevs Documentation.


Editing Other Template Files

$
0
0

If you want to change more than just the stylesheet, your child theme can override any file in the parent theme: simply include a file of the same name in the child theme directory, and it will override the equivalent file in the parent theme directory when your site loads. For instance, if you want to change the PHP code for the site header, you can include a header.php in your child theme’s directory, and that file will be used instead of the parent theme’s header.php.

You can also include files in the child theme that are not included in the parent theme. For instance, you might want to create a more specific template than is found in your parent theme, such as a template for a specific page or category archive. See the Template Hierarchy for more information about how WordPress decides what template to use.

Edit Home Page

To change home page first copy dokan/front-page.php file from parent theme directory and paste it to child theme directory dokan-child/front-page.php with the same name. Now edit the code as you want.

Disable Home Page Sidebars

To disable home page sidebar change the code like folowlling.
Screenshot from 2014-06-16 13:15:00

Change col-md-9 and col-md-8 on line 17 and line 27 to col-md-12. Delete line 23,24 and 25 to remove product category sidebar on left.

Screenshot from 2014-06-16 13:38:46

Then delete line 129 to disable right sidebar. Now save the file and browse your site.

Without Sidebar View

dokan.dev

Product Listing (Custom Change)

You could change Home Page Product Listing by write raw code without calling any template but only functions on your front-page.php.

Screenshot from 2014-06-16 15:38:23

You can call your pre-define css class or id by which you could easily manage the design.

Screenshot from 2014-06-16 15:41:04

You can also use your defined function to customize more.

Screenshot from 2014-06-16 15:39:57

After doing this all, save all your changes. Home page product listing will have a new look with some extra features with it. It will show seller image, store name, store address and seller rating with every product. Visit your site:

dokan-custom

Product Listing (Template Change)

Copy content-product.php from plugins/woocommerce/templates/ and paste it to dokan-child/woocommerce/templates/ (create the directory) folder and save the file with the same name content-product.php. Now change the files html/css as you want. You could change it’s list view to div view and use your css class or id.

Screenshot from 2014-06-16 16:31:46

Change Default Page

Copy page.php from dokan theme directory and past it to child-theme. Now you change it’s content or design. Such as if you want to disable sidebar then delete get_sidebar(); on line 29 and save the file.

Change Single Page

Copy single.php from dokan theme directory and past it to child-theme. Now you change it’s content or design. Such as if you want to disable sidebar then delete get_sidebar( 'blog' ); on line 31 and save the file.

The post Editing Other Template Files appeared first on weDevs Documentation.

eShopper

$
0
0

eShopper is a Child Theme for our multipurpose marketplace theme Dokan. This theme will only work if you have installed Dokan. (and obviously WooCommerce!).

Prerequisite

  1. WooCommerce: That is needed to run Dokan.
  2. Dokan v 1.0.5 or Higher: eShopper won’t work below 1.0.5
  3. eShopper: This is what we are trying to do here!

How to install eShopper

I’m sure you bought and installed Dokan previously. So I’m skipping here the installation and configuration of WooCommerce and Dokan. If you need that part, you may see the How To Install Dokan docs.

  1. Go to Appearance > Themes > Add New > Upload
  2. Upload and Activate the theme.

And You’re done! Nothing more to do. Just go to your site, and see the change.

The post eShopper appeared first on weDevs Documentation.

Front End Action & Hooks

$
0
0

In WordPress; an Action is a PHP function that is executed at specific points throughout the WordPress Core.

Developers can create a custom Action using the Action API to add or remove code from an existing Action by specifying any existing Hook. This process is called “hooking”.

Header Actions

Hooks on header section.

before On top of every page.

Front Page Actions

Hooks on home page

dokan_home_slider_top Before home page slide.
dokan_home_on_slider On home page slide.
dokan_home_after_slider After home page slide.
dokan_home_after_featured After home page featred product.

Sidebar Actions

Hooks on sidebar section.

before_sidebar On top of every sidebar without store sidebar.
dokan_sidebar_store_before On top of store sidebar. perameter ( $store_user, $store_info )
dokan_sidebar_store_after On top of store sidebar. perameter ( $store_user, $store_info )

Store Page Actions

Hooks on store Page.

dokan_store_profile_frame_after After store banner. perameter ( $store_user, $store_info )

Shipping Page Actions

Hooks on shpping Page.

dokan_product_options_shipping After shipping page.

Note: All hooks of woocommerce plugin are available.

The post Front End Action & Hooks appeared first on weDevs Documentation.

Installing Dokan

$
0
0

As our Marketplace Theme Dokan is based on WooCommerce, So you Must install WooCommerce first.

Configuring the WooCommerce Plugin before uploading the theme would be good. So you may configure the plugin and modify the settings.

Oh and don’t forget to turn on the “anyone can register” from WordPress Settings panel. Or your sellers won’t be able to register from front end.

After all those mumbo-jumbo upload and install Dokan just like normal themes.

 

Next: After Installing Dokan

The post Installing Dokan appeared first on weDevs Documentation.

Back End Action & Hooks

$
0
0

Dokan have hooks for all possible sections on admin panel.

Shipping Actions

Hooks on admin panel.

dokan_admin_menu Hook for dokan admin menu.
dokan_admin_dashboard_metabox_left On left of admin dashboard metabox.
dokan_admin_dashboard_metabox_right On right of admin dashboard metabox.

Note: All hooks of woocommerce plugin are available.

The post Back End Action & Hooks appeared first on weDevs Documentation.

Seller Dashboard Action & Hooks

$
0
0

Dokan have hooks for all possible sections on seller dashboard.

Add Product Actions

Hooks on add product.

dokan_new_product_form Before add new product form subbmit button.
dokan_can_post_notice After add new product form notice.

Edit Product Actions

Hooks on edit product.

dokan_product_data_panel_tabs Hook of edit product tab panels tab title.
dokan_product_edit_before_main Before product edit main tab panel.
dokan_product_edit_after_main After product edit main tab panel.
dokan_product_edit_after_options After product edit options tab panel.
dokan_product_edit_after_inventory After product edit inventory tab panel.
dokan_product_edit_after_shipping After product edit shipping tab panel.
dokan_product_edit_after_attributes After product edit attributes tab panel.
dokan_product_edit_after_variations After product edit variations tab panel.
dokan_product_tab_content Hook of edit product tab panels tab content. Perameter ( $post, $seller_id )

Edit Product Sidebar Actions

Hooks on product Edit Sidebar.

dokan_product_edit_before_sidebar Before product edit sidebar.
dokan_product_edit_after_sidebar After product edit sidebar.
dokan_product_edit_after_downloadable After downloadable checkbox option.

Product Listing Actions

Hooks on product listing.

dokan_before_listing_product Before product listing table.
dokan_after_listing_product After product listing table.

Note: All hooks of woocommerce plugin are available.

The post Seller Dashboard Action & Hooks appeared first on weDevs Documentation.

Functional Action & Hooks

$
0
0

Dokan have hooks for all neccessery functions.

Functional Actions

Hooks on functions.

product_variation_linked Hook for manage product variation. Perameter ( $variation_id )
dokan_store_profile_saved After save store profile information. Perameter ( $store_id, $dokan_settings )
dokan_process_product_meta Hook to manage Product meta. Perameter ( $post_id )
dokan_checkout_update_order_meta Hook runs after save all order meta. Perameter ( $order_id )
dokan_new_product_added Hook runs after added any new product. Perameter ( $product_id, $post_data )

Note: All hooks of woocommerce plugin are available.

The post Functional Action & Hooks appeared first on weDevs Documentation.


Dokan Filters

$
0
0

Filters are functions that WordPress passes data through, at certain points in execution, just before taking some action with the data (such as adding it to the database or sending it to the browser screen). Filters sit between the database and the browser (when WordPress is generating pages), and between the browser and the database (when WordPress is adding new posts and comments to the database); most input and output in WordPress passes through at least one filter. WordPress does some filtering by default, and your plugin can add its own filtering.

The basic steps to adding your own filters to WordPress (described in more detail below) are:

  • Create the PHP function that filters the data.
  • Hook to the filter in WordPress, by calling add_filter()
  • Put your PHP function in a plugin file, and activate it.

Dokan Filters

Dokan included neccessery filters.

product_variation_linked Hook for manage product variation. Perameter ( $variation_id )
dokan_store_profile_saved After save store profile information. Perameter ( $store_id, $dokan_settings )
dokan_process_product_meta Hook to manage Product meta. Perameter ( $post_id )
dokan_checkout_update_order_meta Hook runs after save all order meta. Perameter ( $order_id )
dokan_new_product_added Hook runs after added any new product. Perameter ( $product_id, $post_data )

Note: All hooks of woocommerce plugin are available.

The post Dokan Filters appeared first on weDevs Documentation.

Front End Filters

$
0
0

Dokan included neccessery filters for front end section.

Front End Filters

Dokan included neccessery filters for admin settings.

dokan_slider_item_html Filter for home page slider html. Arguments ( $slide_html, $slide )
dokan_slider_html Filter for home page slider content. Arguments ( $slider_content, $slides, $metas )
dokan_slider_html Filter for home page slider content. Arguments ( $slider_content, $slides, $metas )
dokan_reports_order_link Order item link filter. Arguments ( $orders_link, $product_id, $product_title )
get_product_search_form Product search form filter. Arguments ( $form )
widget_title Widget title filter. Arguments ( $instance['title'] )
dokan_category_widget Category widget filter. Arguments ( array )
nav_menu_css_class Navigation menu class filter. Arguments ( array_filter( $classes ), $item, $args )
nav_menu_item_id Navigation menu id filter. Arguments ( menu-item-$id, $item->ID, $item, $args )
nav_menu_link_attributes Navigation menu link filter. Arguments ( $attr, $item, $args )
the_title Navigation menu title filter. Arguments ( $item->title, $item->ID )
walker_nav_menu_start_el Navigation menu filter. Arguments ( $item_output, $item, $depth, $args )
dokan_no_seller_image Seller image filter. Arguments ( $image )
default_attribute_visibility Product edit attribute tab visibility filter. Arguments ( true, $tax )
default_attribute_variation Product edit attribute variation filter. Arguments ( true, $tax )
dokan_post_status Product edit post status filter. Arguments ( array )
dokan_product_type_selector Product type selector filter. Arguments ( array )
post_date_column_time Post product time filter. Arguments ( $h_time, $the_order->id, $post, date, all )
dokan_product_data_tabs Product edit data tab filter. Arguments ( array )
single_product_large_thumbnail_size Single product view image size filter. Arguments ( shop_single )
single_product_large_thumbnail_size Single product view image size filter. Arguments ( shop_single )
the_content Purchase note filter. Arguments ( $purchase_note )

Note: All Filters of WprdPress and woocommerce plugin are available.

The post Front End Filters appeared first on weDevs Documentation.

Function Filters

$
0
0

Dokan included all neccessery function filters.

Function Filters

Dokan function filters.

dokan_email_admin_mail Admin mail filter. Arguments ( get_option( 'admin_email' ) )
dokan_category Category Filter. Arguments ( $dokan_category )
payment_withdraw_option Admin withdraw method Filter. Arguments ( $method )
dokan_withdraw_methods Seller withdraw method Filter. Arguments ( $method )
dokan_widget_args Widget argument filter. Arguments ( array )
dokan_reports_charts Report chart filter. Arguments ( $charts )
dokan_get_dashboard_nav Seller dashboard navigation filter. Arguments ( $urls )
dokan_product_status_case Product status filter. Arguments ( $name, $status )
dokan_my_account_my_sub_orders_actions Account order filter. Arguments ( $action, $order )
dokan_can_add_product Seller can add product filter. Arguments ( $errors )
dokan_can_post Seller can sell product filter. Arguments ( $errors )

Note: All Filters of WprdPress and woocommerce plugin are available.

The post Function Filters appeared first on weDevs Documentation.

Query Filters

$
0
0

Dokan included all neccessery function filters.

Query Filters

Dokan query filters.

dokan_reports_get_order_report_query Order report query filter. Arguments ( $query )
dokan_reports_get_order_report_data Order report data query filter. Arguments ( $wpdb->$query_type( $query ), $data )
dokan_reports_get_order_report_data Order report data query filter. Arguments ( $wpdb->$query_type( $query ), $data )
dokan_seller_list_query Seller list query filter. Arguments ( array )
dokan_get_featured_products Feature product query filter. Arguments ( array )
dokan_best_selling_query Best selling product query filter. Arguments ( $args )
dokan_top_rated_query Top rated product query filter. Arguments ( $args )
dokan_on_sale_products_query Product on sale query filter. Arguments ( $args )
dokan_product_listing_query Product listing query filter. Arguments ( $args )

Note: All Filters of WprdPress and woocommerce plugin are available.

The post Query Filters appeared first on weDevs Documentation.

How to Get API APP ID ?

$
0
0

If you need to setup a API APP ID click on this link: http://apps.paypal.com

You then need to sign in with your paypal account.

Click on New App.

Then You will be asked to provide a Title and Description. You can enter Dokan or your site name for title and you can write the purpose to use that app api id.

Then, proceed to the adaptive payments section and choose basic payments > parallel payments.

Add your estimated monthly/average transactions.

Upload your ID and add your url.

When the app gets approved, you will get 2 numbers. One will be a sandbox API APP ID and one will be a live number.

 
*** This Doc was made from the contribution with one of our valuable client Jason Thresher. We’re Really Thankful to him.

The post How to Get API APP ID ? appeared first on weDevs Documentation.

How to password protect a post

$
0
0

To password protect a post, you need to give the option to the users. So to that, insert a text field in the form with the meta key post_password and insert this code snippet in your themes functions.php

How to password protect a post

/**
 * Set password on a post
 *
 * @param  array $args
 * @return array
 */
function wpufe_post_passowrd( $args ) {
    if ( isset( $_POST['post_password'] ) ) {
        $args['post_password'] = $_POST['post_password'];
    }

    return $args;
}

add_filter( 'wpuf_add_post_args', 'wpufe_post_passowrd' );
add_filter( 'wpuf_update_post_args', 'wpufe_post_passowrd' );

The post How to password protect a post appeared first on weDevs Documentation.

How to Upgrade License

$
0
0

Suppose you’re using WP User Frontend Pro‘s Personal license and that allows you to use only in a single site. But now you need to use in some more sites. So you’ll need a Developer or Business license; But wait! You don’t need to pay the full price!

You just need to pay the additional amount. Like - Personal license costs $49 and Business License costs $89. So you need to pay $40 to upgrade from Personal to Business.

How to:

1. Make a payment to our Paypal Account: sales@wedevs.com

2. Write in the notes why are you making this deposit. Like you want to update the license of a plugin or a theme. Like – Update my Dokan Theme’s license to Developer.

That’s it! You’re done!

After the payment made, we will contact you within 12 hrs. (max).

The post How to Upgrade License appeared first on weDevs Documentation.


Reply via email

$
0
0

This plugin helps you to post comment via your email.

Step 1: Configure settings

  • Navigate to “project manager->settings->reply via E-mail”
  • Choose messaging handelar option ( e.g. :’mandrill’ or ‘postmark’ )
  • Fill the “Reply-To Address” field by “reply+%1$d-%2$s@exapmle.com”.

1

Step 2: Configure Mandrill

mandrill-domain-add

  • Click “DNS Settings” then a dialogbox will appear. You will get two priority number and two server address.

mandrill-DNS-Settings

  •   Copy both priority number and server address. Then copy it to your hosting sites MX Records.

Mx-records

  • After adding priority and server address back to the link https://mandrillapp.com/inbound and click “test” button. Now if you find DNS Mx:valid then its ok.

mx-valid

  •   Now click “Routes->Add new route” then two input fields will appear like address matches: fields insert reply+* and Post to URL: fields insert the url where you want to get Madrill response.

route
Your Mandrill configuration will be finished after filling those two field.

Step 3: Configure postmark

  • Change your hosting sites MX Records by

          Priority: 10

          Destination: inbound.postmarkapp.com

  • Then go to your created server and change settings

post-mark-settings

The post Reply via email appeared first on weDevs Documentation.

Add-on Installation

$
0
0

Installing the Invoice add-on for WP Project Manager Pro is as easy as installing a plugin. Simply head over to Plugins -> Add New -> Upload and upload the zip file. Activate when the upload completes and you’re done.

invoicing for wp project manager pro

The 4 steps to install Invoice Add-On.

Alternatively, if you prefer to upload via FTP, make sure you place the file in wp-content/plugins folder and activate the plugin from Plugins menu.

Invoice menu will show up in your projects as soon as you activate the plugin.

The post Add-on Installation appeared first on weDevs Documentation.

Invoices Settings

$
0
0

After installing Invoices Add-on you will be able to configure some settings related to Invoices add-on. You can go to settings from Project Manager -> Settings.

invoice settings

An overview of Invoices settings.

Currency

You can set the currency you want to charge your users in.

Payment Gateway

Choose the payment gateway you want to use. By default only PayPal is available. You can optionally add Stripe as a payment gateway by getting the Stripe add-on.

PayPal Email

Enter your PayPal email address to receive payment to.

Enable Demo/Sandbox Mode

The PayPal sandbox mode is for programmers to test payment software before running real transactions. You can test it out by marking the checkbox here.

PayPal Instructions

Instructions you type in here will show up to your clients along with the PayPal pay button.

Organization and Address

The following forms will let you fill in your company name and address. If you fill it in, your company address will be automatically added to all invoices you create. You can add or edit your company address when you create an invoice, but adding your company address here makes the process faster for you.

Make sure to click the “Save Changes” button to confirm and save your settings.

The post Invoices Settings appeared first on weDevs Documentation.

Create New Invoice

$
0
0

Creating a new invoice is easy and fast. First you need to navigate to the project under which you want to create your invoice. You can create invoices under every project you have. Here’s how to create an invoice for your client.

invoice first half

Create New Invoice

  • Go to Projects and choose a project you want to create invoice under.
  • Click Invoices tab.
  • Click New Invoice.
  • You will see an invoice creation form like the image above.

Below is a short explanation of what each of the fields do in New Invoice form.

Invoice Title

Give your invoice a title that will show up on as the header of your invoice.

Client

Choose which client you’re going to issue the invoice to. If you select a client here, he or she will see this invoice issued to him/her when they log in.

Addresses

Here you will find two address fields for To and From placement. “From” will list your company address by default if you have set it in the settings. You can update the address regardless.

The “To” field will have the address of your client which you can manually enter here. Both addresses will show up in the invoice.

Due Date

This field is self-explanatory. You can input a due date for the invoice.

Invoice Discount

If you want to offer a discount to your client, you can type in the amount here.

Partial Payment

You can enable partial payment for the invoice by checking this option. Checking this option will enable a new field where you can type in the amount  of partial payment.

Initial Invoice Entry

This is where you enter all the items/hours for which you will be charging your clients. This has two parts.

Task

If you want to charge your client by the hour, or for hourly tasks, this is where you will enter your tasks. You can create multiple tasks, give them a name and a description, add an hourly rate and put in the amount of hours you’re charging. Invoices will automatically calculate the charges.

You can add or delete tasks using the green and red buttons before the task items.

invoices in wp project manager

Item

On the second part, you can add items for which you are going to charge your client. You can add as many items as you want, add unit price and quantity. You can also put in Tax charges should it apply. Invoices will automatically calculate and show the total amount at the bottom.

Terms

You can add terms and conditions at the bottom of the invoice. Text you enter into this field will show up in the invoice.

Notes Visible to Client

Just like Terms, you can optionally add custom notes for your clients which will be shown at the bottom of the invoice. You can add those text in this field Notes Visible to Client.

When you’re done, you should click the Add Invoice button and that will save the invoice. The client, when logged in, can see the invoices issued to them from front-end. See how to show invoices on the site to your clients.

The post Create New Invoice appeared first on weDevs Documentation.

Show Invoices on Front-End

$
0
0

You can let your clients see the invoices issued to them on the front-end of your site. All you have to do is follow through:

invoices

  • Create a new page. Name it Invoices.
  • In the new page, just type in the short code [cpm_invoice]
  • Publish the page.

Now when your clients are logged in, you can direct them to the Invoices page. They’ll see all the invoices you issue to them there. (Note that you need to choose client when creating a new invoice. Otherwise they will not see it there.)

The post Show Invoices on Front-End appeared first on weDevs Documentation.

Viewing all 197 articles
Browse latest View live


Latest Images