Forum Replies Created
-
AuthorPosts
-
VisionaIPParticipant
For reference, solved using
$order->get_order_item_totals()[shipping][value];
instead of$order->get_total_shipping();
Regards.
VisionaIPParticipantHi Anna,
Big mistake. I was testing the emails with an Email Tester from the dashboard, so it was taking admin version of shipping. Sending real emails with your code works, so I’ll review mine and be sure it’s taking the correct variables.
Thanks.
Regards.
VisionaIPParticipantHello Anna,
Yes, I’m using Vendor Shipping.
Yes. I’ve overridden the email templates but keeping the variables, just changing just some style and html. More concretely:
- I’m keeping the woocomerce header:
do_action( 'woocommerce_email_header', $email_heading, $email );
- Same with footer
- I’m using
$order->get_total_shipping();
to get the shipping costs. I thought this could be the error but I’ve copied the code from your template and the results are the same.if ( $totals = $order->get_order_item_totals() ) { $i = 0; foreach ( $totals as $total ) { $i++; ?><tr> <th scope="row" colspan="2" style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['label']; ?></th> <td style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['value']; ?></td> </tr><?php } }
Please, let me know if you need the full code of the template.
Thanks.
Regards.
VisionaIPParticipantSame here, very interested in this feature. Recently acquired WC Vendors Pro for a new website and it’s REALLY important for legal stuff.
I wanted to issue a feature request in the forum but it looks like closed not allowing new requests…Thanks.
Regards.
May 4, 2016 at 10:47 am in reply to: Product creation with a minimum price not adjustable by the vendor #31506VisionaIPParticipantGot it. Thanks!
May 4, 2016 at 10:41 am in reply to: Product creation with a minimum price not adjustable by the vendor #31502VisionaIPParticipantThanks Ben for the quick response. What you’re saying is that this would be a new functionality and it wouldn’t be part of WC Vendors but of WooCommerce, right?
I mean that leaving aside the API for doing it from an external system, setting a minimum price that forces the vendor not to sell the product at a lower price, would be responsibility of WooCommerce.We very much appreciate pointers here to look for the experts to implement what we need.
Thanks again!. - I’m keeping the woocomerce header:
-
AuthorPosts