Feel free to Add/modify anything
Here we are using digitalocean Debian 11 droplet ($5/month)
| #Insall Ajenti | |
| apt-get update | |
| wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
| echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list | |
| apt-get update | |
| apt-get install ajenti | |
| service ajenti restart | |
| # Uninstall Apache2 | |
| sudo apt-get autoremove && sudo apt-get remove apache2* |
| <?php | |
| require_once __DIR__.'/vendor/autoload.php'; | |
| use Aws\Lambda\LambdaClient; | |
| $client = LambdaClient::factory([ | |
| 'version' => 'latest', | |
| // The region where you have created your Lambda | |
| 'region' => 'eu-west-1', |
| <?php | |
| /** | |
| * Add Continue Shopping Button on Cart Page | |
| * Add to theme functions.php file or Code Snippets plugin | |
| */ | |
| add_action( 'woocommerce_before_cart_table', 'woo_add_continue_shopping_button_to_cart' ); | |
| function woo_add_continue_shopping_button_to_cart() { |
| // check for clear-cart get param to clear the cart, append ?clear-cart to any site url to trigger this | |
| add_action( 'init', 'woocommerce_clear_cart_url' ); | |
| function woocommerce_clear_cart_url() { | |
| if ( isset( $_GET['clear-cart'] ) ) { | |
| global $woocommerce; | |
| $woocommerce->cart->empty_cart(); | |
| } | |
| } |