Bert O
Forum Replies Created
-
Forum: Plugins
In reply to: [Import Eventbrite Events] Something went wrong, please try again.Hello, this has stopped working again. Anything changed recently?
Forum: Plugins
In reply to: [Discount Rules for WooCommerce] Sale Price EmptyYou have gone above and beyond and I didn’t expect you to write a snippet but thank you. The level of support displayed there is outstanding.
However, what you have done is what your plugin already does and it is not what I was trying to achieve.
Testing your snippet, my question is, why does $sale_price still return 0?
All I want to do is show the customer what they saved based on the difference between the regular price and the sale price.
Which is just basically $regular_price – $sale_price = the difference
Regular Price: £500
Sale Price: £300
The difference: £200 (you saved)This works for me on the product level but not on the cart/checkout journey which is where the problem lies. Your plugin filters $sale_price
Forum: Plugins
In reply to: [Discount Rules for WooCommerce] Sale Price EmptyThe price still comes back as 0.
This is what I am trying to do:
add_action( 'woocommerce_review_order_after_order_total', 'show_total_discount_cart_checkout', 9999 ); function how_total_discount_cart_checkout() { $discount_total = 0; foreach ( WC()->cart->get_cart() as $cart_item_key => $values ) { $product = $values['data']; if ( $product->is_on_sale() ) { $regular_price = $product->get_regular_price(); //$sale_price = $product->get_sale_price(); $discount_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, $quantity, $custom_price, $return_details, $manual_request, $is_cart); $discount = ( (float)$regular_price - (float)$discount_price * (int)$values['quantity']) ; $discount_total += $discount; // } } if ( $discount_total > 0 ) { echo '<tr><th>You Saved</th><td data-title="You Saved">' . wc_price( $discount_total + WC()->cart->get_discount_total() ) .'</td></tr>'; } }I tried $discount_price = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, $price, $product, $quantity, $custom_price, $return_details, $manual_request, $is_cart); on its own and still returns 0.
- This reply was modified 3 years, 6 months ago by Bert O.
Forum: Plugins
In reply to: [Printful Integration for WooCommerce] PHP Fatal error: Out of memoryYour answer is totally irrelevant.
As I have explained, PHP memory has been increased to 2048M – Printful shouldn’t be using this much.
Forum: Plugins
In reply to: [Classic Editor] Classic Editor Not WorkingHi,
Were you able to figure out what the problem was?
It could be that there is a conflict somewhere. Try and disable your plugins and theme if possible.
Forum: Plugins
In reply to: [Classic Editor] How to make horizontal rows stack vertically for mobileHi,
Take a look at this and see if it helps.
You should be able to modify your HTML code by using the classic editor in TEXT mode.
I hope that helps.
Forum: Plugins
In reply to: [Classic Editor] Classic Editor Installation ErrorHello
What is the error message you are seeing?
Did you try also try and switch to a WordPress native theme?
@volkerforster the plugin does not do any of that, all it does is prevent your website from being spammed by a certain known domain, it does that by validating the user’s first name and email domain during checkout.
It will not do anything else.
Forum: Plugins
In reply to: [Simple Payment] Does it support HSBC PayMe??Hello
I too want to know if supports HK HSBC Payme.
Thanks a million.
It’s quite an extensive mod –
https://pastebin.com/4MVRh47M – template
https://pastebin.com/FX1jYZgi – function
I am just not sure where to start as other than the error mentioned above I am not seeing any other errors.
Forum: Plugins
In reply to: [One Click Order Re-Order] Send user directly to checkoutFairplay.
Forum: Plugins
In reply to: [One Click Order Re-Order] Send user directly to checkout@jdembowski I don’t think he did ask for login details, he asked me to email them through their website.
Forum: Plugins
In reply to: [HT Slider For Elementor] Issues -SettingsI had to override the circles with CSS but the slider itself doesn’t work.
For some bizarre reason, it works when I am logged in as a user but when logged out the slides just stack on top of each other.
I see there was an update three days ago but this has not resolved the issue. It’s a shame because it’s a good idea. I will, unfortunately, need to dump this plugin as it’s been too long for an issue like this to be fixed.
- This reply was modified 6 years, 4 months ago by Bert O.
Forum: Plugins
In reply to: [Smart Slider 3] Slider Does Not Work In Elementor’s Modal PopupThanks