Split products in cart when product is sale product + has stock


We have 'sale products' in our Magento store.

WHEN a product is on stock (quantity is > 0) and attribute 'sale product' is Yes THAN we have a script that automatically puts this product in a sale category and adds a 'sale price' of 20% less than the normale price .

Now here is the problem:

When a customer puts a product in their shopping cart 20 times with only 2 on stock, they can buy 20 at the sale price. We give far to much discount.

We need a fix for this, for example:

WHEN a customer buys 20 items of a product that has 2 on stock THAN in the shopping cart should look like:

2 x product to sale price

18 x product to normal price

Can someone fix this for us?

Extra information:

- The stock is not managed by the 'standard' stock function in magento but by an attribute called 'werkelijke_voorraad' (real stock), we enter the amounts ourselves.

- The sale items are managed by the yes/no attribute 'saleproduct'

- The auto sale function is triggered every night by '[url removed, login to view]'

- In the cart a message is shown like: 'we only have 2 products of this item in stock, the other 18 have a delivery time of 3 weeks'

Please respond! thanks.

Evner: eHandel, HTML, Javascript, Magento, PHP

Se mere: limited time offer while supplies last, available while supplies last, while supplies last phrases, while supplies last disclaimer, limited time offer marketing examples, while supplies last meaning, hurry while supplies last, limited quantities while supplies last, magento update product price quantity, magento product page update price quantity, add sale price ubercart products, zen cart stock product attributes, add price quantity product attribute osc, zen cart display price quantity product page, oscommerce specials sale price product attributes, oscommerce price quantity products, zen cart attribute stock, zen cart attributes stock, oscommerce adding products cart problem, zen cart show reviews product info

Om arbejdsgiveren:
( 87 bedømmelser ) Eindhoven, Netherlands

Projekt ID: #15431012

Tildelt til:


hi, I have been magento developer for over 6 years and I had much experience in this field. I read your requirement and really interested, Your sale price issue is not difficult, I am sure I can complete your project f Flere

$50 USD på 1 dag
(84 bedømmelser)

4 freelancere byder i gennemsnit $38 på dette job


Hello! I would be able to make the modifications to your existing magento site. Please view my portfolio for similar projects.

$45 USD på 1 dag
(55 bedømmelser)
$25 USD på 1 dag
(0 bedømmelser)

I work a lot with javascript, for years now and with e-commerces. I know how we fix this problem for good, so the discount will be applied as it should. Get in touch and we can make it work! Thanks.

$30 USD in 3 dage
(0 bedømmelser)