Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product discount not working #67

Open
webian opened this issue Jun 30, 2020 · 7 comments
Open

Product discount not working #67

webian opened this issue Jun 30, 2020 · 7 comments
Labels

Comments

@webian
Copy link
Contributor

webian commented Jun 30, 2020

No matter how I setup tt_products (getDiscountPrice; discountFieldMode; discountPriceMode; discountprice), it seems impossible to achieve the simplest of the requests: display the price/discount based on the value of the discount field of a product in list or single view.

@webian
Copy link
Contributor Author

webian commented Jun 30, 2020

Discount is visible only in basket if I set discountFieldMode = 1 or discountFieldMode = 2 so it's still missing in list and single.

@webian
Copy link
Contributor Author

webian commented Jun 30, 2020

Also if a FE user is logged in and be in group of priceNoReseller = 2 then price2 is used but discount from product field is not applied in any place.

@franzholz
Copy link
Owner

These are different things. discountFieldMode only works with the discount field of products and categories.
getDiscountPrice must be 1 in order to activate the discount feature for the discountprice setup.
You cannot combine both discount features.

@webian
Copy link
Contributor Author

webian commented Jul 1, 2020

Sorry but this is not a question it's a bug report because the discount field is not applied to ###PRICE_TAX### in single and list view. Only in basket view the ###PRICE_TAX### marker is calculated with the discount set in discount field.

And...

Also if a FE user is logged in and be in group of priceNoReseller = 2 then price2 is used but discount from product field is not applied in any place.

@franzholz
Copy link
Owner

You can only reqport one issue here, which is for the discount field. priceNoReseller must get a new issue.

@webian
Copy link
Contributor Author

webian commented Jul 7, 2020

Please, read the whole sentence, also the part "...but discount from product field is not applied in any place".
It's still a discount field problem.

@franzholz
Copy link
Owner

franzholz commented Jul 9, 2020

Take care to set this setup correctly:

plugin.tt_products.conf.tt_products.ALL {

     requiredFields = ...
}

You should not remove the default fields set by tt_products:

  requiredFields = uid,pid,category,price,price2,discount,discount_disable,directcost,graduated_price_uid,tax,inStock,unit_factor,weight

discount must be set.

@franzholz franzholz added bug and removed question labels Jul 10, 2020
franzholz added a commit that referenced this issue Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants