Demo mode with Favourites.

Re: [Toledoh] Demo mode with Favourites.

By Jason - April 12, 2010

Hi,

Would you be able to post the file catalogue.php so I can take a look at that.
Do you experience the problem anywhere else, or only there?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Demo mode with Favourites.

By Toledoh - April 12, 2010 - edited: April 12, 2010

Hi Jason,

File attached.

I will send the FTP details through also, as the file contains a lot of includes. Also, it will allow you to change the demo mode settings.

Currently, this page is the only time the error occurs (it's the only use of the favorites plugin) however I will try to get the order process set up today as that will also use the favorites.
Cheers,

Tim (toledoh.com.au)
Attachments:

catalogue.php 8K

Re: [Toledoh] Demo mode with Favourites.

By Jason - April 13, 2010

Hi,

Okay, I'll take a look. If you could send the FTP and CMS details that would be great. Just email them to jason@interactivetools.com, don't post them in the forum.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Toledoh] Demo mode with Favourites.

By Jason - April 14, 2010

Hi,

Since the table_prefix for demo mode contains brackets, we just had to add back tics (`) around the entire table name:
$favoriteNumsQuery = "SELECT recordNum FROM `{$TABLE_PREFIX}_website_favorites` WHERE tableOrTag = '$tableOrTag' AND createdByUserNum = '$currentUserNum'";

This code will now work both in and out of demo mode.

Let me know if you run into any other issues.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/