How to modify the WooCommerce shop page to tweak the display price without affecting the actual price under the hood?

The woocommerce shop I am working on imports product price as "£ per g", this is correct for the calculation. On the shop page my client would like the price to be displayed as "£ per 100g" so I need to multiply the price by 100. In functions.php I have the following snippet which lets me change what is displayed (as you can see, I have already edited the text to display correctly), does anyone provide help on how to translate this import price to display price?

add_filter( 'woocommerce_get_price_html', 'wb_change_product_html' );     // Change and return $  price_html variable using the $  price and weight amount     let a = 10     function wb_change_product_html( $  price ) {         $  price_html = '<span class="amount">' . $  price . ' per 100g </span>';   // change weight measurement here              return $  price_html;     }          add_filter( 'woocommerce_cart_item_price', 'wb_change_product_price_cart' );     // Change the cart prices with $  price variable and weight amount     function wb_change_product_price_cart( $  price ) {         $  price = $  price . ' per g'; // change weight measurement here              return $  price;     } 

I’m sure that there’s a quick fix here! I have also added a screenshot of the import columns so that the price change I’m looking for can be seen.

enter image description here

Tweak the WP Query search

I am having a hard time trying to find a way to tweak the search option on my wordpress website. For example: I have products with the word electronic in the title, however when people search with the word electronics (plural) it won’t pull the results of all the products containing the title electronic and I guess that’s not good. Probably I’m loosing potential buyers. Any idea how to tweak that? Thank you!

Is this proposed tweak to the Transmutation Wizard’s Master Transmuter class feature balanced for a setting without resurrection?

The School of Transmutation wizard archetype has a feature at level 14 called Master Transmuter. It can allow such a wizard to, once per long rest, destroy their transmuter’s stone and do the following:

Restore Life. You cast the raise dead spell on a creature you touch with the transmuter’s stone, without expending a spell slot or needing to have the spell in your spellbook.

Unfortunately, in my homebrew universe, there is no resurrection magic, so I’m looking into replacing this option with something homebrew that is not related to resurrection, but still at least broadly fits the theme of “Restore Life“.

Unlike in my similar question about replacing resurrection related class features, I do actually have a player who has a transmutation wizard (they are currently “retired”, but the player is strongly considering “unretiring” them in the near future, so this character will almost definitely come back at some point and isn’t far off level 14); this player is also strongly in the camp of “resurrection magic cheapens death”, so they are definitely up for replacing this option of the class feature.


Given that it is called “Restore Life“, I considered replacing it with some kind of healing (say, the heal spell), but then noticed another option that the Master Transmuter feature offers:

Panacea. You remove all curses, diseases, and poisons affecting a creature that you touch with the transmuter’s stone. The creature also regains all its hit points.

So healing would look a bit redundant and underwhelming compared to that option.


Finally, I looked towards greater restoration, since a) it’s a 5th level cleric spell like raise dead, and b) Panacea is kind of like a super charged lesser restoration, plus healing. So I have come up with the following (a “super charged greater restoration“):

Restore Life. You end all reductions to all of the target’s ability scores and hit point maximum, and end one effect that imposes the petrified condition on the target.

I’ve not included the greater restoration spell’s removing curses (since I didn’t want overlap with Panacea) or ending charmed effects (because it doesn’t really fit the theme of restoring life). I also haven’t included regaining any hit points because I thought that might be too powerful compared with Panacea if it also healed the target (although I could have it at least restore hit points equal to the reduction of their hit point maximum, if it was reduced at all).


So my question is, in a setting where there is no resurrection magic, does my proposed replacement of the Restore Life option of the Master Transmuter class feature seem balanced, primarily comparing it to the raise dead spell and the Panacea option?

How can I tweak the Lost Mine of Phandelver for only 2 player characters?

I’m going to DM Lost Mine of Phandelver tomorrow for 2 friends who’ve never played the game before. I’ve never DM’d before either.

Would starting them off at level 2 be enough to compensate for the imbalance? Should I still scale the enemies down, and keep them at level 1, or maybe do both? Should I give them many more healing potions than what is suggested in the treasure sections?

I just don’t know. What’s the most effective way to scale this adventure down?

Unity Tweak Tool – Schema missing

I installed unity tweak tool through the terminal and whenever i try to run it I get the dialog “the following schema is missing: com.canonical.indicator.bluetooth. I tried to look online for solutions but it was mostly people who had different type of schemas missing. I even installed the packages they recommended but it didn’t do anything. I anybody knows how to solve this particular problem it would be much appreciated. Thank you.

trying to insert a view inside a view using twig tweak module

I am trying to insert a view inside a view but struggling a bit

I have a view called My Class with all my fields in it, this works fine.

I have a view with a contextual filter called Students Block, (This is using the reference to the my class content type that populates the My Class view) machine name students_block and a BlockView called students_block

I’ve set up a contextual filter and reference to My Class and again this works as expected when used as a block.

Now I am trying to add the students_block in the middle of the My Class view.

I have set up content hidden ID to expose the NID, and then a global custom text field that has as follows

{{ drupal_view(‘Students Block’, ‘students_block’, nid) }}

I can’t whatever I do get any results, if I remove the nid I do get my original view, and I have tried other blocks as per the examples and that seems to work for me

Can anyone assist please

Thanks

Ubuntu Shell theme option is not showing in my tweak tool

I have installed gnome teak tool and its working fine. I can add and change GTK and ICON themes,

But the option for GNOME Shell Theme is not showing that should show under Cursor, please see the screenshot below.

enter image description here

Can any help me that how I can use shell theme to change my Ubuntu 16.04 Desktop?

While the package gnome-shell-extensions is also installed on my system and its the newest version (3.18.3-2).

Unity Tweak Tool Doesn’t work. Schema missing. org.gnome.nautilus.desktop

my problem is this. I recently installed Ubuntu 18.10, but I did not like the desktop interface, so I went back and installed the version of Gnome 3.30. The problem is that I had Tweaks in the previous version and I disabled the icons on the desktop. When I changed, the Tweaks option did not appear to enable desktop icons, so I tried Unity Tweak Tool, but when I started it, It says that the org.gnome.nautilus.desktop schema is missing.

Could you help me? Either to appear the icons on the desktop or to init Unity Tweak Tool. Thank you very much!