Giter Site home page Giter Site logo

Comments (7)

danielcherubini avatar danielcherubini commented on August 12, 2024 1

OK that's good to know, i had a quick poke around in the source of the plugin.. and it seems like it has functions that are overrides to the standard ones..

that said, go enjoy Påskeferie...

from vipps-recurring-woocommerce.

danielcherubini avatar danielcherubini commented on August 12, 2024

So you know what the structure of a product looks like i've attached one of the exports
wc-product-export-8-4-2022-1649414420014.csv

you can see there is a metadata field Meta: _wcsatt_schemes that contains data if it is a WooCommerce All product Subscription scheme.

I think I have found the code on line 411 of woo-vipps-recurring.php and line 1453 of wc-gateway-vipps-recurring.php

from vipps-recurring-woocommerce.

danielcherubini avatar danielcherubini commented on August 12, 2024

There's a kind of issue with the fix for wc-gateway-vipps-recurring.php

Essentially, you're using WC_Subscriptions_Product::is_subscription() to check if it is a subscription type product, which that SHOULD return a true, since this type of product IS a subscription product.. .but it seems that Woo hasn't added a check in that function for if its a Wcsatt type of subscription...

So the two changes should be to add a check to see IF its a simple type product that has the _wcsatt metadata.

from vipps-recurring-woocommerce.

Marcuzz avatar Marcuzz commented on August 12, 2024

Hi Daniel,

I had never even heard of this plugin before, but it does seem like it isn't integrating with WooCommerce Subscriptions in the way one would expect, causing us to need additional logic to support it.

I will look into this after the Easter break, as I currently have holiday.

If you are able to fix it in the meantime feel free to submit a pull request and I'll verify that everything works once I'm back 🙂

from vipps-recurring-woocommerce.

danielcherubini avatar danielcherubini commented on August 12, 2024

from vipps-recurring-woocommerce.

Marcuzz avatar Marcuzz commented on August 12, 2024

I think refunding should still work fine as that logic is the same for WooCommerce and WooCommerce Subscriptions. I'm not completely sure about cancellation though, but seeing as All Products for WooCommerce Subscriptions is supposed to be compatible with WooCommerce Subscriptions I assume it should work with your changes.

There would definitely have to be a more permanent fix for this however, as the lines you modified are in place to prevent this payment gateway from showing up at the same time as the Vipps Checkout plugin in certain scenarios, like if manual renewals are enabled (this enables the use of single payment gateways for subscriptions) or when using Klarna Checkout.

from vipps-recurring-woocommerce.

Marcuzz avatar Marcuzz commented on August 12, 2024

Added in 1.14.0 (not released yet, will have to do some more testing first).

from vipps-recurring-woocommerce.

Related Issues (20)

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.