How to remove invoice fee from Woocommerce order mail template? - php

As the title says, I want to remove the invoice fee from the customer-processing-order.php (I Think this is the right template)
https://github.com/woothemes/woocommerce/blob/master/templates/emails/customer-processing-order.php
From what I understand it comes from the function get_order_item_totals().
I can't just use CSS to hide it either because everything is inside a table. I found a website where someone was trying to hide the shipping cost and he used this:unset($totals['shipping']); inside the php file, which seemed pretty straightforward and clean. I wish you could just write something like unset($totals['invoice']); but unfortunately that's not the case.
Anyone got any ideas? I can't turn it off anywhere inside Woocommerce either.

do you have a screenshot of what exactly you want to be removed? I don't have an "invoice fee" anywhere at checkout ...

Related

Remove "(incl. tax)" from Woocommerce tables and emails

I want to remove the "(incl. tax)" fromm Woocommerce cart and checkout tables as well as emails. I still need to keep the "(incl. ...$ tax)" that shows the actual tax amount and is displayed in the totals row. If I simply use
.tax_label{
display:none;
}
it is still displaye in emails and I'd prefer a cleaner way.
To edit Woocommerce emails, you have to edit the email template files:
https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/
Not hard to do, just remember to copy your customizations into the current theme, and remember to copy them and test them again if you change themes.
EDIT:
To edit the template files for woocommerce, the files are
/wp-content/plugins/woocommerce/templates/cart/cart-totals.php
/wp-content/plugins/woocommerce/templates/checkout/review-order.php
Copy them to your theme as recommended in the link above. I don't really remember exactly what line to edit, but a little experimenting won't hurt. Just play around a bit until you get the results you are after.

Wordpress Woocommerce price on list not the same as pricen shown on edit page

I have a problem. I'm using Woocommerce plugin and I never edited any default file and there's something wrong with the prices shown. I upload the product via the official API with no problems. If I load the products via browser, it shows the wrong prices.
But if I open the product to edit it, it shows the right price.
I don't understand why this is happening as I've never bothered touching any default core files. I'd appreciate it so much if anybody could help me solve this. Thank you very much.
Did you try putting the price like: 15655.00?
In Woocommerce Settings you can set the currency options where the separators are already handled:

Woocommerce - Order Review total on checkout page not refreshing

After changing the shipping method on the Checkout page of my Woocommerce store, the total price does not update to reflect the new shipping cost.
I disabled all plugins, checked for errors, but everything is running like it should - except the total won't update.
I can't find anything about this on Google either. Anyone know what would cause this, or what steps I need to take to fix?
I had this problem and it was caused by outdated custom woocommerce template files.
For example, the review-order.php file in themes/my-theme/woocommerce/ was outdated and it included some of my own code.
I updated the version of that file, brought my custom code over and voila, upon changing shipping methods it successfully makes an AJAX call and refreshes the order totals.
In your case problem with html classes. When editing the checkout/review-order.php file, you need to keep the right html class shop_table woocommerce-checkout-review-order-table at the highest parent node. The file should look something like this:
<div class="shop_table woocommerce-checkout-review-order-table">
<?php //do stuff, add or remove anything you want ?>
</div>

Magento : How to add new field on cart page for take extra info

I want to add two custom field on my magento site cart page. Something like bellow screenshot.
I want to add this two field on the Cart page and this field input i want to display in the Order and Invoice. I have Also use FME extra field extension but its use for the checkout page only.
So please suggest me if any good extension or good link using which i can set this functionality.
Please help to out from this problem
Hi #Jalpesh how are you?, how familiar you are with the Magento code because to get what you want need to extend a little code and use some Observer to add this info to Order and then to Invoice...
You can start using this extension, Magemaven OrderComment.
I hope this can help.
Best,
GrinGo.

Ubercart add to cart form with quantity option per attribute

I need the add to cart form on each product to display separate quantity fields so items of different attributes can be added at the same time. This is for a photography site, so it makes sense for the customer to order 2 6x4 prints and one 10x8.
Right now the add to cart form is something like this:
Here is a mockup of what I want to have:
I have no idea which hooks to use, or if it's even possible to add multiple product variants in one POST. Is anyone familiar enough with the Ubercart api to tell me how I can go about doing this.
I found this googling for a solution to the same problem. Unfortunately I couldn't find anything.
So I made a patch and sent it in to an issue with a similar request - http://drupal.org/node/782154#comment-3925090
The patch isn't tested very well yet, but I will be going live with it or a subsequent solution in a couple of weeks.
Hope it helps.

Categories