umergoldsmith
Forum Replies Created
-
Forum: Plugins
In reply to: [Photo Reviews for WooCommerce] Hide date on Reviewsthis option visible for grid view only when we use normal it dissappear.
I have temporarily use this code to resolve the issue, but is there any official way to do without adding and running php function? because this is problem with plugin, developer had confusion between pkr and inr currency because both countries uses Rs.
/**
- Change a currency symbol
*/
add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
switch( $currency ) {case 'PKR': $currency_symbol = 'Rs'; break;}
return $currency_symbol;
}Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] in stock click autoAvoid my last reply, it worked by adding the code in function. php
add_filter(‘woof_get_request_data’, ‘my_woof_get_request_data’); function my_woof_get_request_data($data){ $data[‘stock’]=’instock’; return $data; }
but the problem is now it’s always tick, and out of stock selection is not visible? when i untick in stock, it again shows instock only auto
Forum: Plugins
In reply to: [HUSKY - Products Filter Professional for WooCommerce] in stock click autoWhen i tried to add this code to functions.php, All i wanted it to show in stock products by default in categories and if customer untick in stock then out of stock products should visible.
add_filter(‘woof_get_request_data’, ‘my_woof_get_request_data’); function my_woof_get_request_data($data){ $data[‘stock’]=’instock’; return $data; }
it displayed this errorSnippet automatically deactivated due to an error on line 4:
Cannot redeclare function my_woof_get_request_data.
Forum: Plugins
In reply to: [WooCommerce] product in stock but not displaying in category or homepageI did one more thing, when i uncheck “Hide out of stock products” in woocommerce settings, then all products are visible, but it also shows hundreds of out of stock products,
i am not very techie, but i used google help to find a code to hide out of stock products via php function code, but out of stock products still visible on related, and search results,
do you know any functions.php code to hide out of stock products from everywhere in store?Sir there is no tab for cost of goods.
- Change a currency symbol