You are here:  » Using 'featured' with Word Press

Support Forum



Using 'featured' with Word Press

Submitted by roymartian on Tue, 2010-07-06 10:28 in

Hi David,

Quick questions if you can help me please.

Starting to get PT performing quite well within WP however couple of questions;

1. Is there a way to hide the bold blue text "(Showing 1 to 10 of xxxx)"

2. Is there a way to use the featured functionality within the page content.

The page URL is {link saved}

My existing php is;

<?php
$external_baseHREF 
"http://www.ukdirect.com.au/shopping/";
$external_path "/home/ukdirect/ukdirect.com.au/shopping/";
if (!
$_GET["q"]) $_GET["q"] = "cotton shirt dress";
require(
$external_path."external.php");
?>

Thanks again,
Roger

Submitted by support on Tue, 2010-07-06 13:12

Hi Roger,

Sure - both are easy to do, firstly to remove the banner display, edit your external.php and look for the following code at around line 502:

      $banner["h2"] .= "(".translate("showing")." <strong>".$resultFrom."</strong> ".translate("to")." <strong>".$resultTo."</strong> ".translate("of")." <strong>".$resultCount."</strong>)";

...and simply comment out or delete that line.

Featured products should already be supported by the version of external.php that you are using; but is only displayed if no other parameters ($_GET["q"] or $_GET["product"]) are supplied, so based on your calling code already in place; you could use the following to display featured products:

<?php
$external_baseHREF 
"http://www.ukdirect.com.au/shopping/";
$external_path "/home/ukdirect/ukdirect.com.au/shopping/";
$_GET["q"] = "";
$_GET["product"] = "";
$external_noSearchForm TRUE;
require(
$external_path."external.php");
?>

The $external_noSearchForm parameter was actually added quite recently - if your version causes the search form to be displayed using the above code if you would like to email me your external.php i'll add the code to suppress it for you...

Cheers,
David.

Submitted by roymartian on Tue, 2010-07-06 22:47

Hi David,

Thank you, I will modify and try out.

What is the best way to specify different featured products for different pages. Idea is to blog about some shoes and display the exact product, then also blog about another product and show that item. I have tried exact descriptions but don't always get the product and also a complete list of many products.

Although featured is great from what I can see 'featured' is used generically so any updates would change all my posts.

Sorry, still learning, maybe missing something with filters?

Thanks,
Roger.

Submitted by support on Wed, 2010-07-07 06:23

Hi Roger,

If you'd like to email me your external.php I'll merge in the $external_featuredSection support as described in this post. This will enable you to create different sections of Featured Products using a SectionName/ prefix in-front of each product name...

Cheers,
David.

Submitted by roymartian on Wed, 2010-07-07 07:10

Hi David,

Fantastic thank you will send through bit later.

Thanks
Roger

Submitted by roymartian on Wed, 2010-07-07 10:57

Thanks David,

Editing out codes works well, just sent through email for external.php

Also been experimenting with calling code, below works nicely, but doesn't work when I add a keyword aswell.

<?php
$external_baseHREF 
"http://www.ukdirect.com.au/shopping/";
$external_path "/home/ukdirect/ukdirect.com.au/shopping/";
if (!
$_GET["q"]) $_GET["q"] = "merchant:boden";
require(
$external_path."external.php");
?>

This doesn't work currently

<?php
$external_baseHREF 
"http://www.ukdirect.com.au/shopping/";
$external_path "/home/ukdirect/ukdirect.com.au/shopping/";
if (!
$_GET["q"]) $_GET["q"] = "merchant:boden:dress";
require(
$external_path."external.php");
?>

Appreciate your thoughts.

Thanks,
Roge

Submitted by roymartian on Wed, 2010-07-07 11:05

Sorry - another question, editing out;

// $banner["h2"] .= "(".translate("showing")." ".$resultFrom." ".translate("to")." ".$resultTo." ".translate("of")." ".$resultCount.")";

Seem to lose 'next' functionality for seeing next pages of products.

Cheers,
Roger

Submitted by roymartian on Wed, 2010-07-07 11:44

Sorry David,

Really trying not to bug you but ukdirect is starting to get sales and keen to show products nicely.

Is there also a way of showing this specific view as an example where users see <div class='product'>

http://www.ukdirect.com.au/amazon-co-uk/feeds/?pt=1&product=Al+Fresco+Espadrilles

Thanks,
Roger

Submitted by support on Wed, 2010-07-07 11:59

Hi Roger,

Have followed up to your email re: all the above...

Cheers,
David.