Variation price update - by queenb123 - on WordPress WooCommerce support

This topic has 10 replies, 3 voices, and was last updated 3 years, 2 months ago ago by Olga Barlow

  • Avatar: queenb123
    queenb123
    Participant
    February 8, 2021 at 11:41

    Hello:

    i added this code for my variable items, in my functions.php

    function bbloomer_variation_price_format_min( $price, $product ) {
    $prices = $product->get_variation_prices( true );
    $min_price = current( $prices[‘price’] );
    $price = sprintf( __( ‘From: %1$s’, ‘woocommerce’ ), wc_price( $min_price ) );
    return $price;

    I’ve had a look at yor updates and seems you have sorted it here:

    ssss

    Does this mean i no longer need the above code???

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 8, 2021 at 13:13

    Hello,

    Try to delete the code and activate “Show Only Min Price On Variable Products” in Theme Options > WooCommerce > Shop > Product style.

    Regards

    Avatar: queenb123
    queenb123
    Participant
    February 8, 2021 at 13:51

    nope didnt work – it did not display the prices at all not in the shop or the actual variable product – will put the code back!

    thanks!

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 8, 2021 at 20:39

    Hello,

    Provide us with WP Dashboard and FTP access to your site to check the issue in more detail.

    Regards

    Avatar: queenb123
    queenb123
    Participant
    February 9, 2021 at 00:48

    Please see private area

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 9, 2021 at 10:09

    Hello,

    1) We found that something makes injections to theme files even if we upload the original one
    http://prntscr.com/ytfsn7 (xstore/functions.php, xstore/framework/woo.php) So, we suppose that your installation is hacked. Contact your hosting provider to fix that. Reply back once you solve the issue with the malware code.

    2) Why did you make changes in parent theme files and XStore core plugin files? Don’t change original files because it causes issues and we are not responsible for problems that appear if you customize the parent theme and XStore core plugin. I have created child theme for you. Use it if you need to add any custom functions or change existing functionality!

    3) So, move your changes to child theme because we’ll update theme and plugin files and overwrite your changes.

    Regards

    Avatar: queenb123
    queenb123
    Participant
    February 9, 2021 at 10:57

    Hi,

    1. Thanks for looking at the files – but when my site was hacked last week – i started from scratch and did not use any of the old files – so dont really know how these malicious files keep appearing!

    2. My hosting provider will NOT help wthout additional funding so i will have to go it alone! Is it possible to create a new url – copy these files into the new url:

    sssss

    That way i dont have to start from scratch again, and that way i will know that the malicious code is gone!

    Right now i have 3 versions of the theme showing in my wp-dashboard:

    sssss

    Hence why i want to copy the above files shown in my ftp.

    3. I really dont know how to use child themes – i am old school!

    I dont really have experience with this so will need a bit of guideance please.

    Avatar: queenb123
    queenb123
    Participant
    February 9, 2021 at 13:04

    UPDATE:

    seems my site has been hacked again i have spoken to my hosting and theres nothing at there end – is there a way this could becoming from your side?

    i have uploaded a new url (dzed.dzedcomics.co.uk/) and a new copy of the theme using the child theme and the same code you spotted earlier has now infected the new domain deleting my old one – how i just created it!

    is there something in your theme files as i downloaded a new version from themeforest…my other site are fine – just seems like when i upload your theme its a problem????!?

    Avatar: queenb123
    queenb123
    Participant
    February 9, 2021 at 14:51

    the site has now been deleted by the malicious code – i have a back up of the database – but not the files!???

    Did you happen to make a copy of the files while you were in the backend?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 9, 2021 at 17:52

    Hello,

    We did not make any copies of the client files, sorry. You can download theme archive from the ThemeForest account. We are sure that it does not include any malware because checked by our team and Envato.
    As a rule malware code placed in different files of the WP installation and if you cleaned it by yourself without hosting support then probably you missed something.

    The database also could include injections, so, if you are not very familiar with this process it would better to ask experts to clean your WP installation.

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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