How to disable Woocs on Auctions [Custom Job]
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from wenfengteo on April 21, 2022, 05:54Hi there,
I am using WOOCS & Auctions for Woocommence.
Currently, "Auctions for Woocommence" did a great job as products listed as Auctions will fixed its price to the default currency. Thus the numbers won't change even the user select another currency. The winner can still checkout with their preferred currency once they won the Auctions.
However, the dollar sign still changes. It means it will display US$100 and SG$100 on Auctions. Which confused some people.
Hence, may I ask if it is possible to ask for a customisation that WOOCS will not affect products listed as Auctions? The main idea is to display both number and dollar sign only in the default currency for Auctions.
You can view the listings here: https://cardvolution.com/live-auctions/?v=0f177369a3b7
Hi there,
I am using WOOCS & Auctions for Woocommence.
Currently,"Auctions for Woocommence" did a great job as products listed as Auctions will fixed its price to the default currency. Thus the numbers won't change even the user select another currency. The winner can still checkout with their preferred currency once they won the Auctions.
However, the dollar sign still changes. It means it will display US$100 and SG$100 on Auctions. Which confused some people.
Hence, may I ask if it is possible to ask for a customisation that WOOCS will not affect products listed as Auctions? The main idea is to display both number and dollar sign only in the default currency for Auctions.
You can view the listings here: https://cardvolution.com/live-auctions/?v=0f177369a3b7
Quote from Pablo Borysenco on April 21, 2022, 11:24Hello
I think it's possible but only on the product page
An example:
add_filter('wp_head',function(){ $is_auction_page= false; //add function to check current page if(class_exists('WOOCS') && $is_auction_page){ global $WOOCS; $WOOCS->reset_currency); } });
Hello
I think it's possible but only on the product page
An example:
add_filter('wp_head',function(){
$is_auction_page= false; //add function to check current page
if(class_exists('WOOCS') && $is_auction_page){
global $WOOCS;
$WOOCS->reset_currency);
}
});Quote from wenfengteo on April 21, 2022, 11:30Thanks for your reply. May I ask how do I add this code? I've tried adding to functions.php but there is an error.
Thanks for your reply. May I ask how do I add this code? I've tried adding to functions.php but there is an error.
Quote from Pablo Borysenco on April 21, 2022, 12:12Hello
this is just an example
you still need to add code to determine the type of product
add_filter('wp_head',function(){ $is_auction_page= false; //add function to check current page if(class_exists('WOOCS') && $is_auction_page){ global $WOOCS; $WOOCS->reset_currency(); } });
Hello
this is just an example
you still need to add code to determine the type of product
add_filter('wp_head',function(){
$is_auction_page= false; //add function to check current page
if(class_exists('WOOCS') && $is_auction_page){
global $WOOCS;
$WOOCS->reset_currency();
}
});Quote from wenfengteo on April 21, 2022, 12:20I see, I have zero knowledge on coding. Are you able to help me out if any customisation service can be provided.
I see, I have zero knowledge on coding. Are you able to help me out if any customisation service can be provided.
Quote from Pablo Borysenco on April 22, 2022, 11:30Hello
You should contact the support of this third-party plugin and ask them: "how to determine what the current product is auction"
Then write to me and I will make a working code
Hello
You should contact the support of this third-party plugin and ask them:"how to determine what the current product is auction"
Then write to me and I will make a working code
Quote from wenfengteo on May 10, 2022, 10:25Hello, the developer has replied with the following:
code to check if current product is auction:
if ( is_object($product) && $product->is_type( 'auction' ) ) { // product is auction }
Hopefully this works. Thanks.
Hello, the developer has replied with the following:
code to check if current product is auction:
if ( is_object($product) && $product->is_type( 'auction' ) ) { // product is auction }
Hopefully this works. Thanks.
Quote from Pablo Borysenco on May 10, 2022, 11:52Hello
Ok! Try to use:
add_filter('wp_head',function(){ if(class_exists('WOOCS') && is_object($product) && $product->is_type( 'auction' ) ){ global $WOOCS; $WOOCS->reset_currency(); } });
Hello
Ok! Try to use:
add_filter('wp_head',function(){
if(class_exists('WOOCS') && is_object($product) && $product->is_type( 'auction' ) ){
global $WOOCS;
$WOOCS->reset_currency();
}
});Quote from wenfengteo on May 10, 2022, 12:08Hi Pablo,
I have insert the code in Child: Theme Functions (functions.php).
However there isn't any changes.
Hi Pablo,
I have insert the code in Child: Theme Functions (functions.php).
However there isn't any changes.
Quote from Pablo Borysenco on May 11, 2022, 11:48Hello
Please drop me exact limk to the issue
Hello
Please drop me exact limk to the issue
Quote from wenfengteo on May 11, 2022, 11:51Here you go
https://cardvolution.com/shop/cardistry/fontaine-cards-zach-mueller/spongebob-fontaine-holographic-edition/?v=0f177369a3b7
I don't have an active auction now. I can create one if you need it.
Here you go
I don't have an active auction now. I can create one if you need it.
Quote from Pablo Borysenco on May 11, 2022, 12:12Ok! Please try this code
add_action('wp_head',function(){ global $product; if(class_exists('WOOCS') && is_object($product) && $product->is_type( 'auction' ) ){ global $WOOCS; $WOOCS->reset_currency(); } });
Ok! Please try this code
add_action('wp_head',function(){
global $product;
if(class_exists('WOOCS') && is_object($product) && $product->is_type( 'auction' ) ){
global $WOOCS;
$WOOCS->reset_currency();
}
});Quote from wenfengteo on May 26, 2022, 07:02Hey Pablo,
It works! Thank you so much for your assistance.
Have a great day ahead 😊
Hey Pablo,
It works! Thank you so much for your assistance.
Have a great day ahead 😊
Quote from Pablo Borysenco on May 26, 2022, 13:47Hello
Great! Thank you and welcome;)
Hello
Great! Thank you and welcome;)