Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPN samo pri bančnem nakazilu #5

Open
rainpikasi opened this issue Jun 14, 2022 · 2 comments
Open

UPN samo pri bančnem nakazilu #5

rainpikasi opened this issue Jun 14, 2022 · 2 comments

Comments

@rainpikasi
Copy link

Zdravo,

je komu že uspelo nastaviti oz. predelati ta modul na način, da se UPN nalog prikazuje samo v primeru, če kupec izbere bančno nakazilo, ne pa tudi pri drugih plačilih?

Ker če nekdo plača s kartico ali izbere plačilo po povzetju, je UPN nalog brezpredmeten in samo bega kupca....

@anzez6
Copy link

anzez6 commented Sep 8, 2022

Živjo, je imel kdo kaj sreče pri tem. Tudi meni se prikaže vedno ne gled ena vrsto izbiro plačila

@brezimenko
Copy link

brezimenko commented Jan 6, 2024

Živjo, je imel kdo kaj sreče pri tem. Tudi meni se prikaže vedno ne gled ena vrsto izbiro plačila

Spremenita upn_page funkcijo takole:

        /**
        * Output for the order received page.
        *
        * @param int $order_id Order ID.
        */
        public function upn_page($order_id)
        {
            $order = wc_get_order($order_id);
            if ('bacs' === $order->get_payment_method()) { // only render UPN if bank transfer is selected as a payment method
                echo '</br>';
                echo '<h2 class="woocommerce-column__title">UPN Nalog</h2>';
                $this->genUPNDescription($order);
                $this->genUPN($order);
                if ($this->instructions) {
                    echo wp_kses_post(wpautop(wptexturize(wp_kses_post($this->instructions))));
                }
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants