Kryptronic Software Support Forum

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.

#1 07-24-2009 11:09:43

FrankJAG
Member
From: Texas
Registered: 03-03-2007
Posts: 179
Website

Making description text wrap around image (Category and Product view)?

Any way to make the text wrap around the image in the category view?
http://www.911pse.com/ecom-splash/COREseo.html
or
Wrap around the image in the product detail page?
http://www.911pse.com/ecom-prodshow/Saf … tions.html

TIA!

Offline

 

#2 07-24-2009 13:10:47

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Making description text wrap around image (Category and Product view)?

In the management interface, go to:

Store > Store Displays > Category Displays

Choose the display type you're using.  It looks like 'Image and Description' to me.  Choose to update that display type.  Change:

Code:

<table class="ghost"><tr><td class="ghost" style="width: <?php print $imgwidth; ?>px">

     <a href="<?php print $catlink; ?>" title="<?php print $catname; ?>"><?php print $imgtag; ?></a>

</td><td class="ghost">

<p><a href="<?php print $catlink; ?>" title="<?php print $catname; ?>"><?php print $catname; ?></a></p>

<?php print $catdesc; ?>

</td></tr></table>

To:

Code:

<div style="width: <?php print $imgwidth; ?>px; float: left; margin: 0px 10px 0px 10px;">

     <a href="<?php print $catlink; ?>" title="<?php print $catname; ?>"><?php print $imgtag; ?></a>

</div>

<p><a href="<?php print $catlink; ?>" title="<?php print $catname; ?>"><?php print $catname; ?></a></p>

Then access:

Store > Store Displays > Product Detail Displays

Choose the display type you're using.  It looks like 'Default Format' to me.  Choose to update that display type.  Change:

Code:

<table id="proddetail--<?php print $id; ?>" class="cptbl_det">

<tr class="cptbl_det"><td class="cptbl_det">

<table class="ghost"><tr><td class="ghost" style="width: <?php print $imgwidth; ?>px">

<?php print $imgtag; ?>

<?php 

// +--
// | Handle the extra large image tag and email a friend link.
// +--

$emailfr = $this->globals('core_settings.ecom.emailfriend');

if ($ns != 'prodshow') {$emailfr = 0;}

if (($showxl) || ($emailfr)) {

     print '<div style="width:' . $imgwidth . 'px">' . $eol;

     if ($showxl) {print $xlimgtag;}

     if ($emailfr) {

          $link_emailf = $this->link_namespace('ecom','emailfriend',array('ref' => $proddisp['id']));

          print '<p><a href="' . $link_emailf . '" title="Email a Friend" ';
          print 'class="hrefbutton">Email This Item to a Friend</a></p>';

     } // End of if statement.

     print '</div>' . $eol;

} // End of if statement.

?>

</td><td class="ghost">

<p><strong><?php print $prodname; ?></strong></p>

<?php print $proddesc; ?>

<?php $this->include_file('ecom','pricedisp.php'); ?>

</td></tr>

</table>

</td></tr></table>

To:

Code:

<div style="width: <?php print $imgwidth; ?>px; float: left; margin: 0px 10px 0px 10px;">

<?php print $imgtag; ?>

<?php 

// +--
// | Handle the extra large image tag and email a friend link.
// +--

$emailfr = $this->globals('core_settings.ecom.emailfriend');

if ($ns != 'prodshow') {$emailfr = 0;}

if (($showxl) || ($emailfr)) {

     print '<div style="width:' . $imgwidth . 'px">' . $eol;

     if ($showxl) {print $xlimgtag;}

     if ($emailfr) {

          $link_emailf = $this->link_namespace('ecom','emailfriend',array('ref' => $proddisp['id']));

          print '<p><a href="' . $link_emailf . '" title="Email a Friend" ';
          print 'class="hrefbutton">Email This Item to a Friend</a></p>';

     } // End of if statement.

     print '</div>' . $eol;

} // End of if statement.

?>

</div>

<p><strong><?php print $prodname; ?></strong></p>

<?php print $proddesc; ?>

<?php $this->include_file('ecom','pricedisp.php'); ?>

Nick Hendler

Offline

 

#3 07-24-2009 13:11:24

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Making description text wrap around image (Category and Product view)?

This also has the effect of completely removing the tables from those displays.


Nick Hendler

Offline

 

#4 07-24-2009 15:25:26

FrankJAG
Member
From: Texas
Registered: 03-03-2007
Posts: 179
Website

Re: Making description text wrap around image (Category and Product view)?

Awesome, thanks a bunch Nick, I'll give it a shot shortly!

Offline

 

#5 07-24-2009 15:32:16

FrankJAG
Member
From: Texas
Registered: 03-03-2007
Posts: 179
Website

Re: Making description text wrap around image (Category and Product view)?

Sweet, thanks a mill; works like a champ!

Offline

 

Board footer