PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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

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);
    }
});

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.

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();
    }
});

I see, I have zero knowledge on coding. Are you able to help me out if any customisation service can be provided.

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

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.

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();
    }
});

Hi Pablo,

I have insert the code in Child: Theme Functions (functions.php).
However there isn't any changes.

Hello

Please  drop  me  exact  limk to the  issue

Here 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.

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();
    }
});

Hey Pablo,

It works! Thank you so much for your assistance.

Have a great day ahead 😊

Hello

Great!  Thank you and  welcome;)