Shahjada

Forum Replies Created

Viewing 25 posts - 726 through 750 (of 15,655 total)
Mar 13, 2023 at 4:54 pm
#184763
Keymaster
Shahjada
Staff OP

please try now.

Mar 13, 2023 at 4:50 pm
#184762
Keymaster
Shahjada
Staff OP

You’re welcome. Always at your service 🙂

Mar 13, 2023 at 4:41 pm
#184757
Keymaster
Shahjada
Staff OP

okay now.

Mar 13, 2023 at 3:35 pm
#184751
Keymaster
Shahjada
Staff OP

So, you want to update order data ( expire it ) on start of download.
Use the following code:

add_action("wpdm_onstart_download", function ($package) {
    $params = wpdmppdl_decode(wpdm_query_var('wpdmppdl'));
    $order_id = wpdm_valueof($params, 'oid');
	$odata = WPDMPP()->order->getOrder($order_id);
	if ( $odata->order_status == 'Expired' ) {
		// Modify order data here
		$odata->order_status = 'Completed';
		// Expired time set to 10 mins in the future so that the download link will be seen as valid
		$odata->expire_date = time() + 600;
	}
});
Mar 13, 2023 at 2:30 pm
#184749
Keymaster
Shahjada
Staff OP

please update to 6.3.1

Mar 13, 2023 at 12:16 pm
#184743
Keymaster
Shahjada
Staff OP

Sorry, not clear, may you please explain little more.

Mar 13, 2023 at 11:25 am
#184741
Keymaster
Shahjada
Staff OP

May you please send me temporary wp-admin login info in a private reply to check how you are trying to implement it.

Mar 13, 2023 at 11:22 am
#184740
Keymaster
Shahjada
Staff OP

okay now, it was an incompatibility issue with the download period add-on.

Mar 13, 2023 at 5:54 am
#184729
Keymaster
Shahjada
Staff OP

Looks like you are using older version of PHP.

Please use the following code:

global $WPDM;
$download_url = $WPDM->package->getMasterDownloadURL($ID); 
Mar 13, 2023 at 5:35 am
#184727
Keymaster
Shahjada
Staff OP

please update to 6.3.1

Mar 13, 2023 at 5:11 am
#184722
Keymaster
Shahjada
Staff OP

May you please explain a little more about the idea behind the hook.

Mar 13, 2023 at 4:35 am
#184716
Keymaster
Shahjada
Staff OP

Hi,
You may use shortcode wpdm_direct_download, please follow the doc:
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_direct_link-embed-direct-download-link-as-a-simple-text-link/

however, if you want to generate download link for public downloads suing php code, you may use:

$download_url = home_url("/?wpdmdl=" . $ID);

For locked packages,

Get master download url:

$download_url = WPDM()->package->getMasterDownloadURL($ID); 

Get expirable link:

        /**
	 * @param $ID
	 * @param int $usageLimit
	 * @param int $expirePeriod seconds | default 10800 seconds = 3 hours
	 *
	 * @returns string download url
	 */
         $download_url = WPDM()->package->expirableDownloadLink($ID, $usageLimit, $expirePeriod); 
Mar 13, 2023 at 4:26 am
#184715
Keymaster
Shahjada
Staff OP

Please try applying the license key again.

Mar 13, 2023 at 3:30 am
#184713
Keymaster
Shahjada
Staff OP

Yes, certainly you can do that.
Use the following code:

WPDMPP()->cart->addItem($product_id_1);
WPDMPP()->cart->addItem($product_id_2);
WPDMPP()->order->open();
WPDMPP()->order->set('uid', $user_id);
WPDMPP()->order->set('payment_method', 'Cash');
WPDMPP()->order->save();
WPDMPP()->order->complete_order(Session::get('orderid'), false);
Mar 12, 2023 at 8:53 am
#184694
Keymaster
Shahjada
Staff OP

Hi,
From Downloads ► Settings ► Inter Interface ► Deselect any selected google font and then “Save Settings”. Google font will be removed from front-end.

Mar 12, 2023 at 6:14 am
#184693
Keymaster
Shahjada
Staff OP

Hi,
Renewal option is just like completing order again, no way to pay partially or for specific item only. However, admin can delete any item from an order or add discount on order total before renewal.
However, in such case, it is better to use buy now option / purchase each item separately, instead of multi-product cart order.

Mar 11, 2023 at 5:34 am
#184673
Keymaster
Shahjada
Staff OP
This reply has been marked as private.
Mar 11, 2023 at 4:23 am
#184669
Keymaster
Shahjada
Staff OP

I tried and updated wpdm pro successfully, shown that with the video. WPDM MailChimp is installed on your site, but I’m not seeing MailChimp with your purchased items.

Mar 10, 2023 at 7:03 pm
#184664
Keymaster
Shahjada
Staff OP
This reply has been marked as private.
Mar 10, 2023 at 6:53 pm
#184659
Keymaster
Shahjada
Staff OP

Update is not working as your license key field is empty:

Settings%20%E2%80%B9%20Download%20Manager%20%E2%80%B9%20Twin%20Birdies%20%E2%80%94%20WordPress

( https://www.loom.com/share/9f09e8dfe817402d8adb099eef72e885 )

Mar 10, 2023 at 6:20 pm
#184657
Keymaster
Shahjada
Staff OP

Hi,
Plugin update should work fine like any other plugin except your server firewall is blocking wpdownloadmanager.com. Please give me temporary wp-admin login info in a private reply.

Mar 10, 2023 at 9:30 am
#184644
Keymaster
Shahjada
Staff OP

Hi,
Thanks for your patience, update is available now.

Mar 10, 2023 at 8:34 am
#184641
Keymaster
Shahjada
Staff OP

Premium package’s paypal option already support credit card, the depends on your paypal account settings, also, I see pay with credit card is showing there already:

Log%20in%20to%20your%20PayPal%20account%20and%20%D9%85%D9%84%D8%AE%D8%B5%20%D8%A7%D9%84%D8%B4%D9%85%D9%88%D8%B9%20%D8%A7%D9%84%D9%8A%D8%A7%D8%A8%D8%A7%D9%86%D9%8A%D8%A9%20pdf%20-%20PipsTrend

Mar 10, 2023 at 8:25 am
#184640
Keymaster
Shahjada
Staff OP

Please use \WPDM\AddOn\wpdm_acf()

Mar 10, 2023 at 4:54 am
#184636
Keymaster
Shahjada
Staff OP

Please give me temporary wp-admin login info in a private reply to check.

Viewing 25 posts - 726 through 750 (of 15,655 total)