Skip to content

Commit

Permalink
fix: promotions and upgrading data issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Dec 11, 2018
1 parent 46b05db commit 971106e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function promotional_offer() {
// check if it has already been dismissed
$offer_key = 'dokan_christmas_notice';
$hide_notice = get_option( $offer_key, 'show' );
$offer_link = 'https://wedevs.com/dokan/?add-to-cart=15310&variation_id=15316&coupon_code=xmas30';
$offer_link = 'https://wedevs.com/dokan/?add-to-cart=15310&variation_id=15314&attribute_pa_license=professional&coupon_code=xmas30';

if ( 'hide' == $hide_notice || dokan()->is_pro_exists() ) {
return;
Expand Down
32 changes: 28 additions & 4 deletions includes/admin/promotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,60 @@ class Dokan_Promotion extends WeDevs_Promotion {
public function get_promotion_data() {
if ( ! dokan()->is_pro_exists() ) {
return array(
'product_subscription' => array(
'title' => __( 'Create Customizable Paid Subscription Packs For Your Vendors', 'dokan-lite' ),
'content' => __( 'By using this module, make it mandatory for your vendors to buy a subscription pack to sell products in your marketplace.', 'dokan-lite' ),
'thumbnail' => 'https://cdn.wedevs.com/uploads/2018/01/Subscriptions.jpg',
'link' => 'https://wedevs.com/dokan/pricing/?utm_source=dokan-plugin&utm_medium=banner&utm_content=booking-integration&utm_campaign=upgrade-to-pro',
'priority' => 10,
),

'vendor_reviews' => array(
'title' => __( 'Increase conversions 270% by displaying reviews', 'dokan-lite' ),
'content' => __( 'This extension enables your customers to post a review for each store available on your site.', 'dokan-lite' ),
'thumbnail' => 'https://cdn.wedevs.com/uploads/2017/01/Vendor-Review-1.png',
'link' => 'https://wedevs.com/dokan/pricing/?utm_source=dokan-plugin&utm_medium=banner&utm_content=booking-integration&utm_campaign=upgrade-to-pro',
'priority' => 20,
),

'vendor_verification' => array(
'title' => __( 'Verify Your Sellers To Earn Customer Reliability', 'dokan-lite' ),
'content' => __( 'Allow your vendors to verify their stores using social profiles, phone, photo ID etc. using this advanced and handy module.', 'dokan-lite' ),
'thumbnail' => 'https://cdn.wedevs.com/uploads/2018/01/Dokan-Seller-Verification.jpg',
'link' => 'https://wedevs.com/dokan/pricing/?utm_source=dokan-plugin&utm_medium=banner&utm_content=booking-integration&utm_campaign=upgrade-to-pro',
'priority' => 30,
),

'multiple_commission' => array(
'title' => __( 'Earn more from multiple commission type', 'dokan-lite' ),
'content' => __( 'With this feature, you will be able to set different type of commission for each vendor according to the products they are selling. Meaning more earning for you.', 'dokan-lite' ),
'thumbnail' => 'https://wedevs.s3.amazonaws.com/uploads/2018/10/Earn-more-from-multiple-commission-type_Newsletter.png',
'link' => 'https://wedevs.com/dokan/pricing/#dokan-compare-table-section/?utm_source=dokan-plugin&utm_medium=banner&utm_content=multiple-comission-type&utm_campaign=upgrade-to-pro',
'priority' => 10,
'priority' => 40,
),

'ticket_priority_support' => array(
'title' => __( 'Get priority support 24/7/365', 'dokan-lite' ),
'content' => __( 'Need to solve a conflict with your plugins, have a theme layout issues with Dokan or any kind of problem you might face, we are here for you', 'dokan-lite' ),
'thumbnail' => 'https://wedevs.s3.amazonaws.com/uploads/2018/10/Get-priority-support-24_7_365_Newsletter.png',
'link' => 'https://wedevs.com/dokan/pricing/?utm_source=dokan-plugin&utm_medium=banner&utm_content=customer-support&utm_campaign=upgrade-to-pro',
'priority' => 20,
'priority' => 50,
),

'coupon_code' => array(
'title' => __( '97% of consumers look for deals when they shop', 'dokan-lite' ),
'content' => __( 'No matter what type of coupon you want to create you can do that easily using the pro version of Dokan. Set the coupon title, fix discount types, restrict email addresses and much more.', 'dokan-lite' ),
'thumbnail' => 'https://wedevs.s3.amazonaws.com/uploads/2018/10/97-of-consumers-look-for-deals-when-they-shop_Newsletter.png',
'link' => 'https://wedevs.com/dokan/pricing/#dokan-compare-table-section/?utm_source=dokan-plugin&utm_medium=banner&utm_content=coupon-code-generation&utm_campaign=upgrade-to-pro',
'priority' => 30,
'priority' => 60,
),

'premium_modules' => array(
'title' => __( 'Exciting premium features to take your marketplace', 'dokan-lite' ),
'content' => __( 'With the simplest configuration options available, only by enabling a single toggle button you will be able to do everything your competitors are doing and even more.', 'dokan-lite' ),
'thumbnail' => 'https://wedevs.s3.amazonaws.com/uploads/2018/10/Exciting-premium-features-to-take-your-marketplace-to-the-next-level.png',
'link' => 'https://wedevs.com/dokan/pricing/#dokan-compare-table-section/?utm_source=dokan-plugin&utm_medium=banner&utm_content=exciting-premium-features&utm_campaign=upgrade-to-pro',
'priority' => 40,
'priority' => 70,
),
);
};
Expand Down
4 changes: 2 additions & 2 deletions includes/upgrades/dokan-upgrade-2.9.4.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ function dokan_update_refund_table_2_9_4() {
foreach ( $columns as $column ) {
$wpdb->query(
"ALTER TABLE `{$wpdb->prefix}dokan_refund`
MODIFY COLUMN {$column} varchar(100)"
MODIFY COLUMN {$column} varchar(200)"
);
}
}

dokan_update_refund_table_2_9_4();
dokan_update_refund_table_2_9_4();

0 comments on commit 971106e

Please sign in to comment.