Skip to content
Advertisement

Tag: wordpress

Cant access variable outside of function in wordpress

I am having trouble understanding why I can’t access the $theme_text_domain when it is placed outside of the following function in wordpress. I am getting the following error but if I place it inside the function it works fine. But I would really like to just state the text domain once for all of the functions inside of the functions.php

WooCommerce: “You Only Need x pieces to Get Free Shipping!” @ Cart

Each product weighs is 1kg. From the second product onwards (so 2kg) shipping is free. how can I get this notice to appear?: you Only Need x pieces to Get Free Shipping! Thank you Answer Following from https://www.businessbloomer.com/woocommerce-add-need-spend-x-get-free-shipping-cart-page/ where I believe you got the snippet from, and based on your statement (basically if Cart is not empty and there is

Convert an int to time()

I want to send a reminder email “x” days after an initial email was send. The admin can choose after how many days they want to send a reminder (after the date of the initial mail). This amount is stored in this function and returns an integer (for example 14) The date/time of that the initial email was send is

Calculate and update product price in cart – WooCommerce

I’m creating a WooCommerce (Version 5.6.0) site where users can buy foam products and the prices are calculated on the archive page. Basically, the users enter the dimensions and the price is calculated based on a formula. I’m currently struggling with updating the prices in cart, I don’t have previous experience in customizing the products and prices at this level,

Impossible to display list of *past* or *all* events (events manager plugin) in WP BACKEND with self-created theme

Sorry, this problem needs a longer description and I don’t really have any code to post (or rather, I wouldn’t know what code to post – see below)… I have two websites with two self-created themes in which I use the Events Manager plugin. These themes are very similar concerning HTML structures, php code and javascripts, they differ mainly layout-wise,

Advertisement