You are here:  » Content display and product mapping questions

Support Forum



Content display and product mapping questions

Submitted by oliver on Tue, 2007-12-04 11:45 in

Hi David

I have a couple of questions about tweaking the way words and content get displayed:

- How can the content of the browser title text be populated? The name of the product will form the first part of course but where can I enter more text to follow it?

- Is it possible to feature the reviews/comments on the same page as the prices so all the content's together in one place(as opposed to flipping over to it via a link as is the case currently).

And also a question about the admin side: Is it possible to upload a master list of products into the Product Mapping admin area so I don't have to manually choose 'map this product'. With a master list up there initially maybe it would make it easier to run through the products and map the ones that are the same more easily (effectively cutting out stage one of the mapping process).

Thanks,
Oliver

Submitted by support on Tue, 2007-12-04 12:34

Hi Oliver,

How can the content of the browser title text be populated? The name of the product will form the first part of course but where can I enter more text to follow it?

The page title is currently set to be the product name by the following code on line 50 of products.php:

$header["title"] = $q;

If you want to add your own text, simply change this as follows:

$header["title"] = $q . " - Add you own text here!";

Is it possible to feature the reviews/comments on the same page as the prices so all the content's together in one place(as opposed to flipping over to it via a link as is the case currently).

Yes - there's a bit of cutting and pasting of code involved, but all the instructions are in the following thread:

http://www.pricetapestry.com/node/575

With regards to a master product mapping list; this would also require an initial set of alternatives, otherwise it would have no effect. However, if you do have a database of product names it should be relatively straight forward to load these into the productsmap table, but the way you would do this depends on how you have the data at the moment.

If you have the names in a spreadsheet, the easiest way would be using a MySQL admin tool such as phpMyAdmin and use the import from file option. If you save from Excel as a CSV file, you can then browse to the "productsmap" table, and then go to "Import", where you will be able to upload the CSV file and load the table directly, but there are other ways to do it (like writing a quick script) so let me know if you still need help on this...

Cheers,
David.

Submitted by oliver on Tue, 2007-12-04 13:34

Thanks David

the title and review changes all worked perfectly. I'm going to leave the mapping alone for now, may return to it in the future though.

I have one small question - now that the reviews and prices are on the same page I don't need the link to 'review' this product' - can I hide the link/remove it easily?

Cheers

Oliver

Submitted by support on Tue, 2007-12-04 16:55

Hi Oliver,

No problem - the review links are displayed by the following code on line 33 of html/product.php:

<?php if (isset($mainProduct["extraHTML"])) print $mainProduct["extraHTML"]; ?>

Simply delete this line to remove the links...

Cheers,
David

Submitted by oliver on Tue, 2007-12-04 20:47

Thanks, worked great :-)