This topic has 10 replies, 3 voices, and was last updated 3 years, 10 months ago ago by Olga Barlow
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:
Does this mean i no longer need the above code???
Hello,
Try to delete the code and activate “Show Only Min Price On Variable Products” in Theme Options > WooCommerce > Shop > Product style.
Regards
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!
Hello,
Provide us with WP Dashboard and FTP access to your site to check the issue in more detail.
Regards
Please see private area
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
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:
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:
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.
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????!?
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?
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
You must be logged in to reply to this topic.Log in/Sign up