Skip to content

BO - Orders page - Vouchers block - Voucher line is not added when a cart rule "Discount for a country selection" is applied #21548

Closed
Listed in
@khouloudbelguith

Description

@khouloudbelguith
Contributor

Describe the bug

In the BO => Orders => New Order page, the "Discount" line is not added to the Vouchers block when a cart rule "Discount for a country selection" is applied

Expected behavior

Explain what you expected to happen instead.

Steps to Reproduce

You have at least France and United States countries enabled

  1. Go to BO => Catalog => Discounts page
  2. Create a cart rule Discount amount with a country selection "The United States"
    image
  3. Go to BO => Orders => Add new order page for "John Doe"
  4. add some product to the order
  5. Select the address "My address (United states country)"
  6. See an error, the Discount line is not added to Voucher Block
  7. In the Summary Block => ok

image

Other steps to reproduce the issue:

  1. Go to BO => Catalog => Discounts page
  2. Create a cart rule Discount amount with a country selection "The United States"
    image
  3. Go to BO => Orders => Add new order page for "John Doe"
  4. Select a "My address (United states country)"
  5. add some product to the order
  6. The Voucher well added
  7. Try to change the address selected to France
  8. See the error "The voucher line is not removed
  9. In the Summary block, Total voucher = 0 (well updated)

image

PS1.7.6.8 => ok

Additional information

  • PrestaShop version: 1770rc1build2
  • PHP version: 7.2

Activity

prestashop-issue-bot

prestashop-issue-bot commented on Oct 21, 2020

@prestashop-issue-bot

Thanks for opening this issue! We will help you to keep its state consistent

added
BOCategory: Back Office
BugType: Bug
Cart rulesLabel: Which BO under menu is concerned
DiscountsLabel: Which BO under menu is concerned
migrationsymfony migration project
MinorSeverity: minor bug > https://build.prestashop.com/news/severity-classification
OrderComponent: Which BO section is concerned
on Oct 21, 2020
khouloudbelguith

khouloudbelguith commented on Oct 21, 2020

@khouloudbelguith
ContributorAuthor

Related to #20667

added
Nice-to-haveKanban prioritization: issue could be included in next version
on Oct 21, 2020

4 remaining items

added
PR availableSolution: issue is being addressed
and removed
WIPStatus: Work In Progress
on Oct 22, 2020
removed this from the 1.7.7.0 milestone on Oct 26, 2020
added this to the 1.7.7.0 milestone on Oct 28, 2020
modified the milestones: 1.7.7.0, 1.7.7.1 on Nov 18, 2020
Progi1984

Progi1984 commented on Dec 4, 2020

@Progi1984
Member

Fixed by #21568

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

Metadata

Metadata

Assignees

Labels

1.7.7.xBranchBOCategory: Back OfficeBugType: BugCart rulesLabel: Which BO under menu is concernedDiscountsLabel: Which BO under menu is concernedFixedResolution: issue closed because fixedMinorSeverity: minor bug > https://build.prestashop.com/news/severity-classificationNice-to-haveKanban prioritization: issue could be included in next versionOrderComponent: Which BO section is concernedPR availableSolution: issue is being addressedRegressionType: regressionmigrationsymfony migration project

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @eternoendless@Progi1984@marionf@khouloudbelguith

    Issue actions

      BO - Orders page - Vouchers block - Voucher line is not added when a cart rule "Discount for a country selection" is applied · Issue #21548 · PrestaShop/PrestaShop