Fbonnet
Forum Replies Created
-
Hi oscargare,
Thanks for your response!
Unfortunately, it’ still the same:When I change the billing country in the checkout:
../en/checkoutb-ajiax=update_order_review is ok (the product price is 2€)
../en/checkout/?wc-ajax=get_refreshed_fragments is wrong (the product price stay at 1€)
(Even if I force billing country in mini-cart.php) with
wcpbc_set_woocommerce_country( ‘FR’ );
It’s like prices in cart could’nt change after adding the product to the cart.Is WPCB called by ?wc-ajax=get_refreshed_fragments ?
Thanks for your help!
FrancoisThanks for your answer!
I tried withadd_action( 'woocommerce_init', 'override_default_country' ); function override_default_country(){ if(!is_checkout()) { wcpbc_set_woocommerce_country( 'GB' ); } }but the price in ./en/checkout/?wc-ajax=get_refreshed_fragments stay at 1€ (for GB). when the billing country is France
If I remove override_default_country() and start with France,
the ./en/checkout/?wc-ajax=get_refreshed_fragments is ok (price is 2€ for france)
I don’t mind to force product price in \woocommerce\cart\mini-cart.phpin this line $product_price = apply_filters( ‘woocommerce_cart_item_price’, WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );
but I don’t know what WCPBC function can I use to replace this part:
‘WC()->cart->get_product_price( $_product )’Thanks in advance for your precious help!
Francois
Hi oscargare
Thanks a lot for your quick answer !
It works fine except when I change the billing country for the customer
The cart is ok on the checkout page (2€ for France), but in the back-office, when I check the order the price is the one set for GB country (1€). In Paypal (default plugin) it’s also 1€.To resume,
the defaut country is set to GB > the Price 1€ on single produt page is ok
> I add the product to the cart (price is still ok)
> I change the billing address to France (new price is 2€ ok)
Every thing seems to be ok before I click “place order” to go to Paypal
> In paypal, the price is 1€. (in the order in wocommerce also)I’ve look at …/en/checkout/?wc-ajax=get_refreshed_fragments request with Firebug and the price stay at 1€ (for GB).
I think it’s because this line
$product_price = apply_filters( ‘woocommerce_cart_item_price’, WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );
in \woocommerce\cart\mini-cart.php but I cant find wich WCPBC() function can I use to set the good price.
Thanks for your help!
Regards
FrancoisHi,
Thanks a lot for this great plugin!
I’ve a question : I need to override the default country’s setting (the default currency is Euro), when a new user arrive on the shop for the first time, because I need to display the price in £ by default.
I’ve tried to add this line
wcpbc_set_woocommerce_country( 'GB' );
at the end ofcheck_test_mode()function (after the if test).It’s seems to work at first sight.
Is it enough ? or do I need to add more code ?Thanks in advance!
Regards
FrancoisThanks a lot Abhishek.
I’ve put your code into this two files and it works fine now.
My problem is solved.
Thank you again for your help and efficiency!
FrancoisHi Abhishek
thanks for your help.
I’m familiar with php code.
I think it can be solved with adding this :order by cast(start_date as datetime) asc
in the “Fetch All ‘WEEKLY’ tim-eoff and calculate disable slots” query in
appointment-calendar-shortcode.php
but maybe I’m wrong ?Thanks
FrancoisHi Abhishek
thanks a lot for your test.
This is a screen shot for my time off table
http://postimg.org/image/t38y6hwgl/
and a screen shot of the appointement window
http://postimg.org/image/rdsx85ckz/
and also the url where you can test the pb for Thursday
http://s534863374.onlinehome.fr/tests/reservation/Thanks in advance
FrancoisForum: Plugins
In reply to: [wpRTC - WebRTC for WordPress] Wp in a SubfolderHi!
First, Thanks for this powerful plugin.
I think I’ve the same problem.
I’ve tried with a friend, on two pc’s with FF v35
and we can see our own face but not the other one.
This the page I’ve made : http://www.fbnet.fr/tchat/
Is there someting to add with the [wpRTC] shortcode to see the both videos ?Thanks for your’ help!
Regards
FrancoisHi HoodSiegal,
Did you managed to add the event list below the small calendar with
angelo’s solution ?Thanks for your help!
Regards
Francois