Post by itlemkita » Tue Oct 13, 2015 6:05 pm

Hi guys
just self taught OC
in default flow I seen
Add item to cart - Check out (if stock avail, stock decrease else err msg) - confirm payment
i want to do this
add item to cart - check out (if stock avail, continue else err msg) - confirm payment (if confirmed, stock decrease)

any solution for that without modifying core code?

Newbie

Posts

Joined
Tue Oct 13, 2015 1:02 pm

Post by villagedefrance » Tue Oct 13, 2015 9:30 pm

First of all, welcome on board.

Two, can you specify which version of OC you are using?
if it is the latest v2, then you are in the wrong forum to get an answer.
if it is v1.5.x, please specify the version, so we can have a look.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK

Post by itlemkita » Thu Oct 15, 2015 11:06 am

villagedefrance wrote:First of all, welcome on board.

Two, can you specify which version of OC you are using?
if it is the latest v2, then you are in the wrong forum to get an answer.
if it is v1.5.x, please specify the version, so we can have a look.
its 1.5.6.4
anyway Im covered the checkout part by using subtract stock
and how to cover on confirmation payment's flow . is there any way using module or something without changing core code? coz changing core code is a bit risky

sorry if im wrongly mention something coz im still new at oc :(

Newbie

Posts

Joined
Tue Oct 13, 2015 1:02 pm

Post by villagedefrance » Mon Oct 19, 2015 8:56 pm

Ok, decreasing the stock after payment is only good if the payment method selected is actually processing a payment.

Payment methods like "Cash on Delivery" or "Cheque" will not get instant payment, but the product must be removed from stock since a sale has occured.

This is why the stock is adjusted before the payment step, and I don't think it would be wise to change that.

OpenCart custom solutions @ https://villagedefrance.net


User avatar
Active Member

Posts

Joined
Wed Oct 13, 2010 10:35 pm
Location - UK
Who is online

Users browsing this forum: Amazon [Bot] and 38 guests