Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to pass product Attributes as merchant defined field (Auth.net AIM)


patc

Recommended Posts

I need to find code to properly pass product "Attributes" as a merchant defined field in the authorize.net payment module. In my authorizenet_aim.php file I have the following already which passes the products themselves, I just need to figure out the fields / code to use to pass the attributes...

 

 

// Add items ordered to merchants email as merchant defined fields Order - Product model, Product name and Qty ordered MC

if (MODULE_PAYMENT_AUTHORIZENET_AIM_EMAIL_MERCHANT == 'True' && MODULE_PAYMENT_AUTHORIZENET_AIM_ADD_ITEMS == 'True')

{

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

$x = $i + 1;

$data .= '&item' . $x . '=' . urlencode($order->products[$i]['model']) . ' -|- ' . urlencode(substr($order->products[$i]['name'], 0, 255)) . ' -|- ' . urlencode($order->products[$i]['qty']);

}

}

 

 

 

My intended use is that I have 1 product that has 5 different attributes (like 'color', 'size' , 'material' , 'somethingelse ' ,,,)

 

I know I can't be the first person with this issue, but my buddy Google has not helped so far so I'm looking for actual people to help :) !

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...