Home › Forums › Themes Support › Claue › WooCommerce cart en translation flag right in mobile menu
- This topic has 7 replies, 2 voices, and was last updated 4 years, 9 months ago by Harry.
-
AuthorPosts
-
-
July 16, 2019 at 3:17 pm #32511purplemediaSupport Expired
Hi,
I want to display the WooCommerce cart en translation flag right in the mobile menu.
Could you help? -
July 16, 2019 at 5:11 pm #32514HarrySupport Expired
Did you install translate plugin? You want move cart next to FAQ http://prntscr.com/ofp5ot?
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 16, 2019 at 6:09 pm #32519purplemediaSupport Expired
Translate plugin comes later. I want the woocommerce cart right to the logo in het mobile view.
See attachment.Thanks!
Attachments:
You must be logged in to view attached files. -
July 16, 2019 at 10:20 pm #32523HarrySupport Expired
I help you show cart icon on mobile.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 18, 2019 at 5:38 pm #32547purplemediaSupport Expired
Hi,
Thanks. Could you link that icon to cart page (http://185.104.28.45/~zz/winkelmand/)?
-
July 18, 2019 at 11:20 pm #32557HarrySupport Expired
Hi,
Please add below code to claue-child > functions.php
if ( ! function_exists( 'jas_claue_wc_shopping_cart' ) ) { function jas_claue_wc_shopping_cart() { global $woocommerce; // Catalog mode $catalog_mode = cs_get_option( 'wc-catalog' ); if ( $catalog_mode ) return; $output = ''; $output .= '<div class="jas-icon-mini-cart pr">'; $output .= '<a class="pr cb chp db" href="' . esc_url(wc_get_cart_url()) . '" title="' . esc_html( 'View your shopping cart', 'claue' ) . '">'; $output .= '<i class="pe-7s-shopbag"></i>'; $output .= '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>'; $output .= '</a>'; $output .= '</div>'; return apply_filters( 'jas_claue_wc_shopping_cart', $output ); } }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 19, 2019 at 2:43 pm #32565purplemediaSupport Expired
Thanks! I only want that the cart icon is linking to the cart page on mobile. Now it is on all screens.
-
July 19, 2019 at 3:49 pm #32571HarrySupport Expired
Hi,
Your question not clear from first time. Please change code to
if ( ! function_exists( 'jas_claue_child_wc_shopping_cart' ) ) { function jas_claue_child_wc_shopping_cart() { global $woocommerce; // Catalog mode $catalog_mode = cs_get_option( 'wc-catalog' ); if ( $catalog_mode ) return; $output = ''; $output .= '<div class="jas-icon-mini-cart pr">'; $output .= '<a class="pr cb chp db" href="' . esc_url(wc_get_cart_url()) . '" title="' . esc_html( 'View your shopping cart', 'claue' ) . '">'; $output .= '<i class="pe-7s-shopbag"></i>'; $output .= '<span class="pa count bgb br__50 cw tc">' . esc_html( $woocommerce->cart->get_cart_contents_count() ) . '</span>'; $output .= '</a>'; $output .= '</div>'; return apply_filters( 'jas_claue_child_wc_shopping_cart', $output ); } }
and change code in claue-child > views > header > layout-3.php line 97
from
jas_claue_wc_shopping_cart()
to
jas_claue_child_wc_shopping_cart()
Regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.