Jump to content

patc

Members
  • Content count

    5
  • Joined

  • Last visited

Profile Information

  • Real Name
    Dan Hill
  1. 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 :) !
  2. patc

    Cool Flash Carousel Menu

    AWESOME contribution! 1. Is there a way I can slow down the action. works at a good slow pace at the beginning but after first mouse over it speeds up quite a bit 2. For some reason my right side-bar lowered after adding the codes. It's not the code on the index.php file b/c I tried removing it and the same thing happened. any thoughts? here is the site I'm working on so you can see what I'm talking about: http://98.129.17.114/bookstore/index.php Cheers!
  3. patc

    autorize.net wont show product description?

    When I added the code my shopping cart page won't even load. I am using SIM instead of AIM if that matters. Here is the exact code I used in the file authorizenet_cc_cim.php file for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $x = $i + 1; $post_string .= '&item' . $x . '=' . urlencode($order->products[$i]['model']) . '|' . urlencode(substr($order->products[$i]['name'], 0, 255)) . '|' . urlencode($order->products[$i]['qty']); } switch (MODULE_PAYMENT_AUTHORIZENET_CC_SIM_TRANSACTION_SERVER) { case 'Live': $this->form_action_url = 'https://secure.authorize.net/gateway/transact.dll'; break; default: $this->form_action_url = 'https://test.authorize.net/gateway/transact.dll'; break; } $transaction_response = $this->sendTransactionToGateway($gateway_url, $post_string);
×