Support for Envato Buyers › Forums › DGWork › EDD Wishlists not working
- This topic has 21 replies, 2 voices, and was last updated 5 years, 3 months ago by FocuxTheme Support.
-
AuthorPosts
-
-
August 22, 2019 at 6:02 am #25213markhatterParticipant
Hi,
I am testing the EDD wishlists plugin and it doesn’t display on the product grid as expected. There should be an “Add to wishlist” button under each product. It displays when you open a product but it should also be on the grid.
If I switch themes it works as expected and Easy Digital Downloads have suggested that I ask you for support.
You can see the issue here – https://tobykay.com/markh/
Thanks
Mark -
August 23, 2019 at 7:20 pm #25236FocuxTheme SupportKeymaster
Hi
Because the product grid you used is already customized. Can you ask the plugin support the following question?
Which PHP function or shortcode can be used in the custom product grid?
Then, you can insert that PHP function to the grid in PHP file.
Thanks
-
August 27, 2019 at 7:49 am #25264markhatterParticipant
Hi,
This is the reply from EDD –
Ask the developer to look in edd-wish-lists/includes/template-functions.php for this function: edd_wl_load_wish_list_link(). That function is hooked into EDD core’s edd_purchase_link_top action on line 169.
That should allow them to get the with list button working.
-
August 29, 2019 at 7:59 pm #25291FocuxTheme SupportKeymaster
OK. Because we don’t have EDD wishlist addon, so we will buy it and make the theme compatible with it in the next version (this week)
-
August 30, 2019 at 5:41 am #25300markhatterParticipant
Thank you!
-
September 1, 2019 at 8:06 pm #25312FocuxTheme SupportKeymaster
Hi
Please update the theme to V1.7 via Appearance page, next, go to Appearance > Plugins, update ThemeVan Toolkit plugin.
Thanks
-
September 2, 2019 at 5:51 am #25317markhatterParticipant
Thanks but the option to update is not appearing.
-
September 4, 2019 at 6:11 am #25337markhatterParticipant
I have now updated the toolkit and the theme but still don’t see the option on the homepage
Thanks
-
September 6, 2019 at 4:47 pm #25356FocuxTheme SupportKeymaster
Can you post the WP login details again? Does it the grid is not generated from ThemeVan Toolkit?
-
September 6, 2019 at 4:56 pm #25358markhatterParticipantThis reply has been marked as private.
-
September 6, 2019 at 5:00 pm #25360FocuxTheme SupportKeymaster
Have you overridden the grid template by your custom code before? I have added the following codes to the grid template.
if ( class_exists( 'EDD_Wish_Lists' ) ){ $html .= '
'.do_shortcode('[purchase_link price=0 text="'.esc_html__('Buy Now', 'dgwork').'"]').''; }By the way, since ThemeVan Toolkits 1.4.2, you can override the template by the following method:
1. Create the folder and subfolders “themevan-toolkit/templates/wpbakery” in your theme folder.
2. Copy the template which you want to customize from wp-content/plugins/themevan-toolkit/templates/wpbakery/ to the folder you created in the step 1. -
September 6, 2019 at 5:05 pm #25364markhatterParticipant
Thank you,
I have customized some templates yes.Please could you let me know which template you have added that code to?
Thanks
-
September 11, 2019 at 6:53 pm #25428FocuxTheme SupportKeymaster
Hi
Copy wp-content/plugins/themevan-toolkit/templates/wpbakery/custom_vc_edd_product_grid.php to theme-folder/themevan-toolkit/templates/wpbakery/ (You can create themevan-toolkit/templates/wpbakery/ folder manually)
Thanks
-
September 11, 2019 at 7:58 pm #25436FocuxTheme SupportKeymaster
I noticed you use [downloads], so don’t change the template above, I will fix this issue in V1.8.2, please update after 1 hour.
If you have customized the grid, please edit dgwork/edd_templates/shortcode-download.php template.
-
September 12, 2019 at 6:42 am #25462markhatterParticipant
Thank you.
Sorry, I don’t know what I need to do to dgwork/edd_templates/shortcode-download.php
Please can you let me know what to add and where to add it?
Thanks
-
September 12, 2019 at 6:42 pm #25479FocuxTheme SupportKeymaster
The best way is move your custom codes to the new shortcode-download.php
Of course, you can add the following codes to your changed template:'.do_shortcode('[purchase_link price="'.$show_price.'" text="'.$button_text.'"]').'
Before the last close div tag.
-
Hi,
I have added this code and now I get the wishlist button and a Buy now button which I don’t need.
You can hide it by the following CSS
.dgwork-grid-item .edd-add-to-cart{ display: none; }
Hi,
I’d prefer to remove redundant code rather that just hide it if possible?
Why does the wishlist code add a buy button? It doesn’t make sense to me.
Thanks again
Mark
The wishlist plugin depends on [purchase_link] shortcode or edd_get_purchase_link() function, so I have to add [purchase_link] to the grid, then it will automatically output both of the buy button and wishlist button at the same time.
We have tried to use the following codes to hide the add cart button:
function hide_purchase_form($args){ return ''; } add_filter('edd_purchase_download_form', 'hide_purchase_form', 2);
But with this method, maybe it will hide all buy button from the global site, that’s why we haven’t hidden the buy button.
So we need to test it with all other add-ons, make sure there’s no confliction issue, then we will add a new option to show or hide the buy button in the later version.
Thanks
Ok thank you.
So are you saying the the issue is with EDD rather than with your theme?
Thanks
Yes, because that php function or shortcode is included in the EDD, not included the theme.
So the buy button is automatically displayed unless customizing EDD function.
- You must be logged in to reply to this topic.