Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2012 at 20:22 UTC
Updated:
7 Jan 2013 at 18:12 UTC
Hi,
I am not a programmer. I got from a company the following info for getting prices to import:
I would very much like to import this info into drupal commerce product entities (not nodes).
I use already commerce feeds, but don't know how to insert this information.
Call Content:
<?xml version="1.0" encoding="utf-8"?>
<PRICELIST_REQUEST>
<CUSTOMER_NUMBER> XXXX</CUSTOMER_NUMBER>
<LOGIN>**** YOUR WEBSHOP LOGIN ****</LOGIN>
<PASSWORD> **** YOUR WEBSHOP PASSWORD ****</PASSWORD>
<TIMESTAMP>20110210103215</TIMESTAMP>
</PRICELIST_REQUEST>
And URL to make the call:
www.example.com/b2b.main/create_order_xml
I would very much that this Call fills a price field which is a field within the product-entiity in my drupal commerce webshop.
Is this doable through this module?
Thanks a lot in advance for your reply!
greetings, Martijn
Comments
Comment #1
summit commentedHas anybody the same request for importing prices which can be taken from an XML?
EDIt I found this CURL script. Can anyone direct me how to get this in Commerce: http://www.pfz.nl/forum/topic/2656-httppost-voor-xml-met-bevestiging/
greetings,
Martijn
Comment #2
summit commentedHi, think this is a commerce issue.
The issue is in short. How to get price information which is weekly changed and distributed by a webservice into a commerce product (not a node).
Thanks a lot in advance for your reply!
Greetings, Martijn
Comment #3
rszrama commentedI'd use Commerce Feeds. Look for rfay's tutorial video in http://www.drupalcommerce.org/videos.
Comment #4
summit commentedHi @rszrama thanks for your quick reply, but I do not think this issue is fixed, Sorry to set it to active if thats wrong.
How can I use commerce feeds when I got a webservice from a supplier? I do not have a file to bring to feeds.
Isn't it not better than to use something like commerce_services (http://drupal.org/project/commerce_services)?
greetings, Martijn
Comment #5
rszrama commentedWe don't really do support in the issue queue, so I was just trying to give a quick pointer. I was under the impression you were fetching that XML and storing it locally, in which case you'd just pass the file to Feeds. You don't need Commerce Services unless you're trying to make your own web service - i.e. it's for publishing, not consuming.
If you can only retrive that XML via a web service request, then I'd look into using the Migrate API to perform the updates.
Comment #6
summit commentedHi, thanks for your explanation. I will look into the Migrate API also. Greetings, Martijn