Code Monkey home page Code Monkey logo

ti-ext-coupons's Introduction

Introduction

Coupons adds coupons functionality to TastyIgniter. Coupons are a great way to offer discounts and rewards to your customers.

Documentation

Documentation for TastyIgniter Coupons extension can be found on the TastyIgniter website.

Contributing

Thank you for considering contributing! The contribution guide can be found in the TastyIgniter documentation.

Code of Conduct

In order to ensure that the TastyIgniter community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

TastyIgniter Coupons extension is open-sourced software licensed under the MIT license.

ti-ext-coupons's People

Contributors

breaksecurity avatar djtimca avatar obinnaelviso avatar pablogfb avatar rukmi-patel-it avatar ryanmitchell avatar sampoyigi avatar zelig880 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ti-ext-coupons's Issues

Limiting max uses per customer doesn't work and global limit doesn't update

Expected behavior:
Introducing a max uses limit per customer should limit the maximum uses per customer. Also changing global limit field should change the maximum uses limit

Actual behavior:
Changing max uses limit per customer and max uses in general does not affect to the behavior

Reproduce steps:
Go to admin > Marketing > Coupon > Edit one coupon
Set limits once. Make some orders using that coupon. Change those limits. Continue making orders using that coupon

Version:
3.0.4

Coupon get assigned even if invalid (when set automatically)

Expected behavior:
I would like the coupon to be assigned to my cart ONLY if it is in a valid day.

Actual behavior:
The coupon get assigned to the card and then removed even when it is the wrong day of the week.

Reproduce steps:

  • Create a coupon that is available only on specific days of the week
  • set the coupon to autoapply
  • go to the site and add an item to the cart
  • the coupon will be applied and then remove (see screenshot).

Version:
v3.0.4-beta.27

Additional Information:

  • in the attached screenshot, the coupone of 20% off just applied on tuesday, so it has been removed (hence the array is empty), but the discount and the actual info still show on the sidebar.

image

[Bug]: Install Error

What happened?

During installation from the Setup Wizard today, the installation could not be completed due to an error regarding the DB data of the coupons.

What did you expect to happen?

We expect the installation to complete successfully.

Version

3.5.x

What browser are you seeing the problem on?

Chrome

Relevant log output

SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'ti_igniter_coupons_history_coupon_id_foreign'; check that column/key exists (SQL: alter table `ti_igniter_coupons_history` drop foreign key `ti_igniter_coupons_history_coupon_id_foreign`)

UI glitch showing transparent dropdown menu

Expected Behaviour:
in the section to set up coupons, the windows should be displayed correctly.

Actual behaviour:
the window to select which category to assign the coupons to is transparent as shown in the image.

Reproduce steps:
Go to the "coupons" section, create a new coupon, set which categories the coupon is valid for.

Version:
v.3.0.4-beta.24.2

immagine

Feature request: MultiBuy

As an user of the Coupons extension of Tastyigniter V3, I would like to be able to define offers based on the quantity of specific items being bought.

Real life example: As an restaurant owner, I would like to offer the ability for customer to buy 3 tapas for 10 £.

Steps to reproduce

  • Create a coupons
  • Complete all required fields on the general tab
  • Click the Restrictions tab

Expected

  • I should be able to enter a minimum number of items for the offer to be valid

Actual

  • I can just enter a minimum amount

Automatic apply coupon code

Expected behavior:
After adding something to the cart, the system should also check if the customer is eligable for a coupon (by condition).

Actual behavior:
The only way is to manually apply codes

Reproduce steps:
Well, there is currently not the option for this

Version:
3.0.4-beta.23.2

Additional Information:
I think a simple solution would be to apply all coupon codes available in the system when a new item is added to the cart.
In which file would you do this?

Coupon Code Length is limited to 15 Characters

Expected behavior:
Coupon code should not have a maximum length (or at least a fairly long maximum)

Actual behavior:
Database is limited to 15 characters on the code field

Reproduce steps:

Version:
beta.26

Additional Information:

[Bug]:

After updating to version 1.10.7 (Tasty Igniter v3.7.4), the coupons stopped working.
An error notification appears when trying to add a coupon
Undefined property: Igniter\Coupons\CartConditions\Coupon::$customers

Bug: Coupon get applied even if invalid

Expected behavior:
As an user I expect the coupon that get automatically applied to the cart, to be valid for my order

Actual behavior:
Coupon that are automatically applied do not take into consideration the "days" in which the coupon are valid, and therefore can be applied, but invalid (an error popup will come up as soon as they are applied).

Reproduce steps:

  • Create a coupon with recurrence on a different day that today
  • Make the coupon auto applicable
  • Go on the website
  • Add something to the cart that will make the coupon applicable
  • see the coupon being applied even if it should not (as it is the wrong day of the week)

Version:
3.4.4-beta-26

Additional Information:
I have not personally checked if all other settings (minimum price, correct items, etc..) work properly.

[Bug]: Coupon does not auto apply

What happened?

To reproduce:

  • create two locations
  • create an auto-apply coupon for each location
  • when going into the /menus, only the most recently created coupon will be automatically applied
  • the other location will not have the coupon applied automatically

What did you expect to happen?

I think for every coupon, good or not will be added to the session metadata, but all of them have the same key so they override even the valid coupon - file is flame/src/cart/CartCondition.php

Version

3.2.x

What browser are you seeing the problem on?

Chrome

Relevant log output

No response

[Bug]: Auto apply only works for the most recent auto apply coupon

What happened?

I noticed a bug in the coupons extension, if there are multiple locations with multiple apply automatically coupons.

Only the most recent auto-apply coupon will get applied, for the previous ones the auto-apply will not work

What did you expect to happen?

All of the auto-apply coupons are supposed to work

Version

3.2.x

What browser are you seeing the problem on?

Chrome

Relevant log output

No response

Minimum total Validation when limit to categories / menu items

Expected behavior:
Minimum Total validation when coupons limit to categories / menu items

Actual behavior:
When Coupons limit to Categories / Menu items and Minimum Total is set, it does not validated, the coupon discount applied before Minimum Total reached.
ie: I have 2 items that is selected on coupons extension.
Item 1 price 100
Item 2 price 200
have set 10% discount on minimum total to 200
but when i add Item 1 to cart, the coupon discount also applied before minimum total is reached!!
(Refer Image below)

Version:
3.0.4-Beta.27

Extension Version:
Coupons 1.4.0

Coupons-Condition

Coupons do NOT get applied on options

Expected Behaviour
Once a discount coupon is applied, it should apply to the options as well.
Actual behaviour
After applying a discount restricted to only some products, the discount is applied to the menu items but not to any paid options.

Reproduce steps
Create a new coupon that applies a 10% discount to a limited number of items
immagine
immagine

Create an order by selecting one or more products to which the coupon can be applied.
As you can see, each product costs 2 euros as a base plus 2 euros as an addition; having selected 6, we are talking about 24 in total
immagine

By applying the coupon, a discount of 1.20 euros is applied; this is because the discount is applied only on the base price of the product (6 products of 2 euros, i.e. 12), and not on additions (which keep their price unchanged)
Below is an example of how the discount works
immagine

Additional informations
This does not seem to happen instead with discounts that apply to the entire cart without exception
Version
v.3.0.4-beta.25.2

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.