Skip to content

Wordpress WooCommerce plugin that creates a "Shipping Address" page and requires a shipping address to be entered before going to the cart page

License

Notifications You must be signed in to change notification settings

eyesore/woocommerce-enter-address-before-cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eyesore Woocommerce Enter Address Before Cart

  • Creates a page called "Shipping Address"
  • Uses shortcode [wc-shipping-form] on this page embedding woocommerces shipping form
  • Redirects to this page when Shipping Address 1 is empty
  • When this page is posted to, saves information and redirects to cart

TODO

  • Add Actions and Filters
  • Add Settings
  • Add more validation than just Address 1
  • Test on multiple woocommerce sites

Hooks

Filters

  • wceabc_valid_shipping - Whether or not to redirect to shipping_address page
    • Parameters - $valid (boolean), $shipping (shipping address array)
    • Called In - Eyesore_Address_Cart_Public::before_cart()
    • Return - Boolean please

Actions

  • wceabc_before_form - Done in markup before form
    • Called In - wc-shipping-address.php (Eyesore_Address_Cart_Public::wc_shipping_address_shortcode())
  • wceabc_after_form - Done in markup after form
    • Called In - wc-shipping-address.php (Eyesore_Address_Cart_Public::wc_shipping_address_shortcode())
  • wceabc_before_inputs - Done inside form tag before inputs
    • Called In - wc-shipping-address.php (Eyesore_Address_Cart_Public::wc_shipping_address_shortcode())
  • wceabc_after_inputs - Done inside form tag after inputs
    • Called In - wc-shipping-address.php (Eyesore_Address_Cart_Public::wc_shipping_address_shortcode())

About

Wordpress WooCommerce plugin that creates a "Shipping Address" page and requires a shipping address to be entered before going to the cart page

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published