Coder Social home page Coder Social logo

silverstripe-swipestripe-coupon's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

silverstripe-swipestripe-coupon's Issues

CheckoutFormOrder Template Does Not Exist

After fixing the control tags I then get an error indicating that the file CheckoutFormOrder.ss cannot be found in my theme. It is included from OrderForm.ss

./swipestripe-coupon/templates/Includes/OrderForm.ss:56:            <% include CheckoutFormOrder %>

Problem with adding coupon code from Order object.

Hi,

I have trouble with the $order->updateModifications() function. After doing couple debugs, I found the problem.

In https://github.com/frankmullenger/silverstripe-swipestripe/blob/2.1/code/order/Order.php#L717

$order calls the modification class like $modification->add($this, $value);

But in https://github.com/frankmullenger/silverstripe-swipestripe-coupon/blob/2.1/code/CouponModification.php#L17

when the modification object try to add the coupon into order, it gets Code data from '$order->CouponCode' instead of '$value'.

So every time the order got updated, all coupon modification data will be gone because it can't find the correct coupon code.

I hope this makes sense.

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.