storefront

Changing header cart text in Storefront

六月ゝ 毕业季﹏ 提交于 2019-12-12 03:33:13
问题 I would like to edit the text in the header mini cart in Storefront theme: 'X items' to just : 'X' http://demo.woothemes.com/storefront/ Where can I access this? Can't find it anywhere in storefront or woocommerce files. I can see hook in header.php: storefront_header_cart but can't find any function for this in other files? I would like to remove the dropdown when you hover over it too. Where can I change this? 回答1: that functionality is handled by storefront_cart_link function... you can

Change Add to Cart Button to View Cart Button after click in Woocommerce

泪湿孤枕 提交于 2019-12-08 07:39:31
问题 I have a Wordpress website. I am using the Storefront theme for WooCommerce. I have ajax add to cart buttons enabled. When an Add to Cart button is clicked and a product is successfully added to the cart I would like the button to change to a View Cart button (change the text to "View Cart", and link to the cart). If possible I would also like to style the button differently to differentiate it from the standard add to cart button. What would the php code look like? 回答1: In Woocommerce by

Change the position of of WooCommerce notices in storefront theme

送分小仙女□ 提交于 2019-12-08 05:22:28
问题 I am trying to change the position of storefront_shop_messages in my Storefront (WooCommerce) child theme. So I have added this code in the functions.php of my active theme: remove_action( 'storefront_content_top', 'storefront_shop_messages', 15 ); add_action('woocommerce_product_meta_end', 'storefront_shop_messages', 1 ); But it doesn't work. 回答1: The correct way to get what you are expecting in your comments (meaning displaying WooCommerce notices after add to cart button on product single

How to change the redirect of the “add to cart” button in woocommerce store

不羁的心 提交于 2019-12-08 04:42:43
问题 Let me start by saying sorry that this title is somewhat vague. More specifically the title should be: How to select the behavior of the "add to cart" button in a woocommerce Storefront theme (probably other themes as well) product archives page (aka shop page), such that it adds the item to the cart and then either stays on the shop page, or redirects to the cart. But that is a long title... 回答1: Redirected To Custom URL : function my_custom_add_to_cart_redirect( $url ) { $url = get

How can query ALL iTunes store fronts of all countries?

前提是你 提交于 2019-12-07 18:28:19
问题 I have an iTunes appID of 9 digits. When I query itunes with a US store http://itunes.apple.com/us/app/id508611913 it does not work. When I try it with a Great Britain (UK) store front http://itunes.apple.com/gb/app/id508611913 then it works. If i try it without any country designation, it defaults to US so it does not find it. I want to query ALL the countries at once. Does Apple provide an API that can query across all the countries? Thanks 回答1: The short answer is "no." Apple does provide

Change Add to Cart Button to View Cart Button after click in Woocommerce

笑着哭i 提交于 2019-12-06 16:01:00
I have a Wordpress website. I am using the Storefront theme for WooCommerce. I have ajax add to cart buttons enabled. When an Add to Cart button is clicked and a product is successfully added to the cart I would like the button to change to a View Cart button (change the text to "View Cart", and link to the cart). If possible I would also like to style the button differently to differentiate it from the standard add to cart button. What would the php code look like? In Woocommerce by default, when you click on "add to cart" button another button already appears on the right side with "View

How to hide page title from WooCommerce Storefront theme homepage?

試著忘記壹切 提交于 2019-12-06 11:23:12
I am trying to hide the Storefront page title on my homepage. This code hides it from all the side: function sf_change_homepage_title( $args ) { remove_action( 'storefront_page', 'storefront_page_header', 10 ); } add_action( 'init', 'sf_change_homepage_title' ); But I can't use is_front_page() because WordPress loads functions.php before the $wp_query object has been set up with the current page, as explained here . I would prefer not using the plugin "Title Toggle for Storefront Theme". Thank you. You didn't understand right the answer you linked to. You can't use is_front_page() right inside

How can query ALL iTunes store fronts of all countries?

蓝咒 提交于 2019-12-06 05:26:40
I have an iTunes appID of 9 digits. When I query itunes with a US store http://itunes.apple.com/us/app/id508611913 it does not work. When I try it with a Great Britain (UK) store front http://itunes.apple.com/gb/app/id508611913 then it works. If i try it without any country designation, it defaults to US so it does not find it. I want to query ALL the countries at once. Does Apple provide an API that can query across all the countries? Thanks The short answer is "no." Apple does provide an API ( http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api

MVC Storefront - Kona - Where are they?

蓝咒 提交于 2019-12-03 12:57:30
问题 I am looking for a full-blown shopping cart example for ASP.Net MVC. I found plenty of links pointing to MVC Storefront (1) (Apparently not being developed anymore) and other articles which talk about Kona, a separate project based off MVC Storefront. Too bad, MVC Store Preview 1A had me pretty happy. Are there any "production ready", open-source ASP.Net MVC Shopping Carts? 回答1: The ASP.Net site has an example of a shopping cart, as part of a music store sample app: link to shopping cart

WooCommerce - unset “<product> removed notice…” on cart page

爷,独闯天下 提交于 2019-12-01 11:54:37
问题 actions and filters. On my WooCommerce site I get the following message when I remove a product from the shopping cart: "<product name>" removed. Undo? Looking over WooCommerce source code I have found a conditional statement in class-wc-form-header.php as part of the function update_cart_action() : $removed_notice .= ' <a href="' . esc_url( WC()->cart->get_undo_url( $cart_item_key ) ) . '">' . __( 'Undo?', 'woocommerce' ) . '</a>'; But I can't find the way to use it for eliminate this notice