[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [mv] How To Extract Item Codes At Checkout Question: Followup
cfm@maine.com wrote:
>
> On Sat, Jan 20, 2001 at 10:25:47AM -0700, OTR Comm wrote:
> x items, y merchants in a single checkout, purchaser buys from
> mall and merchants settle with the mall after transaction, right?
Correct, the 'mall' has a merchant account with Cybercash/Humbolt Bank
and settles with each merchant on a monthly basis.
> "Single merchant account for each separate" implies every store
> has one and only one merchant account, but it doesn't really matter.
> Merchant settlement and shipping is divorced from the purchasing
> transaction, yes? One cart, not multiple carts.
Correct!
>
> At a minimum, assign attribute for merchant id to each product
> systemwide.
Is this an individual merchant id that I assign; e.g., 'boud' for a
company called 'Boudicca'?
Where then I would have an item in my products.asc file called boud-XXX?
> In the report, trigger code to iterate the cart and
> write to database:
>
> for (@{$Vend::Items}) {
> stuff orders, order_items # whatever schema
> $MERCHANTS_IN_THIS_ORDER{$item->{merchant}}; # unique list
> }
> for (keys $MERCHANTS_IN_THIS_ORDER) {
> %o=SELECT * FROM orders WHERE order_number=$this_order_number;
> %v=SELECT * FROM order_items WHERE order_number=$this_order_number
> AND merchant_id=$this_merchant_id;
> &post_advice($this_merchant,\%o,%v); # might be email, db, whatever
> }
Would this take place in Order.pm?
Thanks for your help,
Murrah Boswell
>
> &do_my_behind_the_scene_stuff # can be entirely separate outside mv
>
> cfm
>
>
> --
>
> Christopher F. Miller, Publisher cfm@maine.com
> MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
> 1.207.657.5078 http://www.maine.com/
> Content management, electronic commerce, internet integration, Debian linux
>
> _______________________________________________
> Minivend-users mailing list
> Minivend-users@minivend.com
> http://lists.akopia.com/mailman/listinfo/minivend-users
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://lists.akopia.com/mailman/listinfo/minivend-users