I am trying to hide / remove prices from within magento transactional
emails.
I have been able to hide the prices from the everywhere else in the
cart via css but not the emails.
I have tried commenting out the code that renders the price but it
seems mag needs this code to send the emails.
Any help would be appreciated.
Thanks
The default .phtml files for the order emails that display prices are saved in
app/design/frontend/default/base/template/email/order/items/
and
app/design/adminhtml/default/default/template/email/order/items.phtml
To remove prices from these emails, look through them for references to the function formatPrice and remove the surrounding HTML. If you remove the entire "Subtotal" <td>, then you'll want to also remove the "Subtotal" heading <th> from
app/design/frontend/default/base/template/email/order/items.phtml
Ideally you should avoid modifying the original files and would instead copy the files to your own theme folder and make your changes to the copy.
Not a good idea, this might take out all the information below the product rows plus you may find any products other than the first one missing.
If you just want to hide the totals, edit your local.xml file by adding this:
<sales_email_order_items>
<remove name="order_totals" />
</sales_email_order_items>
This will remove the information from your order emails and leave the info there for invoices etc.
OR if using 1.9 then probably best to edit etc/theme.xml but I am not sure what you would need to do there.
Related
In the new orders email from Woocommerce it displays the products and the meta data in a bullet point list below said product.
I have tract down the email_order_items.php file to find this bit of code to render the bullet point list.
I have tried looking for file that contains the code for both do_actions in the image above but haven't had any luck. I did think it was class-wc-order-item-meta.php but after a quick edit nothing changes.
Does anyone know where it is located ?
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.
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 ...
I have remove the add to wish list button on product view page but it still shows for downloadable products.
Can anybody tell me how can I remove this from downloadable products too?
Just look at this two links
http://www.debreiboerderij.nl/gratis-patronen/de-breiboerderij-sneeuwkol-roma-big-gratis-patroon.html
http://www.debreiboerderij.nl/scheepjes-softfun-2423-turkoois.html
I think you may take look at the following file (for the default theme):
app/design/frontend/base/default/layout/downloadable.xml
at Line.217 in the tag , it will add a template file named links.phtml, which belongs to downloadable modules.
You may notice, when modifing the functions related to downloadable products, always pay attention to the files under
app/design/frontend/base/default/template/downloadable
, because there's some customizations with the module Mage_Downloadable
I need to set product based upon their weight and dimension for a delivery system, so i have created sample 5 products each having different attribute based upon their w&d .Then each time when admin places order to a customer(adding to shopping cart) from those products based upon w&d. Now the problem i face how to change the Image and description of the product or order for each customer i have placed this image and description varies for every customer. Is there a way do it. I am open to any suggestion to achieve this can also use php and js if needed. Thanks.
You have solved it yourself alraedy by saying "image and description varies for every customer", so it would make sense to add customer attributes that hold this information. You will have to modify stuff around in your .phtml files though to make this fully work.
Furthermore it would be good if you included what you have tried already.