How I can edit Social Links in the side bar of Shop Page?

This topic has 2 replies, 2 voices, and was last updated 4 months, 2 weeks ago ago by Tony Rodriguez

  • Avatar: Shakir Hussain
    Shakir Hussain
    Participant
    July 31, 2024 at 06:21

    Hi, I want to edit social links in the sidebar of Shop page. Let me know, How i can edit this. I also want to add the shipping cost in the check out page while showing the Total cost of the product. I’m still unable to remove the progress bar while scrolling.

    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    July 31, 2024 at 09:25

    Hello, @Shakir Hussain,

    Thank you so much for purchasing our theme and contacting our support center.

    1/ To edit social links in the sidebar of Shop page, PLease navigate to WordPress dashboard > Widgets > Shop sidebar area > Edit social link widget and save settings. Please watch it here https://streamable.com/sphkvg
    For reference.

    2/ To add/show the shipping cost in the check out page while showing the Total cost of the product, By default woocommerce does not have any option for it.

    You can show the shipping cost in the check out page adding next Custom Code in your child theme functions.php File:

    // Display the shipping cost before the order total on the checkout page
    add_action('woocommerce_review_order_before_order_total', 'custom_display_shipping_cost', 10);
    
    function custom_display_shipping_cost() {
        // Get the chosen shipping methods
        $shipping_methods = WC()->session->get('chosen_shipping_methods');
        $shipping_method = $shipping_methods ? $shipping_methods[0] : '';
        $packages = WC()->shipping()->get_packages();
        $shipping_cost = 0;
        
        if (!empty($packages)) {
            foreach ($packages as $package) {
                foreach ($package['rates'] as $rate_id => $rate) {
                    if ($rate_id === $shipping_method) {
                        $shipping_cost += $rate->cost;
                    }
                }
            }
        }
        
        if ($shipping_cost > 0) {
            echo '<tr class="shipping">
                <th>' . __('Shipping Cost', 'woocommerce') . '</th>
                <td>' . wc_price($shipping_cost) . '</td>
            </tr>';
        }
    }

    The result should look like this: https://paste.pics/RL0XS

    Additionally, Please read official woocommerce documentation about Setting up Shipping Zones here: https://woocommerce.com/document/setting-up-shipping-zones/

    We hope this helps. Should you require any further assistance, please do not hesitate to reach out. We are here to help you.

    Best regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.