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.
I can't figure out what the "Also Available" menu is for in the Frontend Menu area. How do you get products to show up there?
In the skin.php there is a single string in the content section that calls the content. I'd like to somehow make my featured products show up in my right hand column in a lovely vertical row (thumbnail image and name only). What would I edit to make this happen?
Is there a way to mark a product to show on the store's splash page but instead make that appear on the real main splash page? I know the featured products show there, but I don't want featured products showing under the main content on all of the internal store pages.
In our current set up, I hard code new products into a "what is new" section on the main page of the website. I'd LOVE for this to be set up semi automatically so I just have to mark certain products to show there. I don't want a new products page, just a few select new or featured products to show up on the main splash page only.
Sorry for the rambling, I'm exhausted. Let me know if I need to clarify.
Last edited by kiwimum (01-16-2007 01:52:57)
Offline
I can't figure out what the "Also Available" menu is for in the Frontend Menu area. How do you get products to show up there?
It's used to display links to other applications that you may have installed in the KHXC. For example, if you had two installation of ClickCartPro running, the also available menu will show users the common application name (for ClickCartPro the default is Online Store) in that menu. Also available will probably be used mostly by users who will install translated versions of CCP side by side with their other stores. Those will be available in the future.
In the skin.php there is a single string in the content section that calls the content. I'd like to somehow make my featured products show up in my right hand column in a lovely vertical row (thumbnail image and name only). What would I edit to make this happen?
Add the following to the right hand column in the skin:
<?php /* PHP FUNCTION */ /* Include the minisearch namespace. */ $skinfunc->namespace($app_id,'prodfeature'); ?>
Then adjust your feature product display to show one row and the display type you want in settings under Catalog Global Displays.
Is there a way to mark a product to show on the store's splash page but instead make that appear on the real main splash page? I know the featured products show there, but I don't want featured products showing under the main content on all of the internal store pages.
That's really what featured products are for. They only show up on the regular home page because of this call:
<?php $this->include_namespace($app,'prodfeature',array()); ?>
You can remove that from the home page if you don't want them showing there.
In our current set up, I hard code new products into a "what is new" section on the main page of the website. I'd LOVE for this to be set up semi automatically so I just have to mark certain products to show there. I don't want a new products page, just a few select new or featured products to show up on the main splash page only.
Use this code in your skin where you want them to show up. (Based on what I did above for the featured products):
<?php $pageref = $this->globals('ecom.content_info.id'); $splash = 0; if ((!(empty($pageref))) && ($pageref == 'splash')) {$splash = 1;} if (empty($splash)) { print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $skinfunc->namespace($app_id,'prodnew'); print '</div></div>'; } // End of if statement. ?>
Offline
webmaster wrote:
Add the following to the right hand column in the skin:
Code:
<?php /* PHP FUNCTION */ /* Include the minisearch namespace. */ $skinfunc->namespace($app_id,'prodfeature'); ?>Then adjust your feature product display to show one row and the display type you want in settings under Catalog Global Displays.
Thank you, this worked. You can see in the right column here: http://www.verybaby.com/ccp51/ccp0-display/splash.html - I need to remove the automatic name/header - I'm not sure how to edit the php function to remove that.
webmaster wrote:
Is there a way to mark a product to show on the store's splash page but instead make that appear on the real main splash page? I know the featured products show there, but I don't want featured products showing under the main content on all of the internal store pages.
That's really what featured products are for. They only show up on the regular home page because of this call:
Code:
<?php $this->include_namespace($app,'prodfeature',array()); ?>You can remove that from the home page if you don't want them showing there.
In our current set up, I hard code new products into a "what is new" section on the main page of the website. I'd LOVE for this to be set up semi automatically so I just have to mark certain products to show there. I don't want a new products page, just a few select new or featured products to show up on the main splash page only.
Use this code in your skin where you want them to show up. (Based on what I did above for the featured products):
Code:
<?php $pageref = $this->globals('ecom.content_info.id'); $splash = 0; if ((!(empty($pageref))) && ($pageref == 'splash')) {$splash = 1;} if (empty($splash)) { print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $skinfunc->namespace($app_id,'prodnew'); print '</div></div>'; } // End of if statement. ?>
I was somehow getting featured products showing on all of the internal store pages, not just the splash page. I pasted
<?php $pageref = $this->globals('ecom.content_info.id'); $splash = 0; if ((!(empty($pageref))) && ($pageref == 'splash')) {$splash = 1;} if (empty($splash)) { print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $skinfunc->namespace($app_id,'prodnew'); print '</div></div>'; } // End of if statement. ?>
into the splash template in place of the featured string, but nothing is showing up, despite having the test product marked as featured. I thought if I pasted it into the skin.php in the main area it would show on the internal pages. But I tried that too and the What's New area did show up but only on the category and sub. cat pages.
Offline
First I pasted it in the skin in the main content area - featured products showed up on the internal store pages, but not on the splash. So I removed it and pasted it onto the splash page directly replacing the featured string that was already there. And still nothin'. I'm sure I'm doing something wrong...
Offline
I spotted the issue. It's with $app_id - that will only work within the skin. Add this to the top of your code:
$app_id = $this->globals('khxc.app');
Offline
Hi Nick,
Still not working. This is my entire code for the splash page:
<?php $app = $this->globals('khxc.app'); $eol = $this->globals('khxc.eol'); $link_contact = $this->link_namespace($app,'contact',array()); $link_cfform = $this->link_namespace($app,'dynform',array('ref' => 'feedback')); ?> <div class="khxc_inline"> <div class="skin_pgtitle"><p>Cloth Diaper Sewing</p></div> <p><img src="http://verybaby.com/images/verybabyfitted.jpg" align="left" hspace="10" vspace="5" alt="sew cloth diapers" />Cloth diapers are back, baby, and they aren't anything like the leaky versions of yester-year. Modern cloth diapers feature elasticized legs, snaps or velcro-like closures, and effective waterproof barrier fabrics.</p> <p>We've got all of the <a href="#">diaper fabrics</a>, <a href="#">notions</a>, and <a href="#">diaper patterns</a> you'll need to sew your baby a beautiful stash of economical, environmentally friendly, and comfortable cloth diapers.</p> <?php $app_id = $this->globals('khxc.app'); $pageref = $this->globals('ecom.content_info.id'); $splash = 0; if ((!(empty($pageref))) && ($pageref == 'splash')) {$splash = 1;} if (empty($splash)) { print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $skinfunc->namespace($app_id,'prodnew'); print '</div></div>'; } // End of if statement. ?> </div>
Did I do it wrong?
Offline
Within a product display or html page we use different syntax than we would if we were executing code from within a skin. The following:
$skinfunc->namespace($app_id,'prodnew');
Should be:
$this->include_namespace($app_id,'prodnew');
Offline
I'm still not seeing anything on the splash page. Now I've got this in the splash page code (complete):
<?php $app = $this->globals('khxc.app'); $eol = $this->globals('khxc.eol'); $link_contact = $this->link_namespace($app,'contact',array()); $link_cfform = $this->link_namespace($app,'dynform',array('ref' => 'feedback')); ?> <div class="khxc_inline"> <div class="skin_pgtitle"><p>Cloth Diaper Sewing</p></div> <p><img src="http://verybaby.com/images/verybabyfitted.jpg" align="left" hspace="10" vspace="5" alt="sew cloth diapers" />Cloth diapers are back, baby, and they aren't anything like the leaky versions of yester-year. Modern cloth diapers feature elasticized legs, snaps or velcro-like closures, and effective waterproof barrier fabrics.</p> <p>We've got all of the <a href="#">diaper fabrics</a>, <a href="#">notions</a>, and <a href="#">diaper patterns</a> you'll need to sew your baby a beautiful stash of economical, environmentally friendly, and comfortable cloth diapers.</p> <?php $app_id = $this->globals('khxc.app'); $pageref = $this->globals('ecom.content_info.id'); $splash = 0; if ((!(empty($pageref))) && ($pageref == 'splash')) {$splash = 1;} if (empty($splash)) { print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $this->include_namespace($app_id,'prodnew'); print '</div></div>'; } // End of if statement. ?> </div>
I have the what's new code within the <div class="khxc_inline"> could that be causing a problem? I did try it outside and under it before without change.
Offline
You're already on the splash page so some of that code isn't necessary. Try this:
<?php $app = $this->globals('khxc.app'); $eol = $this->globals('khxc.eol'); $link_contact = $this->link_namespace($app,'contact',array()); $link_cfform = $this->link_namespace($app,'dynform',array('ref' => 'feedback')); ?> <div class="khxc_inline"> <div class="skin_pgtitle"><p>Cloth Diaper Sewing</p></div> <p><img src="http://verybaby.com/images/verybabyfitted.jpg" align="left" hspace="10" vspace="5" alt="sew cloth diapers" />Cloth diapers are back, baby, and they aren't anything like the leaky versions of yester-year. Modern cloth diapers feature elasticized legs, snaps or velcro-like closures, and effective waterproof barrier fabrics.</p> <p>We've got all of the <a href="#">diaper fabrics</a>, <a href="#">notions</a>, and <a href="#">diaper patterns</a> you'll need to sew your baby a beautiful stash of economical, environmentally friendly, and comfortable cloth diapers.</p> <?php print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">'; $this->include_namespace($app,'prodnew'); print '</div></div>'; ?>
Offline
I'm not sure if this is related, I didn't notice it before --- my title tag says "Web Page" on the splash page: http://www.verybaby.com/ccp51/ccp0-display/splash.html even though I have a meta title entered in the splash page web page area.
Offline
Hi Nick,
I pasted in exactly your code and double checked the meta title. The meta title says "Cloth Diaper Fabric, Diaper Patterns, Sew your own cloth diapers" but the page reads "Web Page" at the top of the browser. Could anything else be conflicting? I'm pretty sure it didn't do this before.
Offline
Is this the code to display the "new items" array on the splash page?
<?php
print '<div class="skin_fenavh">What\'s New?</div><div class="skin_fenavmini">';
$this->include_namespace($app,'prodnew');
print '</div></div>';
?>
If so, is there a way to limit the results it displays on the splash page to say 1 row of however many across you have set in admin? So say 1 row of 4?
And, is it possible to have that 1 row of 4 pull randomly from all items flagged as new? So if there are 30 new items it would randomly display 4 of them each time the page is refreshed?
Last edited by theblade24 (03-15-2008 13:10:21)
Offline