Tag: PHP

  • Override WooCommerce templates with a plugin

    Resources on WordPress Override WooCommerce templates with a plugin

    WooCommerce Templates WooCommerce has templates for everything including emails and provides developers an easy way override them. This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php. This is very useful when you build a custom or a child theme and you want to modify the way WooCommerce looks according to your needs. But in […]

  • Get the visitor’s country by their IP

    Basically the code is something like this:   [crayon-656ebee904877678501483/] So we are using the GeoPlugin API to retrieve the Country code. You can also get the full country name, state, city, continent and some other stuff. Here is a simple dump of the data returned from the site: [crayon-656ebee90487b042584927/] For more info and explanations and […]