Answered

FPD and currency switcher

Howdy,


my client loves FPD but wants a currency switcher  as well. Problem is that the switchers display total price on single product pages in basic currency set in woocommerce. The price is calculated properly in the cart screen though.


My guess it has something to do with custom price handlers of FPD (adding costs for colors, layers, images etc.) and how it calculates and display the total.  Any suggestions, tips, solutions?


I tried 2 switchers so far, both had the same problem:

https://wordpress.org/plugins/woocommerce-currency-switcher


https://wordpress.org/plugins/woo-multi-currency


Help would be much appreciated, thanks!




png
  • Hmm seems the _setTotalPrice()  function in class-frontend-product.php is the culprit but I'm yet to figure out what to do about it.

  • Hi, I have the same issue. Was this ever resolved?


    Thanks

  • Hi, has this ever been fixed?

  • Bump

  • You need to remove these lines from class-wc-cart.php and it works for me.


    //add additional [fpd_data]([fpd_product],[fpd_price]) to cart item

       add_filter( 'woocommerce_add_cart_item_data', array(&$this, 'add_cart_item_data'), 10, 2 );

       add_filter( 'woocommerce_add_cart_item', array(&$this, 'add_cart_item'), 10 );


    1 person likes this
  • I face a similar issue where my default currency from add to cart to checkout is correct. However if I change to another currency say GBP - it converts twice which means that I will be making a loss. 


    What Brent S said about putting // infront of the two lines is sufficient to allow the multi currency converter to work only once as desired. 

    However, it does not allow a thumbnail of your customised image to form. That is very important to actually customise the product. Has anyone had any luck regarding multi currency converters? 


    I read on another forum here that Aelia currency switcher helped - definitely did not work for me. This is quite frustrating considering that this is an issue that has been ongoing 6+ yrs

Login or Signup to post a comment