Any news or fix for CP 2.2?

Added by Bob Randklev over 1 year ago

I updated my June 2010 post but didn't get a reply from anyone? Can someone test/confirm my findings.

My previous question:***************************

The CafePress API is not linked to the shop account http://www.cafepress.com/slashdraw/ so anyone with an API could place this in your blog and get the store correct?

[QuickCafe] http://www.cafepress.com/slashdraw/ [/QuickCafe]

Can anyone else test this in their site?

Is there some store setting we need to change on the clients CafePress store?

**************
I can get CP 2.2 to work with a category like http://www.cafepress.com/slashdraw/7177150 but the goal is to list the main site store.

Can anyone test or give feedback?
Thanks, Bob


Replies (11)

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland over 1 year ago

We are working on a variety of projects now that involve WordPress plugins. We hope to spend some time updating and patching the existing plugins along the way including CafePress Edition shortly. As soon as a new edition is available we'll publish through the new URL the guys at WordPress gave us.

Please make sure you go to the WordPress site to ensure your install is connected to the new name space they assigned to the product. It is still listed under the MoneyPress : CafePress name.

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland over 1 year ago

There is a new 3.0 release based on a new set of drivers. It should appear on your auto-update soon.

Among the new features is the ability to set your storeID on the settings page ("slashdraw" is probably your ID) and pass in section IDs in the new shortcode:

[mp-cafepress section_id="7177150"]

You can see the other shortcode options here:
http://redmine.cybersprocket.com/projects/wpcafepress/wiki/Using_MoneyPress_CafePress_Edition

RE: Any news or fix for CP 2.2? - Added by Bob Randklev over 1 year ago

Thanks Lance, we just got back to this project, tried the new update and changed the plugin... .same problem.

I've posted in the Cafepress developers forum to ask about the API or ???

We've tried different API keys and now two different plugin versions and same problem. We can get a sub-category to work but not the main store?

RE: Any news or fix for CP 2.2? - Added by Bob Randklev over 1 year ago

Updates:

Here is the page we are using CafePress Money Press on: http://slashdraw.com/cafepress/

I'm in debug mode and you see: http://open-api.cafepress.com/product.listByStoreSection.cp?v=3&appKey=4k9hxvy79z8kzxsxk29kcqre&page=0&pageSize=10&storeId=slashdraw&sectionId=0

I posted this to CafePress API and they replied with this:

The API method you're looking for is product.listByStore rather than product.listByStoreSection. Check out http://open-api.cafepress.com/documentation.list.cp?v=3 for a complete list of all the API methods available.

So if we change the "ByStoreSection" to simply "ByStore" everything works:

http://open-api.cafepress.com/product.listByStore.cp?v=3&appKey=4k9hxvy79z8kzxsxk29kcqre&page=0&pageSize=10&storeId=slashdraw&sectionId=0

I've attached a copy of our settings page and the store id is pass through to the API string but how do we change your code to "listByStore"???

Oh we've also tried:

[mp-cafepress]
[mp-cafepress store_id="slashdraw"]

Same error?

Thanks
Bob

Screen_shot_2011-02-09_at_5.56.40_PM.png - plugin settings (53.6 kB)

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland over 1 year ago

@Bob -

Using the same exact URLs you provided, on the first version "ByStoreSection" we get an XML response with no products listed. We typically see this if you have no products marked public or are providing an invalid section ID (which is not the case here).

On the second version "ByStore" we get an exception:
Unable to find action 'listByStore' on resource 'product' using parameters 'page, pageSize, storeId, sectionId'

We can see this clearly by using Firefox 3.6.

I'm not sure how you are getting the opposite results with the same URLs especially since the parameters that are passed require the API to call the ByStoreSection version. The ByStore section will not work with a sectionID intact. If you remove the sectionID and call ByStore it works, and you get exactly the same result as the ByStoreSection with a sectionID=0, in your case showing no products.

RE: Any news or fix for CP 2.2? - Added by Bob Randklev over 1 year ago

I agree this has been so crazy, we started working on this last June.

Have you ever tested the slashdraw storeid with your setup that is working. I'm trying to determine if this is a plugin, API or store setting?

The API keys are not unique to a specific store correct? With an API we should be able to test any store.

Do you agree my plugin settings are correct from the screenshot I provided on the last post?

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland about 1 year ago

Another client has noted a problem if you are using CafePress Beta stores. Please make sure you are not using the beta version of the CafePress system.

RE: Any news or fix for CP 2.2? - Added by Bob Randklev about 1 year ago

I've worked with the API group at CafePress and they are at a loss why this isn't working.

What I ask is can we confirm how you have the http://cafepress/cybersprocket site setup with CafePress.

I've setup http://Slashdraw.com/cafepress to show the error we are getting but also http://slashdraw.com/cybersprocket to confirm the plugin is working and the API is working it must be a store setting at CafePress.

Attached is an image/screenshot of their store home page setup. This site uses "sections" are you doing something different at the CyberSprocket store?

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland about 1 year ago

We did nothing special. Went into CafePress, uploaded some graphics, selected some products and said "make my store".

We made certain to keep a plain vanilla setup with no extra settings to make sure we had a baseline test case for the plugin.

Many people have had issues by setting product categories or even the entire store as private. Other than that I'm not sure what the issue may be.

Hopefully we'll get some extra time in our schedule in the next few weeks to start some MoneyPress updates & will look at adding more reporting of error codes into this product so it will help sort out problems like this. The new debugging mode we have in other plugins may be useful.

RE: Any news or fix for CP 2.2? - Added by Bob Randklev about 1 year ago

We found the problem and it's amazing we've been chasing something this simple for since June 2010.

I'm surprised this isn't documented on your site but trust form here forward no one else will have this problem.

Per my screen shot I'm surprised you didn't notice the difference between your site and this one. Slashdraw was using "sections" to build their home page and the "products" area was empty.

The MoneyPress plugin requires you use the "products section" to be listed on the page you are referencing. Sections will not work

The really frustrating part is during this process we direct linked the store to the website and skinned the cafepress store to look like the WordPress site. No I think the client prefers that over using the plugin!

RE: Any news or fix for CP 2.2? - Added by Lance Cleveland 11 months ago

With MP CafePress 3.X you can specify a section ID as a default on the settings page. You can also override it and/or specify it with the shortcode attribute [mp-cafepress section_id="99999"] to list products from a specific section.

If you DO put something in the main products area of a premium store then you simply use section_id="0".

(1-11/11)