Closed (fixed)
Project:
e-Commerce
Version:
4.6.x-1.x-dev
Component:
parcel.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2005 at 04:23 UTC
Updated:
20 Sep 2005 at 01:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
syllance commentedHello,
I'm also experiencing the "sold out" problem for parcel products. It always happens, doesn't matter what products are in (with/without inventory, shippable/unshippable).
My setup is Drupal 4.6.3, with the 4.6.0 ecommerce module installed (all contrib modules are installed too : auction,submanage,...). I've quickly setup the ecommerce-cvs version downloaded from the drupal site, and the problem remains (all db tables were dropped and recreated using the cvs version).
Before starting further testing and code checks to see what happens, I wanted to know if there's anything new on this issue. Did you manage to add to cart a parcel product ?
Thanks,
Comment #2
Crell commentedNo, I haven't. The client I was going to be implementing this for has decided to sit and wait and take forever to decide, so I've sidelined this for now. :-) If it ever gets fixed, please do let me know.
Comment #3
q0rban commentedIs there anyone willing to work on this?
I found a temporary workaround. If you put in the description an 'add to cart' link like so:
where [nodenumber] is the node of the parcel..
This seems to work, as the product then showed up in my shopping cart...
But, it still says "sold out" at the bottom.
Comment #4
q0rban commentedWell, here is a patch I made. I've never made a patch before, so I hope it works..
The problem I found is that the parcel module checks the inventory of each product within a parcel, but then still returns 'false' at the end of the 'while' loop. The patch I made returns 'false' (ie, not in stock) for the whole parcel if any product within it is not in stock. My PHP knowledge is limited, so please revise/simplify this patch.
Hope this helps!!
cheers
Comment #5
matt westgate commentedWe use
diff -uwhen creating Drupal patches. Can re-roll this patch? More instructions can be found here.Comment #6
syllance commentedI've manually applied q0rban patch, and it seems to work, so i've rolled the patch with a cvs diff -u.
file is attached.
Comment #7
q0rban commentedThanks everyone.. sorry for not patching properly...
cheers
Comment #8
syllance commentedthanks to you for the patch itself :)
we learn everyday, and today i've learned how to make issues appearing in patch queues by setting their status to higher level, so i'm moving this to patch code needs review :)
Comment #9
matt westgate commentedCommitted to 4.6 and HEAD. Thanks!
Comment #10
(not verified) commented