Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter amberturner

    (@amberturner)

    This was fixed in Version 1.15.5.12. Thank you!

    Thread Starter amberturner

    (@amberturner)

    Apparently with automatic updates with WordPress 3.8 and updating Gravity forms, something breaks along the process. Fresh install of Gravity Stripe works.

    I’m receiving the same errors too. Except only the following two:

    Warning: array_flip() expects parameter 1 to be array, null given in /home/cgfp/public_html/wp-content/plugins/gravity-forms-stripe/includes/GFP/Stripe/class-gfp-stripe.php on line 643

    Warning: array_intersect_key() [function.array-intersect-key]: Argument #2 is not an array in /home/cgfp/public_html/wp-content/plugins/gravity-forms-stripe/includes/GFP/Stripe/class-gfp-stripe.php on line 643

    Really kind of annoying. Any idea for a fix?

    Thread Starter amberturner

    (@amberturner)

    I removed my woocommerce folder from my theme and it appears that everything is functioning well, but I’ve lost alot of custom edits. So I just need to go through each template I guess and fix each error.

    Thanks!

    Thread Starter amberturner

    (@amberturner)

    Is there particular ones that I can copy over to the 2.0 versions to test this issue? It’s been a while since I’ve worked with the site so I don’t remember if I have custom coding elsewhere through those templates or not.

    Thread Starter amberturner

    (@amberturner)

    Thanks so much for trying this out for me! Although, I appear to be having a couple of issues.

    I removed this from my taxonomy-product_cat.php:

    woocommerce_get_template( 'archive-product.php' );

    And added this (per your code):

    // We need to get the top-level category so we know which template to load.
    $get_cat = $wp_query->query['product_cat'];
    
    // Split
    $all_the_cats = explode('/', $get_cat);
    
    // How many categories are there?
    $cat_count = count($all_the_cats);
    
    //
    // All the cats say meow!
    //
    
    // Define the parent
    $parent_cat = $all_the_cats[0];
    
    // Main Wedding Invitations
    if ( $parent_cat == 'wedding-collections' ) woocommerce_get_template( 'archive-product.php' );
    
    // Collection Layout
    //elseif ( $parent_cat == 'wedding-collections' && $cat_count == 2 ) woocommerce_get_template( 'subcat-archive-product.php' );

    You can see all the categories I am working with here:

    Link to picture of categories

    I am wanting the very top product category “Wedding Collections” to have archive-product.php, then the subcategories of “Wedding Collections” (the only one right now being “Modern Collection”) to have subcat-archive-product.php.

    I believe I missed something. I tried your code every way I could and couldn’t get it to work pass the “Collection Layout” part above. It still takes the layout of archive-product.php even though I click on “Modern Collection.” When clicking on “Modern Collection” right now it should only read: TEST SUBCAT ARCHIVE PRODUCT with only the header and footer showing. What did I blow up?

    Test site: https://test.januarycreative.com/invitation/ (Click on Wedding Invitations to see Wedding Collections category, click “Modern Collection” to see Modern Collection products)

    (Also, I have checked, subcat-archive-product.php and archive-product.php are in the same location with taxonomy-product_cat.php, so there is no worry about it not finding subcat-archive-product because it can find archive-product.php)

    Thanks again for your help!!!

    Thread Starter amberturner

    (@amberturner)

    Yes!! Worked like a charm!! Thank you very much!

    Thread Starter amberturner

    (@amberturner)

    Yeah, this is the start of my loop:

    <?php $catname = wp_title('', false); ?>
    <?php query_posts("category_name=$catname"); ?>
    <?php if(have_posts()) : while(have_posts()): the_post(); ?>

    Any way to keep that same function but allow for the pages to show different posts?

    If you are wanting to change the entire blog’s name, you can do that in the admin panel, under the General page.

    If you are wanting to change a post or page name, you can do that through the admin panel as well, by editing those page titles.

    Does this answer your question?

    As far as I am aware of you can do it the same way as you do it on posts.
    <p class="excerpt"><?php the_excerpt(); ?></p>

Viewing 10 replies - 1 through 10 (of 10 total)