| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Don't show "Out of stock" after add to cart | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() OK, I found it. In \modules\Product_Options\func.php
PHP Code:
replaced with PHP Code:
It works well for products that current customer put into cart.
__________________
X-Cart Gold Plus 4.6.6 A lot of custom mods |
|||||||
#12
|
|||||||
|
|||||||
![]() If I read this mod correctly, your buyer will be able to add indefinitely the same item to his/her cart even if you only have 1 left in your stock. I think you need something more complex than that. Probably controlling the the amount of item showed and not changing the available quantity. I am sorry that I can not give you more precise code. Programming logic is one thing and doing the programming is another...
__________________
X-Cart 4.2.2 (linux) Vivid Dreams XAOM |
|||||||
#13
|
|||||||
|
|||||||
![]() cart.php checks for the real amount in stock, you can't add more than you have.
__________________
X-Cart Gold Plus 4.6.6 A lot of custom mods |
|||||||
#14
|
|||||||
|
|||||||
![]() Stizerg,
I tried this mod and it doesn't seem to have made any difference. Am I right in saying that the idea here is that if you for example have a product with 1 left in stock and then a customer adds it to their cart it still shows as available instead of sold out to them? I realise it still shows as in stock to others, which to me seems a bit odd but I can understand the logic to some extend. I would really like this as I don't want customers to think they've just missed out or something, not realising that with it being in their cart means it is somewhat 'reserved' for them. I've got 4.3.2 and I simply copied and pasted the code and uploaded. I'm pretty new to editing x-cart and although I'm a IT tech I'm not really a web developer so I may have missed something. Thanks |
|||||||
|
|||
X-Cart forums © 2001-2020
|