Placing Featured Products on a...

User 539803 Photo


Registered User
2,156 posts

Raizwan Butt wrote:


Incidentally, is there an option to be notified when replies are made to your posts on this forum?


Click on the subsdribe button near top of this ( or any other thread) page

Impressive page by the way well done
Started using CC VSD in January 2009, I don't do HTML code, Sales from CC site exceeding expectations taken me out of semi-retirement
Hosted FREE on CC S DRIVE www.chauffeurdrivenluxurycars.co.uk
My new VSD & SCCP site Oct 2011 www.deloreanjewellery.co.uk
My friendly window cleaner www.mwcwindowcleaner.co.uk

User 512728 Photo


Registered User
32 posts

Hi Jill,

First create the home page so that it only shows the featured products...

Your Shop >>
Pages >>
Under "Shop Home", select "Show only products - Featured Products"
Under "Homepage Optional", select "Use Shop Home settings (configure above)"

Also create a customised page (for example, call the page "Test).

When that's done and you have uploaded your shop, go to the following folder (your exact path may be different)...

Shop-Home-server\ccdata\data\

Open the file..."index.inc.php" in a HTML editor/application like notepad and look for the code that you can see in file that I have attached. I'm not sure if your coding will be exactly like the coding in the attached file but take note of the start and end pieces of code - it's probably best not to copy my code. This is a long piece of code and I'm not sure you need it all but I did try deleting various parts of it and each time the page would not open.

Once you have copied the code from YOUR index.inc.php open up your customised page....

test.inc.php (found in the same folder as index.inc.php)

Now find the following piece of code in test.inc.php...

<div id="scs_staticcontent_wrapper"><div id="scs_staticcontent"><div id="scs_staticcontent_content">

Paste the code you copied from index.inc.php after that.

If you want to control exactly where the featured products show on your page, you'll need to use some CSS.

Please remember to place a copy of your customised page with the Featured Products code outside your shop folder. Each time you make a change to your shop, your customised page will be rewritten so you’ll need to be able to refer to a change that is outside of the shop folder.

By doing this, you can now also create a customised homepage and then copy the relevant piece of code from the file outside of your shop folder and place it into your customised index.inc.php.

I hope that all made sense but if not, let me know.
Attachments:
User 512728 Photo


Registered User
32 posts

Jewelcraft,

Thanks on both counts!

Riz
User 512728 Photo


Registered User
32 posts

I'm still working on seeing how far I can customise a site using SCC Pro.

Right now I'm stuck on trying to see if I can physically include a PHP page in another PHP page.

I did try using "server side includes" but didn't have much luck getting that to work.

Then I tried...

<?php require($DOCUMENT_ROOT . "filename.php"); ?>

I kind of got this working but not how I wanted. What I want to know is this:

Does anyone know if I can insert this code into the page content that is found in the data.php file. So far it doesn't seem to work.

Any PHP experts here? :rolleyes:

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.