CafePress random product update

Last modified date

Comments: 0

A small update is required to the CafePress box class – the one that shows a random product from your CafePress store. This is needed because there have been some additional updates to the HTML on the CafePress side, so the regular expression in the class needs updating. It’s very easy; just change line 174 for the following:

$this->cpPattern = '.*?(.*?)
\$([^< ]*)';
Did you like this? Share it:

Andy

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.