• Resolved bergeny

    (@bergeny)


    Hello
    Is there any way I can prevent the plugin from changing my structured data ?
    even though the option of getting the appropriate JSON-LD “price” entry for the purpose google merchant approval is DISABLED in the plugin settings, The plugin code appears to forcely use the old wordpress structured data code.

    I can’t use my custom JSON-LD for the moment, could you please fix that ?

    woocommerce-sea.php

    else {
    								// AggregateOffer
           	       					 	   	$prices  = $product->get_variation_prices();
           	       		 			     		$lowest  = reset( $prices['price'] );
                   	        				 	$highest = end( $prices['price'] );
    
                     			  		     	if ( $lowest === $highest ) {
                            			     	  		$ecomm_price = wc_format_decimal( $lowest, wc_get_price_decimals() );
                                   				 	} else {
                            			       	 		$ecomm_lowprice  = wc_format_decimal( $lowest, wc_get_price_decimals() );
                            				        	$ecomm_highprice = wc_format_decimal( $highest, wc_get_price_decimals() );
    								}
    							}
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi bergeny,

    When you have the JSON fix option of the plugin disabled the plugin will use the default WooCommerce JSON code (which is buggy).

    The snippet of code you pasted is part of the code when the JSON fix option is enabled.

    All the best,
    Eva

    Thread Starter bergeny

    (@bergeny)

    Hi Eva
    Thanks for the prompt reply
    I have set a custom JSON via functions.php but just after installing the plugin, it goes to the WP original one which is messy as you said.

    Any suggestion please ?

    Thread Starter bergeny

    (@bergeny)

    Hello Eva
    Did you get my last message ?

    Yes we did. We have put it on our to-do list to look at but it will probably mean having to make changes to the code of the plugin. Could take a few weeks before that is released (when we decide to make the change).

    Best,
    Eva

    Thread Starter bergeny

    (@bergeny)

    Dear Eva

    Thanks for your reply, I tried to edit the code and I commented all that “Else” exception part of the code but I’ve got surprised that all the plugin got uninstalled automatocally .
    I wonder if it’s due to a security measure you set to prevent edits .

    Hi Bergeny,

    No we definitely did not build in some mechanism to deactivate the plugin when someone changes the code.

    Best,
    Eva

    Thread Starter bergeny

    (@bergeny)

    Thank you Eva, I appreciate your help

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Structured Data is manipulated by the plugin with no option in dashboard’ is closed to new replies.