google-code-export / google-checkout-oscommerce

Automatically exported from code.google.com/p/google-checkout-oscommerce
1 stars 0 forks source link

How to add merchant private data feature? #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  When  a customer orders using GC, they skip the order comments portion 
of the normal osCommerce checkout process.  I still need a field where a 
customer can submit comments to me about their order.  Example: they order 
a coffee cup and want to imprint their name on it.  I need to have them 
send me their imprint information, and receive this with the order. I 
believe this can be done with the merchant private data option? If so I am 
not able to code this myself.  

What is the expected output? What do you see instead?
No comments added to order as described above. 

What version of the product are you using? On what operating system?
v1.1.0b4  on Apache 

Please provide any additional information below.

With GC skipping the regular checkout process, I need the ability to pass 
order comments to GC. Most of my products require customization and input 
from the customer. Normally, they can do this in order comments when 
checking out. With GC, they don't have this option of course, so I need a 
solution. 

I've looked at the Option type feature and Imprint text contributions as a 
possible solution - however, they are buggy at best, and I would rather 
not go with either of these. They also seem to conflict with other key 
contributions I need. 

Is there another way of passing order comments from the customer to GC 
without reinventing the wheel? 

Thanks much for any suggestions!

Dan

Original issue reported on code.google.com by PromoteS...@gmail.com on 25 Feb 2007 at 10:03

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by naveen.i...@gmail.com on 14 May 2010 at 1:15

Attachments: