This file contains 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
Setup | |
Download and install Java for your platform | |
Download selenium server’s latest version from | |
Place the downloaded .jar file to a folder of your choice, commonly C:\selenium | |
Create a batch file to run the server and add file to start up | |
To run server use java –jar selenium-server-standalone-2.25.0.jar | |
to create the batch file: | |
1) open notepad or any text-editor of your choice; | |
2) write the following in the file (supposing the .jar file is in C:\selenium folder): |
This file contains 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
# BEGIN LiteSpeed | |
<IfModule Litespeed> | |
SetEnv noabort 1 | |
</IfModule> | |
# END LiteSpeed | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / |
This file contains 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
This problem is raised for .htaccess file. | |
you need to modifiy .htaccess | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /yourprojectname/ | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains 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
<?php | |
$taxonomyName = "product_cat"; | |
//This gets top layer terms only. This is done by setting parent to 0. | |
$parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'slug', 'hide_empty' => false)); | |
echo '<ul>'; | |
foreach ($parent_terms as $pterm) { | |
//show parent categories | |
echo '<li><a href="' . get_term_link($pterm->name, $taxonomyName) . '">' . $pterm->name . '</a></li>'; |
This file contains 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
! [rejected] master -> master (fetch first) | |
error: failed to push some refs to 'https://[email protected]/username/repository-name.git' | |
hint: Updates were rejected because the remote contains work that you do | |
hint: not have locally. This is usually caused by another repository pushing | |
hint: to the same ref. You may want to first integrate the remote changes | |
hint: (e.g., 'git pull ...') before pushing again. | |
hint: See the 'Note about fast-forwards' in 'git push --help' for details. | |
To fix this error try this command- |
This file contains 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
add_filter( 'woocommerce_checkout_cart_item_quantity', 'customizing_checkout_item_quantity', 10, 3); | |
function customizing_checkout_item_quantity( $quantity_html, $cart_item, $cart_item_key ) { | |
$quantity_html = ' <br> | |
<span class="product-quantity" style="font-weight:bold;">' . __('Quantity:') . ' <strong>' . $cart_item['quantity'] . '</strong></span>'; | |
return $quantity_html; | |
} |
This file contains 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
<section> | |
<h3>latest product section start</h3> | |
<?php | |
$args = array( | |
'number' => $number, | |
'orderby' => 'title', | |
'order' => 'ASC', | |
'hide_empty' => $hide_empty, | |
'include' => $ids | |
); |
This file contains 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
/* VERSION 1 - Vertical Scrolling Thumbnails */ | |
.woocommerce div.product div.images .flex-control-thumbs li { | |
padding: 5px 5px 0 0; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
@media (min-width: 420px) { | |
.woocommerce-page div.product div.images { |
This file contains 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
/*Based on Solution from Rodolfo Melogli*/ | |
/* --- PHASE 1, make the gallery thumbnail column count 1 (not 3 or 4 )--- */ | |
add_filter( 'woocommerce_product_thumbnails_columns', 'dk_single_gallery_columns', 99 ); | |
function dk_single_gallery_columns() { | |
return 1; | |
} | |
// Do it for the Storefront theme specifically: | |
add_filter( 'storefront_product_thumbnail_columns', 'dk_single_gallery_columns_storefront', 99 ); |