Support » Plugin: WP eCommerce » [Plugin: WP e-Commerce] product_sku – Gateway…

  • Resolved Idiom


    We are attempting to pass the product_sku through to the gateway (we used the sample gateway as the base). The Merchant we are using is NMI (custom developed gateway for wp e-commerce).

    The desired format is:

    product_sku_1=sku number
    product_sku_2=sku number
    product_sku_3=sku number

    Any help would be greatly appreciated. This has been a few days of frustration coding and and 3 attempts at finding help on forums). Not an easy place to get help.. 🙁


Viewing 5 replies - 1 through 5 (of 5 total)
  • I tried this but didn’t have any luck..

    $data[‘product_sku_’.$i] = $item[‘sku’];

    It’s difficult to say without understanding how you’ve got the cart data in your merchant file. If you have a $wpsc_cart_item object, then the SKU is held as $wpsc_cart_item->sku.

    thanks so much for the response.

    I used the instructions at link to create the gateway. I see the $wpsc_cart being used, but not the $wpsc_cart_item object.

    This code (From the link you posted)
    foreach($wpsc_cart->cart_items as $i => $Item) {

    Loops through each item in the cart, and $Item will be set to a wpsc_cart_item object, so $Item->sku should work…

    excellent.. This helps a great deal..

    Thanks so much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP e-Commerce] product_sku – Gateway…’ is closed to new replies.