New Landing How can we help? Themeforest Theme Support Dante Override /swift-framework/sf-woocommerce.php

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Dante
  • #146868
    rixator
    Member
    Post count: 28

    Hi,

    I am trying to override sf-woocommerce.php located in /swift-framework/.
    I have copied the file to my child theme in the same folder and modified it but it is not showing in front end.

    I have tried adding the following code to my child theme’s functions.php but all I get is a blank page. require_once( get_stylesheet_directory() . '/swift-framework/sf-woocommerce.php' );

    Do you have any other idea of how I can include the file in my child theme?

    Kindest regards

    #146938
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You also need to copy swift-framework.php to the child theme and load that file using this code

    
    require_once(get_stylesheet_directory() . '/swift-framework/swift-framework.php');
    

    The content of your swift-framework.php should by the same has in the parent theme except for the line where it’s included the sf-woocommerce. Use the line of code you used previously in your reply.

    
    require_once( get_stylesheet_directory() . '/swift-framework/sf-woocommerce.php' );
    
    

    Let us know if you made it.

    -Rui

    #147123
    rixator
    Member
    Post count: 28

    Hi,
    Thank you for your reply.
    I still have the same problem.

    I copied swift-framework.php to my child theme and put it in subfolder /swift-framework/.

    I then removed line 51 in swift-framework.php (//include_once(SF_FRAMEWORK_PATH . '/sf-woocommerce.php');

    I then added the following lines to my child theme’s functions.php
    require_once(get_stylesheet_directory() . '/swift-framework/swift-framework.php');
    require_once( get_stylesheet_directory() . '/swift-framework/sf-woocommerce.php' );

    But I still get a blank page on front end.

    #147126
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You should remove this line from the functions.php

    
    require_once( get_stylesheet_directory() . '/swift-framework/sf-woocommerce.php' );

    and place it inside the swift-framework.php replacing the line 51.

    -Rui

    #147130
    rixator
    Member
    Post count: 28

    I now have this code in functions.php
    require_once( get_stylesheet_directory() . '/swift-framework/swift-framework.php');
    which causes the blank page on front end.

    I have replaced line 51 in swift-framework.php with
    require_once( get_stylesheet_directory() . '/sf-woocommerce.php' );

    When I remove
    require_once( get_stylesheet_directory() . '/swift-framework/swift-framework.php');
    from functions.php the website works as normal but my modifications are not shown.

    #147134
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Can you provide me ftp access to check it?
    Thanks

    -Rui

    #147135
    rixator
    Member
    Post count: 28
    This reply has been marked as private.
    #147177
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please tell the absolute path of your website installation at FTP.
    Thanks
    Mohammad

    #147180
    rixator
    Member
    Post count: 28
    This reply has been marked as private.
    #147593
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You probably gave us incorrect credentials. Can’t find Dante theme or childteme.
    This is what I see
    https://www.dropbox.com/s/lcsdq63x62tdf9c/wrong_ftp_access.png?dl=0

    -Rui

    #147599
    rixator
    Member
    Post count: 28
    This reply has been marked as private.
    #147619
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779
    This reply has been marked as private.
    #147620
    rixator
    Member
    Post count: 28
    This reply has been marked as private.
    #147622
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    yes, but I can’t go backward in the Ide. Can you setup the directory of this user has the root directory or www directory

    -Rui

    #147650
    rixator
    Member
    Post count: 28
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 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