WordPress.org

Ready to get started?Download WordPress

Forums

WP e-Commerce
[resolved] product_sku - Gateway... (6 posts)

  1. Brian
    Member
    Posted 2 years ago #

    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
    etc.

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

    THANK YOU

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. Brian
    Member
    Posted 2 years ago #

    I tried this but didn't have any luck..

    $data['product_sku_'.$i] = $item['sku'];

  3. Lee Willis
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  4. Brian
    Member
    Posted 2 years ago #

    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.

  5. Lee Willis
    Member
    Plugin Author

    Posted 2 years ago #

    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...

  6. Brian
    Member
    Posted 2 years ago #

    excellent.. This helps a great deal..

    Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic