• Resolved stylise

    (@stylise)


    Hello. How can I move the free shipping bar to before the cart contents but under the table headings? Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marin Matosevic

    (@marinmatosevic)

    Hi,

    The ability to position the progress bar is available exclusively in the PRO version. In this version, we offer several predefined positions for both the cart and checkout pages. Additionally, you can use the provided shortcode and WP block to place the progress bar anywhere on your site.

    Feel free to try it out—we offer a 7-day trial period so you can see if it fits your needs.

    Thread Starter stylise

    (@stylise)

    Hello, I tried the pro version, but there’s no option to put it before the cart contents but under the table headings. We don’t use blocks and the shortcode doesn’t render properly in cart the template file. Thanks.

    Plugin Author Marin Matosevic

    (@marinmatosevic)

    Could you please provide a screenshot of your cart page and mark the location where you would like to place the progress bar?

    Additionally, could you let us know what issues you encountered with the shortcode? Did it fail to display at all?

    Finally, can you confirm if your cart page was custom-built, created with a page builder, or if it is the default cart page provided by your theme?

    Thread Starter stylise

    (@stylise)

    Hello, here’s an example of where I’d like to place the free shipping label: https://pasteboard.co/a2HrXtgyqjwe.jpg

    The shortcode just showed up as text.

    The website doesn’t use a page builder and it’s the default cart.

    Plugin Author Marin Matosevic

    (@marinmatosevic)

    Yes, this is possible! Here’s how you can add the free shipping label to your cart page. You can place the shortcode directly in the template or, preferably, via an action hook. Since this needs to be inside the table, make sure to wrap it in the <tr> and <td> HTML tags.

    Below is a code snippet that you can add to your child theme’s functions.php file or by using a plugin like Code Snippets.

    add_action('woocommerce_before_cart_contents', function () {

    if (shortcode_exists('fsl-progress-bar')) {

    $html = '<tr>';
    $html .= '<td colspan="6">';
    $html .= do_shortcode('[fsl-progress-bar]');
    $html .= '</td>';
    $html .= '</tr>';

    echo $html;
    }
    });

    Here is an example screenshot of the result.

    Best regards

    Plugin Author Marin Matosevic

    (@marinmatosevic)

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.