
-
AuthorPosts
-
May 27, 2019 at 8:29 am #1104441May 27, 2019 at 8:32 am #1104442
This is initial topic https://kriesi.at/support/topic/text-not-in-line/
June 3, 2019 at 3:02 am #1106522Hi,
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,
IsmaelJune 3, 2019 at 4:58 pm #1106752Hi 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.
June 5, 2019 at 5:56 am #1107358Hi,
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,
IsmaelJune 5, 2019 at 7:42 am #1107392Hi Ismael! No its not home page but dedicated page for auctions see link in private. I have also screenshot of the section.
June 5, 2019 at 7:47 am #1107395This reply has been marked as private.June 5, 2019 at 9:23 am #1107431Hi!
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,
IsmaelJune 5, 2019 at 6:58 pm #1107721Thanks 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.
June 10, 2019 at 8:43 am #1108770Hi,
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,
IsmaelJune 10, 2019 at 7:39 pm #1108869Hi Ismael! Yes i have added this code but it doesn’t change anything (cleared cache) still no sorting menu.
June 11, 2019 at 3:47 am #1108969Hi,
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,
IsmaelJune 11, 2019 at 9:46 am #1109057Hi! 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.
June 13, 2019 at 5:42 am #1109698Hi,
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,
IsmaelJune 13, 2019 at 11:10 am #1109823Hi 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
June 17, 2019 at 5:40 pm #1111055Hi,
Not sure we understand exactly what you are tying to say here, could you maybe rephrase it somehow? Or attach some screenshots?
Best regards,
BasilisJune 17, 2019 at 9:41 pm #1111144Hi! 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.
June 21, 2019 at 9:24 am #1112243Hi,
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,
IsmaelJune 21, 2019 at 3:48 pm #1112356Hi Ismael! Plugin author replied that they use: `woocommerce_auctions_ordering funct
June 24, 2019 at 12:46 am #1112785Hey!
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,
IsmaelJune 24, 2019 at 10:31 am #1112867Hi Ismael! Yes i tried but no luck.
June 26, 2019 at 3:05 am #1113428Hi,
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,
IsmaelJune 26, 2019 at 9:46 am #1113550Hi! No it has not been changed and just tried and it works.
July 1, 2019 at 7:14 am #1114801Hi,
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,
IsmaelJuly 2, 2019 at 11:21 am #1115136Hi 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 ) );
}}
July 5, 2019 at 12:30 pm #1116030Hi,
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,
IsmaelJuly 5, 2019 at 5:51 pm #1116069Thanks 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.
July 8, 2019 at 6:21 am #1116570Hi,
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,
IsmaelJuly 9, 2019 at 9:27 pm #1117203Hi Ismael! All done and works great. Thanks for helping me out.
July 10, 2019 at 6:24 pm #1117522Hi axels1983,
Glad Ismael could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.