Git Product home page Git Product logo

Comments (5)

madEng84 avatar madEng84 commented on July 30, 2024

Hi @codeinthehole,
No suggestion on how to resolve this bug? I don't want to delete offers from my implementation...
Thank you and Regards

from django-oscar-paypal.

madEng84 avatar madEng84 commented on July 30, 2024

This statement in preview.html is what I'm searching for?

{% comment %}
Regrettably, we need to duplicate the order_contents block from Oscar's core checkout/checkout/html template.
This is because we want to render the frozen basket details here not the current open basket. As of Oscar 0.5.1,
the basket middlware injects the current open basket into the template context which stops us from being able to
automatically render the frozen basket using the default template. This will be fixed in 0.6, after which we can
remove this block
{% endcomment %}

I think I have to implement a new version of the basket middleware for frozen basket on my own... Am I right?
I'm flipping out doing introspection in the code

from django-oscar-paypal.

madEng84 avatar madEng84 commented on July 30, 2024

I resolved it, finally

@codeinthehole i have inserted the following method for the class SuccessResponseView

def apply_offers_to_basket(self, request, basket):
    if not basket.is_empty:
        Applicator().apply(request, basket)

And then i called it both in the get and in the post method...

Hope it helps anyone :>

from django-oscar-paypal.

codeinthehole avatar codeinthehole commented on July 30, 2024

Thanks for this - I'll make sure your changes gets merged and new release cut. I just need to finish Oscar 0.6 first.

from django-oscar-paypal.

codeinthehole avatar codeinthehole commented on July 30, 2024

Fixed in 7cd6c7e

from django-oscar-paypal.

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.