ZSB feed issue, pagination failing ? see here for fix
blessedwedding
Posted: Tuesday, April 24, 2012 12:53:47 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 5/18/2008
Posts: 2,652
we were having issues with zsb feeds, failing pagination
first we thought it was some special character in description , but its not :/

so Ed fig out something to work for a while ,while he tries to find the error and he says


"The issue seems to be related to the feed not returning the total number of products, and when that happens, zsb doesn't paginate properly. So what we can do is force a total number just to get it to work. Remember, this is a hack that will work, but will not give you the true total number of products.

Open your zstore. file.

Look for this line:
$totalNum = isset($rs['opensearch:totalResults']) ? $rs['opensearch:totalResults'] : "";

Change it to this:
$totalNum = isset($rs['opensearch:totalResults']) ? $rs['opensearch:totalResults'] : "20000";

The number I added there can be changed to a number bigger than the total number of products you have to make sure people can get to the last page.

The only drawback to this is that if you add more products you will have to update that number to be bigger than your total number of products. Also, the pagination will say "Showing 51 - 100 of 20000 products" instead of the actual number of products. But at least they can get to all your products!"

hope this helps Smile

Maria
Wedding Invitations,Save the Dates
Business Stationery and Gifts at

MGDezigns.com

My zazzle stores

Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded