Delivery & Pickup Plugin - Woocommerce Package Rates (Ch 5)
Вставка
- Опубліковано 21 лип 2024
- In this chapter we will be implementing everything regarding package rates. We will learn about the ‘woocommerce_package_rates’ hook and how to use it to reflect the user’s choice in the front-end.
In this chapter we will be writing all the Javascript for the front-end functionality. We need our front -end to be able to talk to our back-end and we do this via AJAX calls. We will also make our shipping/delivery reactive.
In this chapter we will enqueue all the necessary javascript & css styles
Source Code: github.com/ArneDeBelser/deliv...
00:00 Hook into “package_rates”
02:14 Figure out why package rates is not working
04:02 Fix typo
04:18 [PHP] Reactively hook the package rates to our dynamic options
06:22 [JS] Reactively hook the package rates to our dynamic options
14:17 Fix unblock, “success” typo
15:59 Unsetting the package key in between AJAX calls
18:27 Apply fix so that correct radio button is selected
19:36 What we have so far
#woocommerce #delivery #pickup #plugin #webdevelopment #ecommerce #wordpress #coding #php #tutorial #setupguide #backend #frontend #codingtips #codingbestpractices #webdev #programming #websites #codingtutorials #onlinestore #websitebuilding #softwaredevelopment #softwareengineering