[Skip to main content](#vessel-content)

#   Discount depend on amount

##

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#85993](#85993) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#85993 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")* was created by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")*

In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount.
There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price.
Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount.
I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.

Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 9 months ago [\#86081](#86081) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86081 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

There is no default options for that in HikaShop, but you can do a plugin.
Based on the functions " onBeforeOrderCreate(&amp;$order,&amp;$do)" and "onBeforeOrderUpdate(&amp;$order,&amp;$do)".

You can find documentation here:
[ www.hikashop.com/fr/support/documentatio...r-documentation.html](http://www.hikashop.com/fr/support/documentation/62-hikashop-developer-documentation.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#86130](#86130) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86130 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Thx for the answer..

I'm not so hard in coding, but I have found another way to do a little like this..

At my products I have made a lot of Characteristics, and there I have put 2 prices in, the before and the now price.. But where can I set some text in before the prices, just like the add. image?

[ ![prices.JPG](/forum/attachment/8036) ](/forum/attachment/8036 "prices.JPG")

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

- [ ![prices.JPG](/forum/attachment/8036) ](/forum/attachment/8036 "prices.JPG") [ ](/forum/attachment/8036?download=1 "prices.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 9 months ago [\#86178](#86178) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86178 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

You can simply add a translation override like that:
PRICE_BEGINNING_0="Before "
PRICE_BEGINNING_1="Now "

[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

The following user(s) said Thank You: [holm76](/forum/user/9743-holm76 "View holm76's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#86329](#86329) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86329 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

This working well. But when I am adding a product to the cart, it take the first line (Before) and put into the cart also.. The price is correctly the "now" price..

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 9 months ago [\#86533](#86533) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86533 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

That's indeed the case.

If you don't want that, you need to edit the file "listing_price" of the view "product" for your frontend template via the menu Display-&gt;Views and replace the code:
echo $start;

by:
if(empty($this-&gt;cart_product_price)) echo $start;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#86642](#86642) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86642 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Thanks again..

It helped me..

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#86656](#86656) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86656 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

As I wrote up side, it working, but now I see the line in the "total" in the cart also.

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 9 months ago [\#86862](#86862) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86862 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Can you do a screenshot please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#86906](#86906) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#86906 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Here you are.. It's where there is standing "Listepris"
[ ![checkout.JPG](/forum/attachment/8158) ](/forum/attachment/8158 "checkout.JPG")

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

- [ ![checkout.JPG](/forum/attachment/8158) ](/forum/attachment/8158 "checkout.JPG") [ ](/forum/attachment/8158?download=1 "checkout.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 9 months ago [\#87244](#87244) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#87244 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Ok, for that you should add the line:
&lt;?php $this-&gt;cart_product_price = true; ?&gt;

at the beginning of the file "cart" of the view "product".

The following user(s) said Thank You: [holm76](/forum/user/9743-holm76 "View holm76's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 9 months ago [\#90002](#90002) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90002 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Just one more, where mu "Listepris" is showing.. I have created a module, where I would have showing the price that the costumer have to pay. But the text is the before price.
Sometime when its showing I just have to refresh the site, and then its gone. But it's not working all the time..

Where to edit that?

[ ![module.JPG](/forum/attachment/8574) ](/forum/attachment/8574 "module.JPG")

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

- [ ![module.JPG](/forum/attachment/8574) ](/forum/attachment/8574 "module.JPG") [ ](/forum/attachment/8574?download=1 "module.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 8 months ago [\#90120](#90120) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90120 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

I don't know.

Would you give a link where that is displayed so that we can see that issue ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 8 months ago -  13 years 8 months ago [\#90137](#90137) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90137 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

it's bedoil.newzite.dk, if you can see it. As i wrote it come sometimes, and then I refresh it and then it's not showing, what is the correct

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Last edit: 13 years 8 months ago by [holm76](/forum/user/9743-holm76 "View holm76's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 8 months ago [\#90259](#90259) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90259 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

I'm always seeing it.
I cannot reproduce the problem.
Could you try to find a step by step which would allow us to reproduce the problem please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 8 months ago -  13 years 8 months ago [\#90548](#90548) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90548 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

It is not possible for me to reproduce the error.
The only thing I want is to make sure that the word "listepris" does not appear, just further up in the thread.
Sometimes what happens is that the word is displayed and if I update my browser it disappears again.
But how can I remove the text? It is a module that is made ​​in.

I have now tried to force the fail, and if I put an item in the cart and enter next on the cart, the module is showing the word. And here I can't remove it by refresh

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Last edit: 13 years 8 months ago by [holm76](/forum/user/9743-holm76 "View holm76's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#90936](#90936) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#90936 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Hi,

You should have a text override for your "listepris" in your language file.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 8 months ago [\#91047](#91047) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#91047 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

Yes I have a override, made earlier because I want that text to be showed at the product.
That I don't want is to let it show up in the module.
Just as you can see in the tread, I want it to be showed one place

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 8 months ago [\#91215](#91215) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#91215 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

In that case, instead of :
if(empty($this-&gt;cart_product_price)) echo $start;

try to use:
if(empty($this-&gt;cart_product_price) &amp;&amp; !empty($this-&gt;element)) echo $start;

and that should not display your text on product listings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[holm76](/forum/user/9743-holm76 "View holm76's Profile")**
- [![holm76's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9743-holm76 "View holm76's Profile") Topic Author
- [ Offline](/forum/user/9743-holm76)

Less More

- Posts: 152
- Thank you received: 11
-
-
-
-

13 years 8 months ago [\#91733](#91733) by [holm76](/forum/user/9743-holm76 "View holm76's Profile")  Replied by *[holm76](/forum/user/9743-holm76 "View holm76's Profile")* on topic *[Discount depend on amount](/forum/2-general-talk-about-hikashop/77532-discount-depend-on-amount#91733 "In our company, we sell oil, and will now forward build another page in hikashop to the sale of this. On our current side there is an automatic calculation of the discount. There is for example a minimum order of 700 liters and giving discounts, from 1000 liter price. Can the shop in any way be made, so depending on how many liters of customer orders, calculate the price compared to the price and discount. I am considering making a CSV file that we can put in every day, because the price is fair prices, here I can do the calculation in liter. But would rather make a 1000 liter price.  Can discount system in any way manage this and provide a converted discount depending on the amount, and also show what discount rate is?")*

I have tried it now in: view &gt; viewing &gt; product - listing_price.

But it still showing when I add a product to cart, so have edit the file back. Is it the right place to edit?

---

I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc3NTMyLWRpc2NvdW50LWRlcGVuZC1vbi1hbW91bnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.109 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
