Forum Replies Created

Viewing 15 replies - 16 through 30 (of 61 total)
  • Thread Starter shuangmiles

    (@shuangmiles)

    That helped thank you

    Thread Starter shuangmiles

    (@shuangmiles)

    I’m looking to do it through code because our client requires a complicated set up, we want to avoid doing a database update cause our client has multiple sites that use the same templates so if we can add these shipping options that would be preferable. I just want to show in the shipping options the radio buttons for like

    Standard – $5
    2 day – $19
    Overnight – $29

    Our client handles shipping separately so they don’t want to use anything like fedex or ups plugin. Any help would be appreciated.

    Thread Starter shuangmiles

    (@shuangmiles)

    Thank, it didn’t work initially but I realized that what I had originally

    ‘rewrite’ ? => array( ‘slug’ => ‘swag’ ),

    worked it’s just that I had to re-save the permalink settings……yeah gigantic face palm but hopefully that helps anyone that might run into that too.

    Thread Starter shuangmiles

    (@shuangmiles)

    Nevermind I think it was because I was already logged in that it wasn’t showing cause I can see the form on incognito and other browsers just noticed sorry!

    Thread Starter shuangmiles

    (@shuangmiles)

    I have this to output the shortcode on the homepage but it is not showing

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

    ? ? <div class=”mx-auto”>

            <?php echo do_shortcode(‘[ppwp_sitewide]’); ?>

        </div>

    <?php endif; ?>

    Thread Starter shuangmiles

    (@shuangmiles)

    Hmm I updated those settings like you mentioned but it seemed to not take effect, does it take a while to update or?

    Thread Starter shuangmiles

    (@shuangmiles)

    That worked! Thank you!

    Thread Starter shuangmiles

    (@shuangmiles)

    I just see php errors like this, would it stop the index from happening?

    #0 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/single-page-navigation/single-page-navigation.php(12): include()
    #1 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(676): include('/chroot/home/ac...')
    #2 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): acf_block_render_template(Array, '', false, 47433, Object(WP_Block), Array)
    #3 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #4 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(650): do_action('acf_block_rende...', Array, '', false, 47433, Object(WP_Block), Array)
    #6 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(569): acf_render_block(Array, '', false, 47433, Object(WP_Block), Array)
    #7 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(502): acf_rendered_block(Array, '', false, 47433, Object(WP_Block))
    #8 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-block.php(256): acf_render_block_callback(Array, '', Object(WP_Block))
    #9 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/blocks.php(1051): WP_Block->render()
    #10 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/compatibility/gutenberg.php(113): render_block(Array)
    #11 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_gutenberg_block_rendering('<!-- wp:acf/her...', Object(WP_Post))
    #12 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:acf/her...', Array)
    #13 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(1485): apply_filters('relevanssi_post...', '<!-- wp:acf/her...', Object(WP_Post))
    #14 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(592): relevanssi_index_content(Array, Object(WP_Post), '3', false)
    #15 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(359): relevanssi_index_doc('47433', false, 'visible', true)
    #16 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/admin-ajax.php(86): relevanssi_build_index(true, false, 10, true)
    #17 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_index_posts_ajax_wrapper('')
    #18 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #19 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #20 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_relevan...')
    #21 {main}
      thrown in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/single-page-navigation/navigation-dropdown.php on line 16
    [22-May-2023 12:12:32 UTC] PHP Warning:  Trying to access array offset on value of type null in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/hero-image/hero-image.php on line 30
    [22-May-2023 12:12:32 UTC] PHP Warning:  Undefined array key "className" in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/hero-image/hero-image.php on line 33
    [22-May-2023 12:12:32 UTC] PHP Warning:  Undefined variable $gradient_overlay_string in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/background-overlay/background-overlay.php on line 1
    [22-May-2023 12:12:32 UTC] PHP Warning:  Undefined array key "className" in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/flexible-hero/flexible-hero.php on line 35
    [22-May-2023 12:12:32 UTC] PHP Warning:  Undefined variable $gradient_overlay_string in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/flexible-hero/flexible-hero.php on line 395
    [22-May-2023 12:12:34 UTC] PHP Warning:  Trying to access array offset on value of type bool in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/hero/hero-subpage.php on line 3
    [22-May-2023 12:12:34 UTC] PHP Warning:  Trying to access array offset on value of type bool in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/section/section-styles.php on line 3
    [22-May-2023 12:12:34 UTC] PHP Warning:  Trying to access array offset on value of type null in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/section/section-styles.php on line 3
    [22-May-2023 12:12:34 UTC] PHP Warning:  Undefined array key "className" in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/single-page-navigation/single-page-navigation.php on line 5
    [22-May-2023 12:12:34 UTC] PHP Warning:  Undefined variable $gradient_overlay_string in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/background-overlay/background-overlay.php on line 1
    [22-May-2023 12:12:34 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/single-page-navigation/navigation-dropdown.php:16
    Stack trace:
    #0 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/acf-blocks/single-page-navigation/single-page-navigation.php(12): include()
    #1 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(676): include('/chroot/home/ac...')
    #2 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): acf_block_render_template(Array, '', false, 47433, Object(WP_Block), Array)
    #3 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #4 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(650): do_action('acf_block_rende...', Array, '', false, 47433, Object(WP_Block), Array)
    #6 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(569): acf_render_block(Array, '', false, 47433, Object(WP_Block), Array)
    #7 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/advanced-custom-fields-pro/pro/blocks.php(502): acf_rendered_block(Array, '', false, 47433, Object(WP_Block))
    #8 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-block.php(256): acf_render_block_callback(Array, '', Object(WP_Block))
    #9 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/blocks.php(1051): WP_Block->render()
    #10 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/compatibility/gutenberg.php(113): render_block(Array)
    #11 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_gutenberg_block_rendering('<!-- wp:acf/her...', Object(WP_Post))
    #12 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:acf/her...', Array)
    #13 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(1485): apply_filters('relevanssi_post...', '<!-- wp:acf/her...', Object(WP_Post))
    #14 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(592): relevanssi_index_content(Array, Object(WP_Post), '3', false)
    #15 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(359): relevanssi_index_doc('47433', false, 'visible', true)
    #16 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/admin-ajax.php(86): relevanssi_build_index(true, false, 10, true)
    #17 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_index_posts_ajax_wrapper('')
    #18 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #19 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #20 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_relevan...')
    #21 {main}
      thrown in /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/themes/Striven 2020/components/single-page-navigation/navigation-dropdown.php on line 16
    
    Thread Starter shuangmiles

    (@shuangmiles)

    I only see these in the log

    #10 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/compatibility/gutenberg.php(113): render_block(Array)
    #11 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_gutenberg_block_rendering('<!-- wp:acf/her...', Object(WP_Post))
    #12 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(205): WP_Hook->apply_filters('<!-- wp:acf/her...', Array)
    #13 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(1485): apply_filters('relevanssi_post...', '<!-- wp:acf/her...', Object(WP_Post))
    #14 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(592): relevanssi_index_content(Array, Object(WP_Post), '3', false)
    #15 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/indexing.php(359): relevanssi_index_doc('47433', false, 'visible', true)
    #16 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-content/plugins/relevanssi/lib/admin-ajax.php(86): relevanssi_build_index(true, false, 10, true)
    #17 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(308): relevanssi_index_posts_ajax_wrapper('')
    #18 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #19 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #20 /chroot/home/acf6666e/6715dacc03.nxcli.io/html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_relevan...')
    
    Thread Starter shuangmiles

    (@shuangmiles)

    Ahh that didn’t work, I keep getting a critical error when trying it

    Thread Starter shuangmiles

    (@shuangmiles)

    Okay thank you that was helpful! I noticed for some reason we had relevanssi on it as well and after deactivating it the products ended up showing up so that helped. But thank you for enlightening me about checking the other things, really helpful!

    Thread Starter shuangmiles

    (@shuangmiles)

    I guess could you point me to where I can find out if the custom post type is registered to be excluded from search if it is excluded?

    Thread Starter shuangmiles

    (@shuangmiles)

    I don’t think for now that they’ll need to separate it out but I just need to make sure the Product custom post type is included among the search for search.php. So will unchecking All Posts include this?

    Thread Starter shuangmiles

    (@shuangmiles)

    Yeah I guess I’m referring to replacing a WP Query search from hitting your local database, and instead hitting Algolia’s API to query and return the final results. With the current algolia plugin I selected the middle option for using Use Algolia with the native WordPress search template.

    So for example on our site in the searchbar https://obe.com/ if you type out “Reliance” you’ll see it among the products in the autocomplete. But when you click the magnifying glass or hitting enter key the search results page doesn’t include the custom post type for those Products among the search results on the search.php page, is there a setting to include them or can I update a function in functions.php to include this custom post type?

    Thread Starter shuangmiles

    (@shuangmiles)

    Thanks I ended up doing the merge results and it seemed to work.

Viewing 15 replies - 16 through 30 (of 61 total)