Donation conflict - by Petuhoff - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago ago by Jack Richardson

  • Avatar: Petuhoff
    Petuhoff
    Participant
    July 1, 2015 at 11:01

    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
    July 1, 2015 at 12:30

    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
    July 1, 2015 at 13:45

    Checked- working! You’re great!

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 1, 2015 at 15:48

    Hello,

    You are welcome!

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.