Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. type = configurable
  2. product id = 1300
  3. product sku = FCC100
  4. Attribute Code= color
  5. Attribute Label= color
  6. Attribute Id= 152
  7. options value = 28,43
  8. options label = blue,red
  9.  
  10. $product = array(
  11. "product_id" =>"1300",
  12. "qty" => 2,
  13. "super_attribute" => array(152 => 28));
  14. $result = $proxy->shoppingCartProductAdd($sessionID, $cartID, array($product));
  15.  
  16. $result = $proxy->shoppingCartProductAdd($sessionID, $cartID, array(array(
  17. 'product_id' => $productID ,
  18. 'sku' => $sku ,
  19. 'qty' => $qty,
  20. 'options' =>array(0 =>array('key' => $option1id ,'value' => $option1value),1 =>array('key' => $option2id ,'value' => $option2value)),
  21.  
  22. 'bundle_option' => null,
  23. 'bundle_option_qty' => null,
  24. 'links' => null
  25. )));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement