storefront

How to add custom custom product filter in vue-storefront

喜你入骨 提交于 2021-01-29 07:28:54
问题 I have a question: how to implement additional filter to the vue-storefront product items filters? There are 4 filters (colors, Erin Recommends, price, size) in the default category sidebar and I want to add my custom filter, for example "brand", but I have no idea how to do this. There are nothing useful I could find in the internet, this is official documentation, but this is not enough. Can someone provide the manual or some documentation? Thanks. 回答1: Make sure you have new attribute in

Move coupon form before subtotal in WooCommerce checkout

牧云@^-^@ 提交于 2021-01-28 19:03:59
问题 In my Storefront child theme, in the checkout page, I am trying to move the coupon code block just above the cart totals and below the item review I see in review-order.php that there's the following hook just at the right place: do_action( 'woocommerce_review_order_after_cart_contents' ); So in the functions.php file, I added: remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); add_action( 'woocommerce_review_order_after_cart_contents', 'woocommerce

WooCommerce exclude certain product attributes from shop page

二次信任 提交于 2020-01-24 19:38:09
问题 I've been wracking my brain on this one. Currently, to display all custom product attributes on the shop page (not to be confused with the product page) I'm using: function show_attr() { global $product; echo '<div class="attributes">'; $product->list_attributes(); echo'</div>' } This works just fine, and displays all product attributes, but I only want to include certain ones. I have also tried following this person's advice: <?php foreach ( $attributes as $attribute ) : if ( empty(

Customize displayed products on Woocommerce Storefront home page

穿精又带淫゛_ 提交于 2019-12-30 10:59:15
问题 I have been rattling my brain over this far too long and I cannot find the solution, I have attempted plugins, to the woo commerce documentation and the storefront documentation but no success. The theme by default had a "New In" and "Best Sellers" where it listed 4 "New In" and 4 "Best Sellers" I want to increase the 4 "New In" to 8 so 2 rows of 4 columns and update the "Best Sellers" to a Random so different products show How can I achieve this? Example: https://etzeo.com/ 回答1: The

remove woocommerce storefront homepage title php

℡╲_俬逩灬. 提交于 2019-12-24 10:04:14
问题 I am using storefront theme by woocommerce. I need to remove homepage title (h1) with php, i know css solution, but i don't want to use it, because i want to add h1 to other place in that page and it's bad for seo to have 2 h1's in one page! I also know about plugins that remove page title, but they are working as css display:none; property! I tried all the snippets that i could find in web, but no luck! Here is my site domain BrightBells.com Here is PHP code snippets that i tried one by one

Starting VirtoCommerce Storefront Theme Development

霸气de小男生 提交于 2019-12-24 09:18:34
问题 Trying to start from Timber but the solution won't load without a site on IIS Express existing. Further the contents of the downloaded zip file, while working, the solution does not come with a way to deploy to a new zip so I can create a new zip and deploy. There seem to be files in the zip that are not in the solution so I'm concerned I might not end up with same result just zipping up the files in the solution. Trying to download the Skeleton but no links to actually download from the app

How to hide page title from WooCommerce Storefront theme homepage?

我怕爱的太早我们不能终老 提交于 2019-12-22 14:06:32
问题 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

Storefront: switch to mobile layout for 768px-wide screens

房东的猫 提交于 2019-12-14 02:28:45
问题 I am developping a child theme of Woocommerce Storefront. On a tablet (portrait, 768px wide), I would like the "mobile" layout (burger menu, etc) to be displayed, instead of the the desktop layout (main-menu, etc). I used the following css media queries: @media (max-width: 768px) for mobile @media (min-width: 769px) for desktop in my css file. But all the media queries of storefront seem to activated desktop layout for @media (min-width: 768px) . How can I change this breakpoint? EDIT 1: I

How to start react storefront (moovweb) on express server

偶尔善良 提交于 2019-12-13 03:58:55
问题 On official Documentation server start with npm run start:express Or yarn start:express This is documentation link https://pwa.moovweb.com/guides/express Error Log exports = module.exports = createDebug.debug = createDebug['default'] = createDebug; ^ TypeError: Cannot assign to read only property 'exports' of object '#' On build/server/main.js:51875 please help me to solve this problem 回答1: There was an issue with the starter app that create-react-storefront was building a while ago. This has