Git Product home page Git Product logo

toret-price-bez-dph's People

Contributors

musilda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

toret-price-bez-dph's Issues

WC 3.0

Dobrý den,
super plugin, ale je v něm několik deprecated funkcí. Pro kompatibilitu s WC 3.0 a novější jsem změnil řádek 38 až 48.
Nahrazené funkce:
$product->get_display_price() =>
wc_get_price_to_display( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) )

$product->get_price_including_tax( 1, $product->get_price() ) =>
wc_get_price_including_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );

$product->get_price_excluding_tax( 1, $product->get_price() ) =>
wc_get_price_excluding_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );

CELKOVĚ

$display_price         = wc_get_price_to_display( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) );
$display_regular_price = wc_get_price_to_display( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) );

$to   = wc_get_price_including_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );
$from = wc_get_price_including_tax( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) );

$to_without   = wc_get_price_excluding_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );
$from_without = wc_get_price_excluding_tax( $product, array( 'qty' => 1, 'price' => $product->get_regular_price() ) );

$display_price_with    = wc_get_price_including_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );
$display_price_without = wc_get_price_excluding_tax( $product, array( 'qty' => 1, 'price' => $product->get_price() ) );
Bylo by parádní doplnit do pluginu i s podmínkou kontroly verzí

Částka s a bez DPH stejná pro nepřihlášené uživatele (ceny zadáváme bez DPH)

Ahoj,

nasadili jsme tvůj plugin (akorát v obrácené verzi viz fork https://github.com/vyskoczilova/toret-price-bez-dph), ale chyba je zreprodukovatelná i pro tvoji verzi, ale nezobrazuje se nám správná částka s daní. V eshou zadáváme cenu bez DPH (protože prodáváme i do zahraničí).

spravna_cena
spatna_cena

V podstatě mi přijde, že situace je správná pro přihlášené uživatele a špatně třeba v anonymním okně: https://www.bjez.cz/sportovni-celenky-obchod/set-stylove-zimni-celenky/

Nenapadá tě proč?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.