WordPress.org

Forums

Easy Digital Downloads
Download Details not showing after clicking a Category (14 posts)

  1. shancat
    Member
    Posted 1 year ago #

    After choosing a category, it takes me to an archive page with the correct items, but the only thing missing is the "Add to Cart" button.

    Thank you for answering my previous question in such a timely manner. I truly appreciated it.

    ### Begin System Info ###

    ## Please include this information when posting support requests ##

    Multisite: No

    SITE_URL: http://www.dezigningeye.com
    HOME_URL: http://www.dezigningeye.com

    EDD Version: 1.9.8
    Upgraded From: None
    WordPress Version: 3.8.1
    Permalink Structure: /%postname%/
    Active Theme: Estate 1.1.3

    Test Mode Enabled: No
    Ajax Enabled: Yes
    Guest Checkout Enabled: Yes
    Symlinks Enabled: No

    Checkout is: Valid
    Checkout Page: http://www.dezigningeye.com/checkout/
    Success Page: http://www.dezigningeye.com/checkout/purchase-confirmation/
    Failure Page: http://www.dezigningeye.com/checkout/transaction-failed/
    Downloads slug: /downloads

    Taxes Enabled: No
    Taxes After Discounts: No
    Tax Rate: 0%
    Country / State Rates: Country: *, State: , Rate: |
    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, refunded, failed, revoked, abandoned, active, inactive

    Platform: Apple
    Browser Name: Firefox
    Browser Version: 27.0
    User Agent String: Mozilla/5.0 (Macintosh; Intel Ma
    c OS X 10.9; rv:27.0) Gecko/2010
    0101 Firefox/27.0

    PHP Version: 5.4.23
    MySQL Version: 5.5.32-cll-lve
    Web Server Info: Apache mod_fcgid/2.3.10-dev

    WordPress Memory Limit: 40MB
    PHP Safe Mode: No
    PHP Memory Limit: 256M
    PHP Upload Max Size: 32M
    PHP Post Max Size: 48M
    PHP Upload Max Filesize: 32M
    PHP Time Limit: 120
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: Yes
    WP_DEBUG: Disabled

    WP Table Prefix: Length: 3 Status: Acceptable

    Show On Front: posts
    Page On Front: (#0)
    Page For Posts: Blog (#9)

    WP Remote Post: wp_remote_post() works

    Session: Enabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: /tmp
    Use Cookies: On
    Use Only Cookies: On

    DISPLAY ERRORS: On (1)
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    SOAP Client: Your server has the SOAP Client enabled.
    SUHOSIN: Your server does not have SUHOSIN installed.

    TEMPLATES:

    ACTIVE PLUGINS:

    Adsense Explosion: 1.1.1
    All In One SEO Pack: 2.1.4
    Contact Form 7: 3.7.2
    Custom sidebars: 1.4
    Easy Digital Downloads: 1.9.8
    Exclude Pages from Navigation: 1.92
    Google Analytics: 1.0.5
    Growmap Anti Spambot Plugin: 1.5.5
    Kimili Flash Embed: 2.4.0
    Meta Slider: 2.6.3
    Page Builder by SiteOrigin: 1.4.6
    Page Builder Legacy Widgets: 1.0
    T(-) Countdown: 2.2.13
    WP Simple Paypal Shopping cart: v3.9.4
    WP Socializer: 2.4.9.8
    WP Super Cache: 1.4
    ### End System Info ###

    https://wordpress.org/plugins/easy-digital-downloads/

  2. Add to cart buttons are not shown on download archive pages by default, only on the single download detail pages, so that sounds like correct behavior.

  3. shancat
    Member
    Posted 1 year ago #

    Is there a procedure you can't point me to so I can change the default?
    I'd like the cart button accessible within the category pages.
    I tried creating a copy of my archive page and renamed it:
    taxonomy-download_category.php but it doesn't seem to be pulling it.

    Thank you once again for your prompt response.

  4. Are you comfortable with a little PHP?

  5. shancat
    Member
    Posted 1 year ago #

    A TINY bit...:)

  6. Ok the first thing to do is copy your theme's existing archive.php file to a new one called archive-download.php

    Once you do that, open archive-download.php and place this just after the line that contains "the_excerpt()":

    <?php echo edd_get_purchase_link(); ?>

  7. shancat
    Member
    Posted 1 year ago #

    I created a copy. But I don't see a line that contains "the_excerpt()"

    <?php
    /**
    * The template for displaying Archive pages.
    */

    get_header(); ?>

    <section id="primary" class="content-area">
    <div id="content" class="site-content" role="main">

    <?php if ( have_posts() ) : ?>

    <header class="page-header">
    <h1 class="page-title"><?php echo estate_get_archive_title() ?></h1>
    <?php
    if ( is_category() ) {
    // show an optional category description
    $category_description = category_description();
    if ( ! empty( $category_description ) )
    echo apply_filters( 'estate_category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );

    }
    elseif ( is_tag() ) {
    // show an optional tag description
    $tag_description = tag_description();
    if ( ! empty( $tag_description ) )
    echo apply_filters( 'estate_tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
    }
    ?>
    </header><!-- .page-header -->

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( 'content', get_post_format() ); ?>

    <?php endwhile; ?>

    <?php estate_content_nav( 'nav-below' ); ?>

    <?php else : ?>

    <?php get_template_part( 'no-results', 'archive' ); ?>

    <?php endif; ?>

    </div><!-- #content .site-content -->
    </section><!-- #primary .content-area -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  8. Ah, see this line: <?php get_template_part( 'content', get_post_format() ); ?>

    Open the file called content.php and look there.

  9. shancat
    Member
    Posted 1 year ago #

    Ok, I found this line in content.php :
    <?php the_excerpt(); ?>
    and on the next line I placed :
    <?php echo edd_get_purchase_link(); ?>

    Do I first need to rename content.php to content-download.php?

  10. Try it with this:

    <?php if( get_post_type() == 'download' ) { echo edd_get_purchase_link(); } ?>
  11. shancat
    Member
    Posted 1 year ago #

    ok. Then what? Sorry for being so ignorant. This isn't my specialty...

  12. shancat
    Member
    Posted 1 year ago #

    The purchase link now shows up on the search pages but not the download category pages.

    Why is the purchase link text blurry?
    http://www.dezigningeye.com/downloads/ani_28/

    Thanks,
    Shannon

  13. Show me the complete code you have in that file now.

  14. shancat
    Member
    Posted 1 year ago #

    I'm getting the opposite results on the search pages and the download categories. The search pages are missing the images, and the download category pages are missing the purchase link. I'd like them both to include everything. I know you're not in charge of my theme but can you suggest how to get the imagess to show in the search pages?

    This is my current content.php

    <?php
    /**
    * Displays
    *
    * @package estate
    * @since estate 1.0
    * @license GPL 2.0
    */
    ?>

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <header class="entry-header">
    <?php if(has_post_thumbnail()) : ?>
    <div class="entry-thumbnail">
    " title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'estate' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
    <?php the_post_thumbnail(); ?>

    </div>
    <?php endif; ?>

    <h1 class="entry-title">" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'estate' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></h1>

    <?php if ( 'post' == get_post_type() ) : ?>
    <div class="entry-meta">
    <?php estate_posted_on(); ?>
    </div><!-- .entry-meta -->
    <?php endif; ?>

    </header><!-- .entry-header -->

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class="entry-summary">
    <?php the_excerpt(); ?>
    </div><!-- .entry-summary -->

    <?php if( get_post_type() == 'download' ) { echo edd_get_purchase_link(); } ?>

    <?php else : ?>
    <div class="entry-content">
    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'estate' ) ); ?>
    <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'estate' ), 'after' => '</div>' ) ); ?>
    </div><!-- .entry-content -->
    <?php endif; ?>

    <?php if( is_single() ) : ?>
    <footer class="entry-meta">
    <?php echo estate_get_post_meta() ?>
    <?php edit_post_link( __( 'Edit', 'estate' ), '<span class="edit-link">', '</span>' ); ?>
    </footer><!-- .entry-meta -->
    <?php endif; ?>
    </article><!-- #post-<?php the_ID(); ?> -->

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags