New Landing How can we help? Themeforest Theme Support Dante Woocomerce was showing a free tag on my products and added code and now Fatal

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Dante
  • #294237
    PSDuncan
    Member
    Post count: 12

    Hi,

    I was trying to fix the woocommerce free tag on my products and now the entire site has boomed out!
    please assist the error code I am getting is

    Fatal error: Cannot redeclare hide_free_price_notice() (previously declared in /home/sepscnju/public_html/wp-content/themes/dante/functions.php:353) in /home/sepscnju/public_html/wp-content/themes/dante/includes/sf-theme-functions.php on line 907

    Please this is extremely Urgent!

    #294242
    PSDuncan
    Member
    Post count: 12

    Hi,

    I fixed the issue using a back-up and correcting the issues using the old functions

    but i still cant get rid of the free tag on my products

    #294246
    David Martin – Support
    Moderator
    Post count: 20834

    You can just hide it with CSS.

    Can you screenshot what you refer to though first.

    #294252
    PSDuncan
    Member
    Post count: 12

    Hi David,

    Thanks for the fast reply!

    Sure thing, Ive attached the image.

    Attachments:
    You must be logged in to view attached files.
    #294254
    David Martin – Support
    Moderator
    Post count: 20834

    Could you also add a WP login so I can see the site.

    – David.

    #294259
    PSDuncan
    Member
    Post count: 12

    Sure thing,

    how can i send you the wp-admin login?

    must i just create a new admin for you and set the reply as private?

    #294262
    PSDuncan
    Member
    Post count: 12

    I tried adding this to the functions.php

    add_filter( ‘woocommerce_variable_free_price_html’, ‘hide_free_price_notice’ );

    add_filter( ‘woocommerce_free_price_html’, ‘hide_free_price_notice’ );

    add_filter( ‘woocommerce_variation_free_price_html’, ‘hide_free_price_notice’ );

    /**
    * Hides the ‘Free!’ price notice
    */
    function hide_free_price_notice( $price ) {

    return ”;
    }
    add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘remove_local_pickup_free_label’, 10, 2 );
    function remove_local_pickup_free_label($full_label, $method){
    $full_label = str_replace(“(Free)”,””,$full_label);
    return $full_label;
    }

    and it didn’t seem to do anything.

    #294271
    David Martin – Support
    Moderator
    Post count: 20834

    Never make edits to the core theme files. Always use a child theme.

    Please create a new user and just paste here the username/password.

    Thanks.

    #294277
    PSDuncan
    Member
    Post count: 12

    Username: Temp Admin
    Password: LKAr&6eIZG5x%5AEt)wpwcQb

    #294293
    PSDuncan
    Member
    Post count: 12

    Still waiting on some feedback please.

    http://www.sepsci.co.za/wp-admin

    #294369
    PSDuncan
    Member
    Post count: 12

    Hello any feed back on this issue??

    #294394
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Your login credentials didn’t worked.
    Try to add the code below to your custom css field in the Theme options-> General Options

    .woocommerce .free-badge{
       display: none;
    }

    -Rui

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register