TheXrion
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Using Wp_query to make json array@diondesigns Thanks dion, But i expected to find any information about it in
wp_query
documentation page. i didn’t know that i can use functions likeget_the_title
orget_the_ID
usingwp_query
maybe i didn’t see.Is this information documented onwp_query
page?Thanks
Forum: Developing with WordPress
In reply to: How disconnect wordpress from wordpress serversI still can sending version check queries and getting response with this condition rules in my apache config on .htaccess file
Any suggestions?<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_REFERER} *.wp\.org [OR] RewriteCond %{HTTP_REFERER} *.wordpress\.org [OR] RewriteCond %{HTTP_REFERER} *.w\.org RewriteRule .* - [F] </IfModule>
- This reply was modified 4 years, 1 month ago by TheXrion.
Forum: Developing with WordPress
In reply to: How disconnect wordpress from wordpress serversI want to disconnect wordpress for preventing getting updates & sending any kind of request query to www.remarpro.com api servers
WHAT A AWESOME SUPPORT!
Forum: Developing with WordPress
In reply to: Can’t get current Post ID in functions.phpThank you @justinrains and @sterndata , Please check this gist
https://gist.github.com/shiraliali/f4d5960df3469f5b7eb3b3ab7ab336d4Thanks.
- This reply was modified 4 years, 6 months ago by TheXrion.
there is a problem i have faced with , When Additonal service price added to cart the id returns
null
and i cant remove it fromcheckout
with usingremove_fee()
function.So i have tried to add Fee id manually (tried both character and integer like : 123 or abc ) for check if it get fix but fee doesn’t even added to checkout after using fee id in manually way!
So question is why Fee ID returns null after
echo
andvar_dump
givesboolan(false)
?This is my Whole function :
`function myfunction() { $feeTitle = 'Example Additonal Service'; $feeid_gen = chr(rand(97,122)) . chr(rand(65,90)) . chr(rand(97,122)) . chr(rand(65,90)) . chr(rand(97,122)) . chr(rand(65,90)) . chr(rand(97,122)) . chr(rand(97,122)) . chr(rand(65,90)); // Check If This Product has Additonal Price by checking is>0 // If yes The function will run $gt_metakey = get_post_meta( get_the_ID(), 'my_meta_key'); $int_val = (int)$gt_metakey[0]; // Additional Services Price START here $fee = array( 'amount' => $int_val, // Fee Amount 'label' => $feeTitle, // Fee Label 'id' => $feeid_gen, // Fee ID 'no_tax' => false, // If tax on Fee 'type' => 'fee', // Type 'download_id' => $download_id, // Product ID 'price_id' => NULL // On Specific Product Price ID ); EDD()->fees->add_fee( $fee ); /// Additional Services Price END here } add_action( 'init', 'myfunction' );
`
Ouh I didn’t attention to puting
cencored_function()
in scope and that was it.- This reply was modified 4 years, 6 months ago by TheXrion.
Forum: Developing with WordPress
In reply to: Right way to converting meta_value to integerThanks @sterndata and @bcworkz for your guidance
It worked with @sterndata guide.Thanks.
- This reply was modified 4 years, 6 months ago by TheXrion.
Forum: Developing with WordPress
In reply to: Updating two database table when button clickedIn this case I tried to post just integer and strings like current user username
Those queries will work 70% of the time.
Let me explain what i guess :
Arrays should be sort how the queries sorted ? Like this :
1 – First arrays of first query
2 – Second arrays of second queryThen queries should be written like this :
1- First query that send first arrays
2- Second query that send second arraysIs this arrangement is important ?
Cause in my case this arrangement has not been regarded.- This reply was modified 4 years, 12 months ago by TheXrion.
Forum: Developing with WordPress
In reply to: Increasing Function.php size will reduce load speed?@sterndata Thank You, My code efficiency is as standard as WordPress codex is.
So Its unclear yet , At every page loading ( without cache plugin ) Whole function.php will load or A part that page need it ?Yes our team created a customized section that will give ability to vendors to change price of their downloads . Here we want to user be able to add variable price in this custom section.
We know how code it but some part like “option name , assign price to witch option price” is in ambiguity.
we need this parts be clear to write our code for them.dear @pratik-jain
I know how do it at the front end ! As i wrote in my question i already running some development programs i need to give ability to users to add variable price in their downloads on the frontend ( there is need some edd plugin query ) so i need documentation to doing this cause here have a field named option name . so please help me with this- This reply was modified 5 years, 2 months ago by TheXrion.
Hi @pratik-jain
I already removed this line before posting this issue
//adding fee for test pw_add_handling_fee();
Then I added lines above in my question to removing fees but didn’t worked in correct way
So how it’s get fixed ? The problem get solved when clicked on pay button on cart page and then redirected to bank gateway as it should be , after canceling payment at the gateway i returned to cart And (This is how fixed) I saw fee removed from cart and never added again until if again i want to add it withpw_add_handling_fee()
.
So this is howremove_fee() worked
!Actually this could be a huge bug of Easy digital downloads plugin !
Forum: Fixing WordPress
In reply to: There is no option to make my site privateYou can displaying your site for logged in users and for everybody else you can show a login & register page .
This can be done by writing a function in your theme
functions.php
file.Check this link form wordpress code references.
You can do it by your own or asking your programmer to writing this function.- This reply was modified 5 years, 2 months ago by TheXrion.