Open GoogleCodeExporter opened 9 years ago
To add merchant private data, go to googlecheckout/gcheckout.php, search for
$gcheck->push('merchant-private-data');
add $gcheck->element('your-tag-nae', $your_data); for each private data you
want to add
Original comment by rovagn...@gmail.com
on 28 Feb 2007 at 5:07
Hi Rovagnati thanks for your prompt reply. This did help solve part of my
problem -
i now can pass regular product attributes selected from drop down lists, etc to
GC.
However as mentioned above, I am not sure i want to implement text attributes
(text
input boxes, and textarea boxes) for each product. I have several products and
this
would take alot of work.
It appears what I am after is part of a new suggestions list shown here
(see customer notes)
http://groups.google.com/group/google-checkout-developers-forum/web/new-feature-
suggestions-for-google-checkout
This would be much easier for me to receive imprint information and special
order
instructions for the custom print work we do. I hope they can implement the
customer notes soon! Thanks again!
Original comment by PromoteS...@gmail.com
on 2 Mar 2007 at 7:57
yes, that sounds good, nice feature.
btw, try the latest version in the download section.
i've added in gcheckout.php line 150
$gcheck->element('merchant-private-item-data',
base64_encode(serialize($products[$i])));
this tag contains the serialized product variable. so in responsehandler.php
you can
retrieve it.
$items = gc_get_arr_result($data[$root]['shopping-cart']['items']['item']);
$products = array();
foreach($items as $item){
$products[] =
unserialize(base64_decode($item['merchant-private-item-data']['VALUE']));
}
i this can help you.
ropu
Original comment by rovagn...@gmail.com
on 2 Mar 2007 at 1:36
Ropu, thanks for your assistance. i did update to the latest version, but I
don't
understand what the code above does. Please explain. BTW, is there any info on
what
is the status of all those feature suggestions. Any timeframes for next major
update, etc?
Thanks for your help!
Original comment by danmye...@gmail.com
on 3 Mar 2007 at 8:26
have a look to this hack
http://www.ropusoft.com.ar/hack_book/merchant_private_data.php
or this one
http://www.ropusoft.com.ar/hack_book/merchant_private_item_data.php
hope this helps
ropu
Original comment by rovagn...@gmail.com
on 8 Mar 2007 at 11:51
Original issue reported on code.google.com by
PromoteS...@gmail.com
on 25 Feb 2007 at 10:03