This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://yithemes.com/themes/plugins/yith-woocommerce-multi-vendor/ | |
Check their admin dashboard. | |
http://demo.wpthemego.com/themes/sw_shopymall/ | |
https://preview.themeforest.net/item/electro-electronics-store-woocommerce-theme/full_screen_preview/15720624?_ga=2.233221533.228043824.1593003774-282314435.1593003038 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imagine a scenario where the application you have built is regularly causing MySQL CPU | |
usage to spike to 100% and memory exhaustion in production. Describe what you would | |
do to isolate the cause of the problem and fix it. | |
# Answer | |
## Isolate the cause of the problem | |
## Fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write a custom MySQL query to return the title and featured image url for the best selling | |
products in a WooCommerce website for the past 30 days. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jQuery | |
$( '.post-type-archive-product #secondary' ).prepend( '<div class="close-drawer"></div>' ); | |
# JavaScript | |
var drawer = document.createElement("div"); | |
drawer.className="close-drawer" | |
document.querySelector('.post-type-archive-product #secondary').appendChild(drawer); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using Hooks or CSS | |
# Code must go to functions.php of Storefront theme or its child theme | |
function remove_header_from_cart(){ | |
if( is_cart() ):?> | |
<style> | |
header, | |
footer{ | |
display: none; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using CSS | |
@media screen and (max-width: 767px){ | |
.site-branding p{ | |
display: none; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using CSS | |
.shoptimizer-primary-navigation { | |
background-color: darkblue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There are two ways we can hide Sale text | |
# Using CSS | |
.content-area .summary .onsale{ | |
display: none; | |
} | |
# Using remove action | |
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using CSS | |
.product .cart .single_add_to_cart_button{ | |
border: 2px solid #3bb54a; | |
background-color: #fff; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We can do it using CSS | |
#page .woocommerce-tabs .panel{ | |
width: 100%; | |
} |