• I am using this plugin with wp-e-commerce, and it is giving some wrong respons:

    • At the field “price” I have 0 (product HAS a price, and it is not 0)
    • At the field “priceCurrency” I have the price + the currency, something like 24 EUR

    I think I have plugin well configured, I’ve created a new schema type to the post-type for the products.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter PenelopeGlamour

    (@penelopeglamour)

    Update (I write as reply because I cant edit the question):

    I think the fail s here, at ouput/other_schema.php

    function saswp_wpecommerce_product_schema($input1){
    
        global $sd_data, $post;
    
        if( isset($sd_data['saswp-wpecommerce']) && $sd_data['saswp-wpecommerce'] == 1 && function_exists('wpsc_the_product_description') && get_post_type() == 'wpsc-product' ){
    
                $price = get_post_meta( get_the_ID(), '_wpsc_special_price', true );
                $cal_price = wpsc_calculate_price(get_the_ID());
    			$currargs = array(
    				'display_currency_symbol' => false,
    				'display_decimal_point'   => false,
    				'display_currency_code'   => true,
    				'display_as_html'         => false
    			);
    			$cal_price = wpsc_currency_display($cal_price, $currargs);
                $currency  = chop($cal_price," 0");

    when taking the price with

    $price = get_post_meta( get_the_ID(), '_wpsc_special_price', true );

    is only taking the SPECIAL price, and if not, it’s giving 0, not the real price

    Plugin Author Magazine3

    (@magazine3)

    Hi, Sorry for the inconvenience extremely. Can you please let us know, Where you are getting the wrong responses? In schema testing tool? If yes, Kindly can you please share the URL of the issue once? So that we will look into it once and assist you to fix the issue.

    Thread Starter PenelopeGlamour

    (@penelopeglamour)

    Plugin Author Magazine3

    (@magazine3)

    Hi, Thank you for sharing the info. Can you please kindly let us know Issue persists after the specific update or did you change anything recently? So that we will analyze the issue and assist you to fix the issue accordingly.

    Thread Starter PenelopeGlamour

    (@penelopeglamour)

    Hi, I’ve just deactivated the plugin because this was a little bit urgent, so I’ve setup the schema manually

    Plugin Author Magazine3

    (@magazine3)

    Hi, We are extremely sorry for the inconvenience caused you. We are here to assist you with this issue. Kindly activate the plugin once and help us to fix the issue by checking if the issue persists after any recent update. So that we will analyze the issue and assist you to fix it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘priceCurrency field is taking both currency AND price’ is closed to new replies.