Ash Patel
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Need to split Woocommerce shopTry to put this code in to one function file only…
either parent or child..
Meanwhile it should effect if you set number of blog per page to 48 from admin.Forum: Plugins
In reply to: [WooCommerce] Need to split Woocommerce shopYou welcome ..!!!
Forum: Plugins
In reply to: [WooCommerce] Need to split Woocommerce shopHi,
add following code into your function.php file:
add_filter(‘loop_shop_per_page’, create_function(‘$cols’, ‘return 48;’));
You need to fix post per page in admin at Settings >> Reading section.
Forum: Plugins
In reply to: [WooCommerce] Product PageIt means add product in woo commerce and select category XYZ before save the product.So product would assign to category XYZ.
Forum: Plugins
In reply to: My Theme Isn't Working Right With The W3 Total Cache Plugin.Apply Below code in .htaccess for enable caching without plugin
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css A31536000
ExpiresByType application/x-javascript A31536000
ExpiresByType text/x-component A31536000
ExpiresByType text/html A3600
ExpiresByType text/richtext A3600
ExpiresByType image/svg+xml A3600
ExpiresByType text/plain A3600
ExpiresByType text/xsd A3600
ExpiresByType text/xsl A3600
ExpiresByType text/xml A3600
ExpiresByType video/asf A31536000
ExpiresByType video/avi A31536000
ExpiresByType image/bmp A31536000
ExpiresByType application/java A31536000
ExpiresByType video/divx A31536000
ExpiresByType application/msword A31536000
ExpiresByType application/vnd.ms-fontobject A31536000
ExpiresByType application/x-msdownload A31536000
ExpiresByType image/gif A31536000
ExpiresByType application/x-gzip A31536000
ExpiresByType image/x-icon A31536000
ExpiresByType image/jpeg A31536000
ExpiresByType application/vnd.ms-access A31536000
ExpiresByType audio/midi A31536000
ExpiresByType video/quicktime A31536000
ExpiresByType audio/mpeg A31536000
ExpiresByType video/mp4 A31536000
ExpiresByType video/mpeg A31536000
ExpiresByType application/vnd.ms-project A31536000
ExpiresByType application/x-font-otf A31536000
ExpiresByType application/vnd.oasis.opendocument.database A31536000
ExpiresByType application/vnd.oasis.opendocument.chart A31536000
ExpiresByType application/vnd.oasis.opendocument.formula A31536000
ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
ExpiresByType application/vnd.oasis.opendocument.text A31536000
ExpiresByType audio/ogg A31536000
ExpiresByType application/pdf A31536000
ExpiresByType image/png A31536000
ExpiresByType application/vnd.ms-powerpoint A31536000
ExpiresByType audio/x-realaudio A31536000
ExpiresByType image/svg+xml A31536000
ExpiresByType application/x-shockwave-flash A31536000
ExpiresByType application/x-tar A31536000
ExpiresByType image/tiff A31536000
ExpiresByType application/x-font-ttf A31536000
ExpiresByType audio/wav A31536000
ExpiresByType audio/wma A31536000
ExpiresByType application/vnd.ms-write A31536000
ExpiresByType application/vnd.ms-excel A31536000
ExpiresByType application/zip A31536000
ExpiresByType text/js A31536000
ExpiresByType text/x-javascript A31536000
</IfModule>
## EXPIRES CACHING ##Forum: Plugins
In reply to: My Theme Isn't Working Right With The W3 Total Cache Plugin.Hi,
If you deactivate W3TC plugin you need to enable caching by .htaccess and need to apply few .htaccess rules to make loading fatster.
Cheers..!!
Forum: Fixing WordPress
In reply to: How to find all PDF documents on WordPresshi,
Try Mmm Simple File List plugin,
https://www.ads-software.com/support/plugin/mmm-file-list
You may find it useful to sort list all PDF .
Cheers..!!!
Forum: Fixing WordPress
In reply to: Why My Site Redirecting to another pageHi,
-As Jackie suggested first try to deactivate all plugin and activate one by one,so you may find particular plugin which cause an error.
-Then if problem persist try to switch theme to default as it may happen due to theme specific errors.
– Re-uploading the WP-admin and WP-include folders from fresh download of word press.
-Reset your permalink back to default and check it, if it would be solve your problem then check and review permalink codex in word press.
Forum: Plugins
In reply to: [WooCommerce] Product PageAs i understand you want to reproduce different HTML format for another single product page.
Assume there is “woocommerce” folder in your root theme directory.Create category XYZ and assign product from admin.Then copy content-single-product.php from woo commerce plugin folder to “woocommerce” in theme folder.
and rename it with content-single-product-XYZ.phpCopy single-product.php from plugin folder to “woocommerce” and edit its line 28 from:
wc_get_template_part( ‘content’, ‘single-product’ );
to
$category = wp_get_post_terms( get_the_ID(), ‘product_cat’ );
if ($category[0]->term_id == ‘term_id’)
{
woocommerce_get_template_part( ‘content’, ‘single-product-seperateCategory’ );
}
else
{
woocommerce_get_template_part( ‘content’, ‘single-product’ );
}where term_id should be replace with term id of category XYZ.
Forum: Plugins
In reply to: [WooCommerce] Change language in WoocommerceUse Qtranslate plugin and,
Try qTranslate support for WooCommerce
https://www.ads-software.com/plugins/qtranslate-support-for-woocommerce/
or
Try
IM8 qTranslate WooCommerce
https://www.ads-software.com/plugins/im8-qtranslate-woocommerce/installation/Forum: Plugins
In reply to: [WooCommerce] Add more details about productHi,
You can add more details about product by following wordpress hooks:
1)woocommerce_product_write_panel_tabs
2)woocommerce_product_write_panels
3) woocommerce_process_product_metaand you can display by,
woocommerce_after_single_product_summary
wordpress hook to display ur fields beside other details.
Forum: Plugins
In reply to: [WooCommerce] external/affiliate product in new tabTry plugin if you do not want to modify code in woo commerce,
Plugin : WooCommerce Improved External Products
Forum: Plugins
In reply to: [WooCommerce] external/affiliate product in new tabyou can edit :
woocommerce\templates\single-product\add-to-cart\external.phponline 16 add target=”_blank” to a tag.
Cheers!!!Forum: Plugins
In reply to: [WooCommerce] Cart in MenuHi,
Replace your code by following,
<nav id=”site-navigation”>
<?php _e(‘Menu’, ‘codeus’); ?>
<?php if(has_nav_menu(‘primary’)) { wp_nav_menu(array(‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu styled main_menu dl-menu’, ‘container’ => false, ‘walker’ => new Codeus_Menu_Walker,’exclude’ => $pageId)); } ?>
</nav>Where $pageId should be replace by id of your carting page.
Forum: Plugins
In reply to: [WooCommerce] Cart in Menuhi,
you can pass argument into primary menu function ‘exclude’ =>$pageId which will remove perticular page from primary menu.
wp_nav_menu( array( ‘theme_location’ => ‘primary’, ‘menu_class’ => ‘nav-menu’,’exclude’ => $pageId ) );