Donation conflict - by Petuhoff - on WordPress WooCommerce support

Solved3 replies2 participantsUpdated by Jack Richardson

  • Avatar: Petuhoff
    Petuhoff
    Participant

    Hi. After your yesterday changes I forgot, that I moded a donation code before.
    And found some conflict in single-product.php.
    I replaced <?php if(!wpsc_product_is_donation()) : ?> in line 152
    with <?php if(wpsc_product_is_donation()) : ?>
    And that’s the reason, that if I need to show the exact price, I have to check the “donation” box.
    I’m sorry, I haven’t warned you before you made changes.
    Now I returned it back and will be pleased if you help me again.

    3 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    I’ve hidden “O.00” price on single product pages editing the file wpsc-single_product.php in the directory wp-content/themes/blanco in line 158 and replaced the code
    <span class="onsale-price <?php echo $product_id; ?>"><?php _e('Цена', ETHEME_DOMAIN); ?>: <span class="price currentprice pricedisplay" id='product_price_<?php echo $product_id; ?>'><?php echo wpsc_the_product_price(); ?></span></span><br />
    with
    <?php if (wpsc_the_product_price() !== "0.00 Руб") : ?> <span class="onsale-price <?php echo $product_id; ?>"><?php _e('Цена', ETHEME_DOMAIN); ?>: <span class="price currentprice pricedisplay" id='product_price_<?php echo $product_id; ?>'><?php echo wpsc_the_product_price(); ?></span></span><br /><?php endif; ?>

    Please check single product pages now.

    Best regards,
    Jack Richardson.

    Avatar: Petuhoff
    Petuhoff
    Participant

    Checked- working! You’re great!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello,

    You are welcome!

    Best regards,
    Jack Richardson.

The issue related to '‘Donation conflict’' has been successfully resolved, and the topic is now closed for further responses