Erfan MHDi
Forum Replies Created
-
hi @pratik-jain,
Thanks for your response,
This is my code so far,$MusicAlbumArg = array ( 'post_type' => 'download', 'post_status' => array( 'publish' ), 'orderby' => 'date', 'order' => 'desc', 'posts_per_page' => 1, 'ignore_sticky_posts' => true, 'meta_query' => array( array( 'key' => '_edd_product_type', 'value' => 'bundle', 'compare' => '=', ), array( 'key' => '_edd_bundled_products', 'value' => ':"' . get_the_ID() . '";', 'compare' => 'LIKE', ) ) );
this will return the parent bundle product name that current product is a child of.
i want to filter EDD Product and ONLY show product that is not a child of ANY parent bundle product.can i get more help with second array (
_edd_bundled_products
) to finish the code with you ?i contacted EDD Support and they say due to large amount of users they got, they cannot guide me to do so, nor they can make it for me.
they told me i have to find 3rd-party developers who can do this.so although i know you probably have lot to do and you don’t have time to dig into this but i’m gonna take my chance and ask you to check this for me and even i can get you the EDD Wallet extension and full document of what i need as a super mini project and i’ll pay if there is any cost.
just let me know if you can do so please!
hi @pratik-jain,
yes you are right, the best part is “YOU HELPED ME” fix the problem,
so i’ll be more than happy to donate you as a sign of appreciation of your time and answer.just please drop an email to me: [email protected]
or give me your email address so i can contact you.Hi @pratik-jain,
Thanks for your links, but i already saw this feature in payment plugins.
the problem is that i’m using EDD Wallet as my main Payment GateWay.
and trough some coding now the customers can only purchase product using their wallet and other gateways are only to charge wallet.i want the checkout to be loaded in popup cause there is no redirect to any external site like PayPal and they pay with wallet without leaving my site.
i’m really really looking forward to have pop-up checkout (with EDD Wallet), so any help in this case will be extremely appreciated. ??
if you have a donate link i’ll be more than happy to buy you a Coffee my friend ??
Hi @pratik-jain,
'compare' => 'NOT EXISTS'
was the key i was trying something like'compare' => '!='
Thank you so much!
there is one more thing,
Thanks to your code i’m able to load the name of parent “Bundle Product” inside a product that is child of a bundle.
but there is one confusing problem.
i think your code converts single product to bundle product!
why am i saying this?
consider your code being inside my EDD Product Page.
this line of codes after your code inside EDD Product Page PHP file<?php if ('bundle' == edd_get_download_type(get_the_ID())) { echo 'bundle'; } elseif ('bundle' !== edd_get_download_type(get_the_ID())) { echo 'single'; } ?>
returns “Bundle” inside both “Bundle Product” & “Single Product”
but if i remove your code from EDD Product Page PHP the above code returns “Single” on “Single Product” or “Bundle” on “Bundle Product”.i tried so hard to remove this conflict and solve my problem beside having your code inside my php file cause i need it.
is there any chance you can take a look into this for me ?
- This reply was modified 5 years, 4 months ago by Erfan MHDi.
- This reply was modified 5 years, 4 months ago by Erfan MHDi.
hello @pratik-jain,
The Problem Solved and ThankYou so much for your time.- This reply was modified 5 years, 4 months ago by Erfan MHDi.
any news @pratik-jain ?
hi @pratik-jain
i’m adding this code to EDD product Page PHP file.
i’m trying to show the bundles that this product are assigned to inside Product Page.hi, thanks for your code and sharing it with me,
i think i got some problems with this line:
'value' => ':"PRODUCT ID HERE";',
i’m gonna use your code inside EDD product page PHP file.
should i implement the product id to your code like this ?
'value' => ':"' . get_the_ID() . '";',
cause this is not working …Sure ??
Forum: Plugins
In reply to: [Beautiful taxonomy filters] duplicated post type basenameanyone here ?
Yup Like a Charm and thanks a lot for hint ??