Hi I have two questions -
Question 1- related to user update .
user update is working fine on local machine but on server when I try to update it always gives an error
I am trying to update password , first name and last name
The controller for path '/api/customer' was not found or does not implement IController.
Question 2- I am trying to post through Api(NopTemplateApi) but I got error always for please contact to store owner.
How i am trying to implement is -
step1- fetch product info on basis of id
step2- fetch customer information by id and bind both data into shoppingcart json .
There may be some field issue
can anyone provide a json format for shoppingcart with minimum fields or a way how to hit .
My json is -
{
"shopping_cart_item": [{
"id": "null",
"product_attributes": [{
"id": 0,
"value": "null"
}],
"customer_entered_price": 0,
"quantity":1,
"rental_start_date_utc": "null",
"rental_end_date_utc": "null",
"created_on_utc": "2017-09-13T09:13:21.716Z",
"updated_on_utc": "2017-09-13T09:13:21.716Z",
"shopping_cart_type": "1",
"product_id": 2,
"products": {
"id": "2",
"visible_individually": true,
"name": "Digital Storm VANQUISH 3 Custom Performance PC",
"short_description": "Digital Storm Vanquish 3 Desktop PC",
"full_description": "<p>Blow the doors off today’s most demanding games with maximum detail, speed, and power for an immersive gaming experience without breaking the bank.</p><p>Stay ahead of the competition, VANQUISH 3 is fully equipped to easily handle future upgrades, keeping your system on the cutting edge for years to come.</p><p>Each system is put through an extensive stress test, ensuring you experience zero bottlenecks and get the maximum performance from your hardware.</p>",
"show_on_home_page": false,
"meta_keywords": null,
"meta_description": null,
"meta_title": null,
"allow_customer_reviews": true,
"approved_rating_sum": 4,
"not_approved_rating_sum": 0,
"approved_total_reviews": 1,
"not_approved_total_reviews": 0,
"sku": "DS_VA3_PC",
"manufacturer_part_number": null,
"gtin": null,
"is_gift_card": false,
"require_other_products": false,
"automatically_add_required_products": false,
"is_download": false,
"unlimited_downloads": false,
"max_number_of_downloads": 0,
"download_expiration_days": null,
"has_sample_download": false,
"has_user_agreement": false,
"is_recurring": false,
"recurring_cycle_length": 0,
"recurring_total_cycles": 0,
"is_rental": false,
"rental_price_length": 0,
"is_ship_enabled": true,
"is_free_shipping": false,
"ship_separately": false,
"additional_shipping_charge": 0.0000,
"is_tax_exempt": false,
"is_telecommunications_or_broadcasting_or_electronic_services": false,
"use_multiple_warehouses": false,
"stock_quantity": 10000,
"display_stock_availability": true,
"display_stock_quantity": false,
"min_stock_quantity": 0,
"notify_admin_for_quantity_below": 1,
"allow_back_in_stock_subscriptions": false,
"order_minimum_quantity": 1,
"order_maximum_quantity": 10000,
"allowed_quantities": null,
"allow_adding_only_existing_attribute_combinations": false,
"disable_buy_button": false,
"disable_wishlist_button": false,
"available_for_pre_order": false,
"pre_order_availability_start_date_time_utc": null,
"call_for_price": false,
"price": 1259.0000,
"old_price": 0.0000,
"product_cost": 0.0000,
"special_price": null,
"special_price_start_date_time_utc": null,
"special_price_end_date_time_utc": null,
"customer_enters_price": false,
"minimum_customer_entered_price": 0.0000,
"maximum_customer_entered_price": 0.0000,
"baseprice_enabled": false,
"baseprice_amount": 0.0000,
"baseprice_base_amount": 0.0000,
"has_tier_prices": false,
"has_discounts_applied": false,
"weight": 7.0000,
"length": 7.0000,
"width": 7.0000,
"height": 7.0000,
"available_start_date_time_utc": null,
"available_end_date_time_utc": null,
"display_order": 0,
"published": true,
"deleted": false,
"created_on_utc": "2017-08-19T09:02:10.72",
"updated_on_utc": "2017-08-19T09:02:10.72",
"product_type": "SimpleProduct",
"parent_grouped_product_id": 0,
"role_ids": [],
"discount_ids": [],
"store_ids": [1],
"manufacturer_ids": [],
"images": [{
"id": 3,
"position": 1,
"src": "http://localhost:1536/content/images/thumbs/0000022_digital-storm-vanquish-3-custom-performance-pc.jpeg",
"attachment": null
}],
"attributes": [],
"associated_product_ids": [],
"tags": [
"cool",
"computer"
],
"vendor_id": 0,
"se_name": "digital-storm-vanquish-3-custom-performance-pc"
},
"customer_id": 1,
"customers": {
"shopping_cart_items": [],
"billing_address": {
"id": "1",
"first_name": "John",
"last_name": "Smith",
"email": "[email protected]",
"company": "Nop Solutions Ltd",
"country_id": 1,
"country": "United States",
"state_province_id": 40,
"city": "New York",
"address1": "21 West 52nd Street",
"address2": "",
"zip_postal_code": "10021",
"phone_number": "12345678",
"fax_number": "",
"customer_attributes": null,
"created_on_utc": "2017-08-19T09:01:21.11",
"province": "New York"
},
"shipping_address": {
"id": "1",
"first_name": "John",
"last_name": "Smith",
"email": "[email protected]",
"company": "Nop Solutions Ltd",
"country_id": 1,
"country": "United States",
"state_province_id": 40,
"city": "New York",
"address1": "21 West 52nd Street",
"address2": "",
"zip_postal_code": "10021",
"phone_number": "12345678",
"fax_number": "",
"customer_attributes": null,
"created_on_utc": "2017-08-19T09:01:21.11",
"province": "New York"
},
"addresses": [{
"id": "1",
"first_name": "John",
"last_name": "Smith",
"email": "[email protected]",
"company": "Nop Solutions Ltd",
"country_id": 1,
"country": "United States",
"state_province_id": 40,
"city": "New York",
"address1": "21 West 52nd Street",
"address2": "",
"zip_postal_code": "10021",
"phone_number": "12345678",
"fax_number": "",
"customer_attributes": null,
"created_on_utc": "2017-08-19T09:01:21.11",
"province": "New York"
}],
"id": "1",
"username": "[email protected]",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"admin_comment": null,
"is_tax_exempt": false,
"has_shopping_cart_items": false,
"active": true,
"deleted": false,
"is_system_account": false,
"system_name": null,
"last_ip_address": "192.17.189.0",
"created_on_utc": "2017-08-19T09:01:21.017",
"last_login_date_utc": "2017-09-12T14:23:06.453",
"last_activity_date_utc": "2017-09-12T15:05:15.03",
"role_ids": []
}
}
]
}