Support for Envato Buyers Forums DGWork EDD Wishlists not working

Viewing 21 reply threads
  • Author
    Posts
    • #25213
      markhatter
      Participant

      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

    • #25236

      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

    • #25264
      markhatter
      Participant

      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.

    • #25291

      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)

    • #25300
      markhatter
      Participant

      Thank you!

    • #25312

      Hi

      Please update the theme to V1.7 via Appearance page, next, go to Appearance > Plugins, update ThemeVan Toolkit plugin.

      Thanks

    • #25317
      markhatter
      Participant

      Thanks but the option to update is not appearing.

    • #25337
      markhatter
      Participant

      I have now updated the toolkit and the theme but still don’t see the option on the homepage

      https://tobykay.com/markh/

      Thanks

    • #25356

      Can you post the WP login details again? Does it the grid is not generated from ThemeVan Toolkit?

    • #25358
      markhatter
      Participant
      This reply has been marked as private.
    • #25360

      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.

    • #25364
      markhatter
      Participant

      Thank you,
      I have customized some templates yes.

      Please could you let me know which template you have added that code to?

      Thanks

    • #25428

      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

    • #25436

      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.

    • #25462
      markhatter
      Participant

      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

    • #25479

      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.

  • #25653
    markhatter
    Participant

    Hi,

    I have added this code and now I get the wishlist button and a Buy now button which I don’t need.

    https://tobykay.com/markh/

  • #25701

    You can hide it by the following CSS

    .dgwork-grid-item .edd-add-to-cart{
       display: none;
    }
  • #25710
    markhatter
    Participant

    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

  • #25780

    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

  • #25820
    markhatter
    Participant

    Ok thank you.

    So are you saying the the issue is with EDD rather than with your theme?

    Thanks

  • #25837

    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.

  • Viewing 21 reply threads
    • You must be logged in to reply to this topic.