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
<?php | |
/** | |
* Display the formatted list count. | |
* | |
* Add this code to your theme's functions.php file. | |
* | |
* @param $string $tptn_list_count Formatted list count | |
*/ | |
function tptn_display_formatted_count( $tptn_list_count, $sum_count, $result ) { |
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
/** | |
* Changing add to cart link with custom Text | |
* @author Saiful Islam | |
* | |
* @global type $product getting Global Product variable for getting permalink | |
* @return String Add to cart button link change | |
*/ | |
function sfl_woocommerce_custom_add_to_cart_link_for_shop(){ | |
global $product; |
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
<?php | |
add_filter( 'wpt_archive_layout', 'wpt_custom_archive_layout' ); | |
/** | |
* Determines the layout for the archive page. Specially for Shop page actually | |
* First enable from Configuration page. | |
* See @link https://wooproducttable.com/docs/doc/table-options/product-table-woocommerce-archive-category-tag-attribute-page/ | |
* | |
* @param string $layout The current view. Available table|grid | |
* @return string The layout for the archive page. Possible values are 'table' or 'grid'. |