PDA

View Full Version : Merchant, Category & Adult content changes


broughsd
05-09-08, 15:35
For those coding their own links and previously used V1. The way categories and merchants are referenced in the URL has changed in V2.

Previously you had c=245 (CD Category)
m=1418 (Play.com is the merchant)

Now you have:

rb=4-245 (you need to prefix the category number with '4-')

rb=3-1418 (you need to prefix the merchant number with '3-')

I also note that the need to add the Affiliate (a=xxxxx) reference has also been removed from the link.

BTW. I also spotted an error in the V2 code on Adult Content, in both hot_picks.php & product_display_list.php the if statement had three equal signs in it as in:

if ( ADULT_CONTENT === false )

Not sure what effect in PHP that has, but I changed it back to have just two. You may want to pass that onto the developers to check.

BTW BIG :cool: improvement on V1!

Oh, and a final gripe (sorry :( ) the way you handle adult content now means that if you have the adult content turned off you don't serve up anything from merchants like Play, Zavvi etc as they state their site serves adult content. I was hoping/expecting that you would be slightly more granular and block individual items that were classed as adult instead of 95% of the site that isn't.

As a result I've had to turn on Adult content otherwise I'd never be able to sell "Barney's Great Adventure" from Play even though they state "Universal Suitable for All" :rolleyes: .

IntroSites
05-09-08, 20:28
if ( ADULT_CONTENT == false ) // equals exactly false
if ( ADULT_CONTENT === false ) // ADULT_CONTENT exists and equals exactly false

if my memory serves me right