Viewing 30 posts - 1 through 30 (of 30 total)
  • Author
    Posts
  • #1104441

    Hi Ismael ! As per request i have started new thread to resolve issue with simple auction plugin sorting compatibility with Enfold. I added new FTP details and it is working at my end.

    #1104442
    #1106522

    Hi,

    Thanks for the update.

    Where can we see the issue again? The select or menu element is no longer visible above the product image as shown in the previous screenshot. (see private field)

    Best regards,
    Ismael

    #1106752

    Hi Ismael! I want this select or menu element in place where it suppose be located – above anywhere left or right side ( see link in private) so after following Yigits code https://kriesi.at/support/topic/text-not-in-line/#post-1095308 woocomerce sorting menu disappeared but it suppose to be replaced with Simple auction sorting menu but it does work.

    #1107358

    Hi,

    Thank you for the update.

    We can’t find the “auction” page, unfortunately. Did you add it in the home page? Please add the actual url to the page or provide a screenshot of the section.

    Best regards,
    Ismael

    #1107392

    Hi Ismael! No its not home page but dedicated page for auctions see link in private. I have also screenshot of the section.

    #1107395
    This reply has been marked as private.
    #1107431

    Hi!

    Thank you for the update.

    We put the following css code in the Quick CSS field.

    #top .woocommerce-ordering {
        position: absolute;
        right: 0;
        margin: 0;
        z-index: 20;
        top: 0;
        margin-top: 0;
        width: 25%;
        width: 200px;
        left: auto;
    }
    
    #top.woocommerce-page .woocommerce-ordering select {
        width: 100%;
    }

    Adjust the position value as you wish.

    Best regards,
    Ismael

    #1107721

    Thanks Ismael works great. Just one more thing how can i add this select/menu element to shop page as well? I wont have Woocommerce shop but only auctions so would be great if this menu you added to auction page also available to shop page. Thank you in advance.

    #1108770

    Hi,

    The shop page should have its own sorting element by default. Did you add this code?

    function avia_remove_woocommerce_frontend_search_params() { 
    remove_action('woocommerce_before_shop_loop','avia_woocommerce_frontend_search_params', 20);
    } 
    add_action( 'init', 'avia_remove_woocommerce_frontend_search_params');

    That hook removes the default sort element.

    Best regards,
    Ismael

    #1108869

    Hi Ismael! Yes i have added this code but it doesn’t change anything (cleared cache) still no sorting menu.

    #1108969

    Hi,

    That hook removes the default sort element.

    You have to disable that code because it removes the default sorting element for the shop page.

    Best regards,
    Ismael

    #1109057

    Hi! Yes it was disabled and still the same hence added again as it doesn’t change anything (now removed) . So with above hook or without there is no sorting menu on shop page.

    #1109698

    Hi,

    Thanks for the update.

    The sorting element is displaying properly in the shop page. (see private field)

    // https://imgur.com/a/Dj4sElM

    Is that what you need?

    Best regards,
    Ismael

    #1109823

    Hi Ismael & thank you very much for help! Menu is now there but it is default woocommerce menu. As this is only auction website then the same menu you created and implemented in auction page would need to be also in shop/category pages, basically woocomerce default menu to be replaced with this auction menu https://kriesi.at/support/topic/auction-plugin-compatibility-with-enfold/#post-1107431

    #1111055

    Hi,

    Not sure we understand exactly what you are tying to say here, could you maybe rephrase it somehow? Or attach some screenshots?

    Best regards,
    Basilis

    #1111144

    Hi! Ismael did great job and implemented auction menu from Simple auction plugin on my websites auction page (see reply #1107431). I just wanted the same auction menu to be on shop page and category pages see links in private. At the moment on shop page i have default woocmmerece menu ( i dont need it) but instead i need that auction menu as all items on website will be auctions with this specific auction menu – see uploaded screenshot.

    #1112243

    Hi,

    Thank you for the update.

    Can you ask the plugin author what function to use in order to render the sorting element for the auction page? We can use that as a callback for the action hook. Example:

    function avia_woocommerce_auction_hooks() { 
    add_action('woocommerce_before_shop_loop','function_or_callback_to_use', 20);
    } 
    add_action( 'init', 'avia_woocommerce_auction_hooks');
    

    Best regards,
    Ismael

    #1112356

    Hi Ismael! Plugin author replied that they use: `woocommerce_auctions_ordering funct

    #1112785

    Hey!

    Thank you for the update.

    Have you tried using the function in the hook above?

    function avia_woocommerce_auction_hooks() { 
         add_action('woocommerce_before_shop_loop','woocommerce_auctions_ordering', 20);
         remove_action('woocommerce_before_shop_loop','avia_woocommerce_frontend_search_params', 20);
    } 
    add_action( 'init', 'avia_woocommerce_auction_hooks');
    

    Best regards,
    Ismael

    #1112867

    Hi Ismael! Yes i tried but no luck.

    #1113428

    Hi,

    We would like to test this again but we can’t access the file server using the previous account. Did you update it? Please provide the FTP login details.

    Best regards,
    Ismael

    #1113550

    Hi! No it has not been changed and just tried and it works.

    #1114801

    Hi,

    Thank you for the update.

    We adjusted the filter a bit, but it still doesn’t work. The auction sorting element is probably exclusive to the “Auction” page, so you won’t be able to use it for other pages. Please confirm that with the plugin developer.

    Best regards,
    Ismael

    #1115136

    Hi Ismael! I noticed that this sorting element is working on all pages just mobile version displays it on the bottom of the page ( see link on private) Also regarding your question about element exclusivity to “Auction” page Plugin author replied :function is not exclusive to auction page, this is function:

    if ( ! function_exists( ‘woocommerce_auctions_ordering’ ) ) {

    /**
    * Output the product sorting options.
    *
    * @subpackage Loop
    *
    */
    function woocommerce_auctions_ordering() {

    global $wp_query;

    if ( 1 === $wp_query->found_posts ) {
    return;
    }

    $orderby = isset( $_GET[‘orderby’] ) ? wc_clean( $_GET[‘orderby’] ) : apply_filters( ‘wsa_default_auction_orderby’, get_option( ‘wsa_default_auction_orderby’ ) );
    $show_default_orderby = ‘menu_order’ === apply_filters( ‘wsa_default_auction_orderby’, get_option( ‘wsa_default_auction_orderby’ ) );
    $catalog_orderby_options = apply_filters( ‘woocommerce_auctions_orderby’, array(
    ‘menu_order’ => __( ‘Default sorting’, ‘woocommerce’ ),
    ‘date’ => __( ‘Sort by newness’, ‘woocommerce’ ),
    ‘price’ => __( ‘Sort by buynow price: low to high’, ‘wc_simple_auctions’ ),
    ‘price-desc’ => __( ‘Sort by buynow price: high to low’, ‘wc_simple_auctions’ ),
    ‘bid_asc’ => __( ‘Sort by current bid: Low to high’, ‘wc_simple_auctions’ ),
    ‘bid_desc’ => __( ‘Sort by current bid: High to low’, ‘wc_simple_auctions’ ),
    ‘auction_end’ => __( ‘Sort auction by ending soonest’, ‘wc_simple_auctions’ ),
    ‘auction_started’ => __( ‘Sort auction by recently started’, ‘wc_simple_auctions’ ),
    ‘auction_activity’ => __( ‘Sort auction by most active’, ‘wc_simple_auctions’ ),
    ) );

    if ( ! $show_default_orderby ) {
    unset( $catalog_orderby_options[‘menu_order’] );
    }

    wc_get_template( ‘loop/orderby.php’, array( ‘catalog_orderby_options’ => $catalog_orderby_options, ‘orderby’ => $orderby, ‘show_default_orderby’ => $show_default_orderby ) );
    }

    }

    #1116030

    Hi,

    Thank you for the update.

    Looks like it is displaying properly in the archive or category page. (see private field)

    It doesn’t display in the shop page because there’s no product there. And the “woocommerce_auctions_ordering” function will return nothing when there is only 1 item.

    if ( 1 === $wp_query->found_posts ) {
        return;
    }

    Best regards,
    Ismael

    #1116069

    Thanks Ismael! For now anyway shop page will be disabled and i will use only auction and archive/category pages. At the moment only issue left is with mobile version where menu is on the bottom of the page.

    #1116570

    Hi,

    You can use this css code to the sort element above the products.

    @media only screen and (max-width: 767px) {
      /* Add your Mobile Styles here */
      .responsive #top .woocommerce-ordering {
         top: 0;
         bottom: auto;
      }
    }

    You don’t need to copy the css media query if there is an existing one with the same media condition.

    Best regards,
    Ismael

    #1117203

    Hi Ismael! All done and works great. Thanks for helping me out.

    #1117522

    Hi axels1983,

    Glad Ismael could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

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