M.Danz
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce pending paymentpaypal is off site, so a pending order should be made.
Is there a plugin to save unpaid customers.
nevermind.. got it working.
I’m having the same problem, did you ever find the solution?
Forum: Plugins
In reply to: [SlimStat Analytics] embed slimstat overview on custom php pageDo the shortcodes display the widgets?
Forum: Plugins
In reply to: [WooCommerce] Show all shipping packages in custom templateI’m also having the same problem.. any idea how to solve?
I’m using the pro version. The ticket number is #3468.
Forum: Plugins
In reply to: How to include wordpress plugins outside of wordpress?Any help, this is quite urgent.
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] Work on simple products?Got it working, added product-type-variable in woocommerce/content-product.php, thanks great plugin!!
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] Work on simple products?I fixed it and now have it working for both simple and variable :D. I want this to work on related products shortcode but i can’t find where the file is to add the product-type-variable class. Do you know where the shortcode php files are located?
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?It seems
wc_add_to_cart_params
is the source of the problem.. i assume it returns false, so wc_add_to_cart_params is undefined?Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?I had some sort of response when removing this
if ( typeof wc_add_to_cart_params === 'undefined' ) return false;
I disabled plugins that any plugins that could cause the error. Is this a theme problem? I’m using woocommerce 2.0, could that be the problem? Are there any functions your using that aren’t compatible with woocommerce 2.0? Is there a workaround, as this is quite urgent…
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?Does this work with woocommerce 2.0?
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?I disabled the plugin and still the page refreshes when pressing add to cart. The variable not changing is due to price rounding up function in functions.php
add_filter( 'woocommerce_get_price_excluding_tax', 'round_price_product', 10, 1 ); add_filter( 'woocommerce_get_price_including_tax', 'round_price_product', 10, 1 ); add_filter( 'woocommerce_tax_round', 'round_price_product', 10, 1); add_filter( 'woocommerce_get_price', 'round_price_product', 10, 1); function round_price_product( $price ){ // Return rounded price if ($price % 10 > 5) { $newPrice = floor($price / 10) * 10 + 9.95; } elseif ($price % 10 <= 5) { $newPrice = floor($price / 10) * 10 + 5.95; } return $newPrice; }
I need this function for website. How does the plugin change the add to cart button?
<button class="single_add_to_cart_button buy_button fl_left button alt" type="submit">Add to cart</button>
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?I’ve activated the plugin and added the product-type-variable and when pressing add to cart the page still refreshes? How do i resolve this?
Forum: Plugins
In reply to: [Woocommerce Ajax add to cart for variable products] How does this work?I’m not following. For example, if i’m on a single product page with variations and i click the add to cart button.. what is the plugin intended to do? I thought that if i press add to cart the page won’t refresh & the cart will be updated via ajax?
Here is a link with variations..
https://www.plantsandtreesonline.co.uk/product/shiplap/shiplap-timber/