taysabr
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [TheShop] Copyright in the footerHi fmartin10!
There it is:// Remove old copyright text
add_action( ‘init’ , ‘mh_remove_copy’ );
function mh_remove_copy() {
remove_action(‘theshop_footer’, ‘theshop_footer_credits’);
}// Add my own copyright text
add_action(‘theshop_footer’, ‘mh_footer_info’);
function mh_footer_info() {
$output = ‘<div class=”copyright”>’.’Your footer credits here’.'</div><!– .copyright –>’;
echo do_shortcode( $output );
}You should paste it into your functions.php file (preferably using a child theme)
Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountThanks for provide it Mike, but it still not working here..
I overrided woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php in my child theme and added the piece of code, but it didn’t work..
then I tried to add it directly to woocommerce class-wc-shipping-free-shipping.php file and it also didn’t work..
then I tried to use different discount on payment gateway plugins (booster for woocommerce and discount per payment method) with the code modification that you provided but it also didn’t work..
Free shipping is still being showed on checkout despite of total is under the minimum amount anyways.
I appreciate your help, I’m sorry for bothering you with this.Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountYes, free shipping has an option to set minimun amount. It happens that woocommerce shipping calculation is based on “subtotal” (I think). And the snippet is based on “cart_contents_total”. I’m just looking for something that can calculate shipping cost considering a discount applied on payment gateway (what woocommerce is not doing itself).
Ex: minimun amount to get free shipping is set to $250
Subtotal is $275
Payment gateway discount: – 25.7
Total: $247.5
It shouldn’t show free shipping in this case, but it does.Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountThat one inside the brackets, right? It didn’t work ??
Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountYes Mike, I have two shipping zones that are using free shipping, the id’s are 1 and 4, but I’m not sure what to do with them.
Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountOk Mike, thank you very much!!
Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountHi Mike!
I’m glad for your reply, but I’m not a coder, so unfortunately I can’t understand what you mean.
I can’t find any plugin that could calculate the discount before the shipping costs calculation, so I think it’s an issue related to woocommerce, isn’t it?
Thanks again!Hi Jason, I’m also looking for a solution to woocommerce shipping calculation after the discount has been applied. Did you find something?
CheersForum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountThanks for your reply Caleb.
If somebody already has the snippet adaption to new woocommerce 2.6 and could share, I would appreciate!
Forum: Plugins
In reply to: [WooCommerce] Shipping cost after the discountAs I didn’t have any reply from Booster plugin support and I haven’t solve my problem yet, I’d like to ask something about a snippet that I got. It should supposedly hide woocommerce free shipping option when total (not subtotal) is under the woocommerce minimum amount (excluding the discount applied by the payment gateway then). The thing is that the snippet is not doing what it’s suppose to do, so I’d like to know what could be wrong with it. Thank you
/**
* @snippet Hide free shipping if under minimum amount
*/
add_filter( ‘woocommerce_package_rates’, hide_free_shipping, 10, 2 );
function hide_free_shipping($rates, $package) {// Get Min Amount from Woo Settings
$free_shipping_settings = get_option( ‘woocommerce_free_shipping_settings’ );
$min_amount = $free_shipping_settings[‘min_amount’];// Get Cart Total
$current = WC()->cart->cart_contents_total;// If Total < Min Amount hide free shipping
if ( $current < $min_amount ) {
unset( $rates[‘free_shipping’] );
}
return $rates;
}Hi, I’m also interested in a solution that could apply the discount before shipping calculation cost. That’s because I’m offering free shipping above certain order amount.
thisismyalterego did you get something?
I’m trying a plenty of dicsount plugins, but none is able to do that until now..Forum: Plugins
In reply to: [WC Cancel Order] Wrong e-mails recipientsI’m sorry. I thought that only admin should receive “Cancellation request” and only costumer should receive “Cancellation request accepted”.
So that’s ok.
Thank you!Forum: Plugins
In reply to: [WC Cancel Order] Wrong e-mails recipients* sended -> sent
Forum: Plugins
In reply to: [Advanced Woo Search] AWS in navigation barThat’s ok, I only used :
echo do_shortcode( ‘[aws_search_form]’ );
into the header’s php file and it worked!
Thanks anyway ??Forum: Themes and Templates
In reply to: [TheShop] Copyright in the footerNevermind guys, I’ve just found out the solution!
Thanks anyway
??