You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
On the splash page you have in the middle Categories and items. How can i remove Categories and hold items.
Where can i find this file ??
Thanks
Offline
I believe what you want is to remove the categories that are displayed on the store splash page, right? If so then you will need to edit a core php script located in your private_dir/khxc/apps/{app}/CCP/CCP.php in the Function: splash, look for this code:
// +-- // | Display the categories listing for the splash page. // +-- $this->exec_namespace(array('app' => $this->app, 'namespace' => 'catlist', 'type' => '*', 'params' => array()));
and edit it like this:
// +-- // | Display the categories listing for the splash page. // +-- //$this->exec_namespace(array('app' => $this->app, // 'namespace' => 'catlist', // 'type' => '*', // 'params' => array()));
This will comment out the part of the code that pulls the categories that are set to be displayed in the menu leaving you just the items set to be displayed on the splash page. If you want to see what I mean then look at my site and click on the store link.
You should always make a backup of the files in case something goes wrong so you can go back to a working code, and this edit will be subject to be over written with a future update.
John
Last edited by dh783 (02-07-2008 08:10:20)
Offline
I did a file search but catn't find the file with this content. Can you say witsh file it is.
Thanks
Offline
It's in CCP.php which resides in the {private}/apps/ccp0/CCP directory. As John points out that is a file subject to change with an update.
Offline
I made this changes and get a fatal error now ?
best regards
Offline
That usually indicates either a typo, commenting out too much or not commenting out enough. Double check what you did and where you did it in the code. Removing the block John posted by commenting it out should not have caused any errors.
You may find it easier/clearer to use a block comment to remove that code .... like this:
/* $this->exec_namespace(array('app' => $this->app, 'namespace' => 'catlist', 'type' => '*', 'params' => array())); */
Offline
Can anyone help?
My landing page (splash page) currently has Online Store Featured Items displayed on it. I need this table to display my Categories instead. I don't want to set my home page to categories as I want to retain the header graphic etc., The website is wwwviperstripes.co.uk/khxc/index.php
The site currently looks like this http://viperstripes.co.uk/sample_01.jpg and I want it to look like this http://viperstripes.co.uk/sample_02.jpg
I have spent ages trawling the forum but several advice quotes simply do not work.
I would be very grateful if anyone can help.
Regards,
Eddie
Offline
In admin under Home > ClickCartPro (GBU) > Application: Profile and Namespaces > Application Profile try changing the "Default Namespace for Application" field to "Online Store - splash" and see if it gets you the results you are looking for.
Offline
Dave wrote:
In admin under Home > ClickCartPro (GBU) > Application: Profile and Namespaces > Application Profile try changing the "Default Namespace for Application" field to "Online Store - splash" and see if it gets you the results you are looking for.
Hi Dave,
I've tried that but I loose the orange/car header and the breadcrums appear. It doesn't look right this way.
Eddie
Offline
Err, uhh, that's the way the on-line store landing page is designed Eddie You may be able to accomplish what you're trying to do wrt the graphic at the top by using a call to the splash namespace in the splash web page which is what you are using to display that graphic I'm guessing. However, I suspect that doing that will also result in the breadcrumbs and the page title bar.
Offline
Hi Dave,
I found these links on the forum wwwcrownmoldings.net & wwwceilingmedallions.com
It appears that they have achieved what I am looking for, but do not understand how they haev done it.
My landing page is exactly how it needs to be, but rather than products, I need customers to be able to click the image and lead them into the category its self.
I hope I am making sense.
Regards,
Eddie
Offline
Perhaps if you dropped the folks who did those sites a note they'd be willing to share what they did. I don't know what they've done to achieve what they have Eddie.
Offline
Sorry I wasn't very helpful on this one Eddie. If you do find out what they did we could all benefit by knowing I'm sure.
Offline
Hi Eddie,
As Dave mentioned change the "Default Namespace for Application" field to "Online Store - splash."
Now the best way to get the orange/car header, which I believe is an image link, is to go to "Manage Catalog Product Displays: Category View" either edit or clone one of the displays that is most suitable for your site. When you edit or clone the display, throw in your orange/car header image link at the top.
Then go to "Catalog Global Displays" under the "Splash Page" selections you have several options, adjust them accordingly. The most important one is "Splash Page: Product Display Type" make sure you select the one you edited or cloned.
This should get your header on the splash page and eliminate the breadcrumbs. I may have done something else to remove the breadcrumbs, but our sites are ridiculously slow today, and it is taking me forever to back track and double check that. Let me know if they showed up and I will see what I did to get them out of the way.
Offline
Thanks for chiming in sppars!
Offline
Hi Sppars,
I tried both the cloning route and edit/modify one of the category views.
I set the "Default Namespace for Application" field to "Online Store - splash."
I attempted to place an image link as you advised but I'm not sure if I done that correctly, that's why I removed the entire script for a moment in the category views to see if that would change anything- but it didn't.
If as you say - If can set the landing page as the "Online Store - splash page" and get my banner to display at the top, as it does now on "Home - splash" that will be exactly how I want it.
Thanks for the advice - much appreciated!
All the best,
Eddie
Offline
Hi Sppars,
I have followed your advice to the letter again this morning, but the only change is that all the images and descriptions in 'Featured Items' and 'All Products' have disappeared - I suspect that I am not placing the image link in the script correctly. Here is a copy of what I have done.
Regards,
Eddie
Eddie wrote:
<?php
</div>
<div id="skin_splash">
<a href="<?php print $this->link_namespace($this->globals('khxc.app'),'prodall',array()); ?>" title="All items"><img src="skins/zipskin_khxc008/media/splash.jpg" width="578" height="170" alt="All items" class="skin_anyimg" /></a>
</div>
<div class="skin_content">
<?php
// +--
// | Get variables we need to draw this display.
// +--
$app = $this->globals('khxc.app');
$eol = $this->globals('khxc.eol');
$proddisp = $this->globals('ecom.prod_proddisp');
$this->globals('ecom.prod_priceinfo',$proddisp['khxc.priceinfo']);
// +--
// | Create the product name and link.
// +--
$prodname = $this->xhtml_encode($proddisp['name']);
$proddesc = $this->xhtml_encode($proddisp['descshort']);
$prodlink = $this->link_namespace($app,'prodshow',$proddisp['id']);
// +--
// | Create the image tag.
// +--
$imgname = $proddisp['imgsm'];
if (empty($imgname)) {$imgname = 'none.png';}
$imgwidth = $this->globals('khxc_settings.' . $app . '.imgsizeprodsm');
$imgurl = 'media/' . $app . '/prodsm/' . $imgname;
$imgtag = '<img src="' . $imgurl . '" ';
if ($imgwidth) {$imgtag .= 'width="' . $imgwidth . '" ';}
$imgtag .= 'alt="' . $prodname . '" />';
// +--
// | Print the display.
// +--
if (empty($imgwidth)) {$imgwidth = 100;}
?>
<table class="khxc_ghost"><tr><td class="khxc_ghost" style="width: <?php print $imgwidth; ?>px">
<a href="<?php print $prodlink; ?>" title="<?php print $prodname; ?>"><?php print $imgtag; ?></a>
</td><td class="khxc_ghost">
<p><a href="<?php print $prodlink; ?>" title="<?php print $prodname; ?>"><?php print $prodname; ?></a></p>
<p><?php print $proddesc; ?></p>
<?php $this->include_file($app,'pricedisp.php'); ?>
</td></tr></table>
Last edited by ejgroves (03-22-2008 08:39:09)
Offline
Hi Eddie,
I may have misunderstood what you were trying to do. On my websites the header remains constant from page to page. But, I believe want you want is for the orange car header to only be there on the store category page, which will also be your landing page, correct?
If that is the case, everything remains the same, with the exception of cloning or editing a category view. So you still want to set the "Default Namespace for Application" field to "Online Store - splash." And change the settings in the "Catalog Global Displays" under the "Splash Page" selections.
Now, to get the orange car header at the top you for the category view you have to make a change to your skin.php file.
Open the file and look for:
</td> <td id="skin_ct_mcol">
Right underneath that enter the following code:
<?php $ns = $this->globals('khxc.namespace'); if ($ns == 'splash') { print '<a href="'; print $this->link_namespace($this->globals('khxc.app'),'prodall',array()); print 'title="All items"><img src="skins/zipskin_khxc008/media/splash.jpg" width="578" height="170" alt="All items" class="skin_anyimg" /></a>'; } ?>
I believe, that should do the trick.
Offline
Hi Sppars,
That's alomst done the job accept there is an orange bar directly underneath the banner with black text saying viperstripes. Is there anyway of getting rid of this or possibly changing is to match the Home splash where the bar is black and the text is orange?
I know it seems picky but with the orange title bar directly under the banner makes it look to dominant.
You have been a massive help - thank you very much - I would most definately not have been able to do this without your help.
Regards,
Eddie
Offline
Hi Eddie,
To get ride of that, once again go into the skin.php file and look for:
<?php /* PHP FUNCTION */ /* Prints the page title. */ $skinfunc->titletag($disp_title); ?>
And change it to:
<?php /* PHP FUNCTION */ /* Prints the page title. */ if ($ns != 'splash') {$skinfunc->titletag($disp_title); }?>
Offline
Hi Sppars,
All done - thank you very much.
A Really happy chappy here in wales tonight!!!
Only wish I could return the favour.
All the best,
Eddie
wwwviperstripes.co.uk/khxc/index.php
Offline
Hi Eddie,
Site looks nice! I personally think it would be more navigational friendly if you were to leave the top menu in. However, to remove it, find and update "Store Header Menu" in manage xhtml includes to:
<?php $app = $this->globals('khxc_display.app'); $ns = $this->globals('khxc.namespace'); $link_home = $this->link_namespace($app,'splash',array()); $link_search = $this->link_namespace($app,'prodsearch',array()); $link_cart = $this->link_namespace($app,'viewcart',array()); $link_checkout = $this->link_namespace($app,'checkout',array()); ?> <?php if ($ns != 'splash') { ?> <div class="khxc_storelink"> <p><strong>Menu</strong>: <a href="<?php print $link_home; ?>" title="Store Home">Store Home</a> | <a href="<?php print $link_search; ?>" title="Advanced Search">Advanced Search</a> | <a href="<?php print $link_cart; ?>" title="Shopping Cart">Shopping Cart</a> | <a href="<?php print $link_checkout; ?>" title="Checkout">Checkout</a> </p> </div> <?php } ?>
Offline
Hi Sppars,
I think you are right about it being more navigational friendly.
I have been working on it for almost eighteen hours straight off and it's all becoming a bit of a blur at the moment. I am going to take your advice and leave it as it is - at least for now. I'm sure it will look different tomorrow with fresh eyes.
Thanks once again for all your help - I couldn't have done it without your help.
All the best,
Eddie
Last edited by ejgroves (03-22-2008 19:13:12)
Offline