Jump to content

Product Feeds to External Entities


bsmither
 Share

Recommended Posts

CubeCart allows for an external entity (such as Google, Shopzilla, etc) to request a "product feed". In admin, you can set a "password" that, when a querystring containing this password (and other things) is given to CubeCart, CubeCart will return a CSV with all your products.

 

I need someone to corroborate this behavior on their store. Try an access number that is wrong, and also the correct access number.

/admin.php?_g=products&node=export&page=1&per_page=5000&format=cubecart&node=export&access=12345

 

You must be logged out as an admin, since the external entity won't be.

Link to comment
Share on other sites

Make any kind of password that uses legal characters in a URL. That is, letters and numbers. Enter that in the admin field and Save. Log out.

 

Now simply enter this in your browser:

http://dirtybutterestates.com.//admin.php?_g=products&node=export&page=1&per_page=5000&format=cubecart&node=export&access=whatever

where whatever is that password.

 

What happens?

Link to comment
Share on other sites

Hi bsmither, I can corroborate my findings.

 

Using the correct access code, downloads the export.

Using the wrong access code takes me to the admin control panel login screen.

 

Looking further at the successful feed the layout looks all wrong.  The data from the next product is showing up at the end of the product before it, etc.

 

I looked briefly at the google export feed and it has a correct layout.  Let me know if you were looking for something else.

Link to comment
Share on other sites

Excellent. Thank you.

 

The reason the lines run together is that web browsers will "collapse" all runs of whitespace characters together and instead place one space character in the text. Whitespace characters are tabs, newline endings, spaces, and vertical tabs (rare).

 

Browsers require HTML to control whitespace: &nbsp;, <br />, <p>, and certain other block-level tags.

 

But you can ask your browser to show you the source HTML and you will see tabs and line endings as you would in normal text.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...