Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Emails not showing correct shipping totals #72653
    VisionaIP
    Participant

    For reference, solved using $order->get_order_item_totals()[shipping][value]; instead of $order->get_total_shipping();

    Regards.

    in reply to: Emails not showing correct shipping totals #72647
    VisionaIP
    Participant

    Hi 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.

    in reply to: Emails not showing correct shipping totals #70855
    VisionaIP
    Participant

    Hello 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.

    in reply to: Commission including taxes, excluding shipping #70686
    VisionaIP
    Participant

    Same 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.

    VisionaIP
    Participant

    Got it. Thanks!

    VisionaIP
    Participant

    Thanks 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!.

Viewing 6 posts - 1 through 6 (of 6 total)