Forum Replies Created

Viewing 5 Topics - 1 through 5 (of 5 total)
Author Posts
July 13, 2015 at 12:03 pm in reply to: Need to get User Subscription in PHP 55392
Bradley Bradley

Thank you thats great.

I have yet to try this but im sure it will work.

Thank you.

July 4, 2015 at 10:11 am in reply to: Need to get User Subscription in PHP 54182
Bradley Bradley

Is it possible to wrap this code in a filter which checks what subscription (Dokan Subscriptions Plugin) a user has?

/**
 * Unset an item from the menu
 *
 * @param  array  $urls
 *
 * @return array  
 */
function prefix_dokan_add_seller_nav( $urls ) {
     
    unset( $urls['reviews'] );
 
    return $urls;
}
 
add_filter( 'dokan_get_dashboard_nav', 'prefix_dokan_add_seller_nav' );
July 4, 2015 at 10:09 am in reply to: Need to get User Subscription in PHP 54181
Bradley Bradley

Hi Towhid.

Thank you for your help on this matter.

We are using the DOKAN PLUGIN not the DOKAN THEME.

We are using a custom theme and have already setup a child theme for code.

Is there a Template Structure that the DOKAN PLUGIN uses (not the theme) so that we can modify the Plugins files without affecting the core DOKAN PLUGIN files.

How I would imagine this working is similar to the WOOCOMMERCE PLUGIN that Dokan Utilises.
There is a Template hierarchy Structure within WooCommerce that allows you to modify the core plugin files
by copying them to your active theme directory, this then wont completely kill the site on a plugin upgrade.

http://docs.woothemes.com/document/template-structure/

Alternatively, you can edit these files in an upgrade safe way through overrides. Simply copy it into a directory within your theme named /woocommerce, keeping the same file structure, but removing the /templates/ subdirectory.

What I am asking is if the DOKAN PLUGIN also has a similar template hierarchy setup.

July 1, 2015 at 1:52 pm in reply to: Need to get User Subscription in PHP 53884
Bradley Bradley

While your at it, if this ‘customisation’ (which I don’t believe is really customisation – just asking if you have a hook or filter I can jump on) has to be handled with alterations of Core Dokan Plugin Files.

Can you please give me instructions on setting up a Template Hierarchy so I am not screwing myself next time your Plugin needs to be Updated.

Again, Any Help would be Greatly Appreciated.

Thank you.

July 1, 2015 at 1:15 pm in reply to: Need to get User Subscription in PHP 53877
Bradley Bradley

Hey Towhid.

Thanks for getting back to us.

Can you give some direction on where to start with the customisation?

OR

Is it possible to assign subscription packs from your subscription plugin specific WordPress user roles?
For example, when user purchases subscription A they are assigned the WordPress user role (A Subscriber)
When they purchase subscription B they are assigned the WordPress user role (B Subscriber)
When they dont renew after the subscription period they are automatically dropped back to WordPress user role (No subscription)

I appreciate your help in this matter.

As I said, any direction would be greatly appreciated.

Thank you.

Viewing 5 Topics - 1 through 5 (of 5 total)