WCMp Core
-
AuthorPosts
-
-
June 10, 2022 at 11:46 PM #137858l.ganParticipant
Hi
1. Vendor shipping tax is not added. Updating does not change the value. Watch a video
https://disk.yandex.ru/i/rqy8lXsj_SV1xg2. I have a custom code where I can display the cost and shipping methods in the product card. But how do I infer this for vendor shipping methods?
add_action( ‘woocommerce_after_add_to_cart_form’, ‘bbloomer_shipping_rates_single_product’ );
function bbloomer_shipping_rates_single_product() {
$zones = WC_Shipping_Zones::get_zones();
echo ‘<div><i class=”fas fa-truck”></i> ‘ . __( ‘Shipping’, ‘woocommerce’ );
echo ‘<table>’;
foreach ( $zones as $zone_id => $zone ) {
echo ‘<tr><td>’;
echo $zone[‘zone_name’] . ‘</td><td>’;
$zone_shipping_methods = $zone[‘shipping_methods’];
foreach ( $zone_shipping_methods as $index => $method ) {
$instance = $method->instance_settings;
$cost = $instance[‘cost’] ? $instance[‘cost’] : $instance[‘min_amount’];
echo $instance[‘title’] . ‘ ‘ . wc_price( $cost ) . ‘<br>’;
}
echo ‘</td></tr>’;
}
echo ‘</table></div>’;
}thanks for the help
-
June 11, 2022 at 5:43 PM #137872NerdySupportExpert MoumitaKeymaster
Hi I.gan, our replies are inline :
1. Vendor shipping tax is not added. Updating does not change the value. Watch a video
https://disk.yandex.ru/i/rqy8lXsj_SV1xg>> I checked this on our end, and as you can see there is no such issue: https://watch.screencastify.com/v/Uj9kfiCcabg7VssIKzbO
It seems like there is some plugin/theme conflict. Just to be sure, disable all the plugins except WooCommerce and WCMp and check again.
If the issue still exists, please switch to some default theme such as Twenty Sixteen and check again.
Please do keep us posted so we can help you out.2. I have a custom code where I can display the cost and shipping methods in the product card. But how do I infer this for vendor shipping methods?
>> Can you please explain the flow you are looking for in more detail. Some screenshots will be very much appreciated.
-
June 14, 2022 at 12:08 AM #137919l.ganParticipant
I got it, everything works
-
June 14, 2022 at 3:28 PM #137936NerdySupportExpert MoumitaKeymaster
l.gan, I presume the issue is fixed. If you need any further help, please do open another thread.
-
-
AuthorPosts
The topic ‘Vendor shipping tax is not added’ is closed to new replies.