Post by bruce » Wed Jul 23, 2008 9:44 am

In your file as shown, replace

Code: Select all

<?php if (isset($content)) { ?>

  <div id="content"><?php echo $content; ?></div>
     <?php  if (isset($content)) echo $content; ?>
     <?php  if (isset($latest) & isset($show_latest)) echo $latest; ?>
     <?php  if (isset($featured) & isset($show_featured)) echo $featured; ?>
     <?php  if (isset($specials) & isset($show_specials)) echo $specials; ?>

  <?php } ?>
with this

Code: Select all

  <div id="content">
    <?php 
        if (isset($content)) echo $content; 
        if (isset($categories) & isset($show_categories)) echo $categories; 
        if (isset($latest) & isset($show_latest)) echo $latest; 
        if (isset($featured) & isset($show_featured)) echo $featured; 
        if (isset($specials) & isset($show_specials)) echo $specials; 
    ?>  
  </div>

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by anmp3r » Wed Jul 23, 2008 10:27 am

thanks mate,

one thing though, my products are displayed diagonally.... also there is html code where discription should be...

have a look----> http://m-shop.guardhost.net/

-------------------------------------------------------------------------

Its ok, i changed my mind. Can someone tell me exactly what to do to change it back to the default?

thanks for your patience!! :)
Last edited by anmp3r on Wed Jul 23, 2008 10:35 am, edited 1 time in total.

visit my mobile phone store! ---> http://m-shop.guardhost.net


New member

Posts

Joined
Sun Apr 20, 2008 10:48 pm


Post by bruce » Wed Jul 23, 2008 1:54 pm

Don't lose patience with this, it is a really handy mod when properly installed.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by anmp3r » Wed Jul 23, 2008 2:13 pm

Im sorry if i came off rude, It is a very nice feature but i was really just testing it and decided it wasnt for me...

What im really after is a flash/java box showing shuffled products...
eg:
http://www.lookxury.ro/

or some flash menus or something... just to make my site look nicer...


:)

visit my mobile phone store! ---> http://m-shop.guardhost.net


New member

Posts

Joined
Sun Apr 20, 2008 10:48 pm


Post by kellen » Thu Aug 14, 2008 2:51 am

WARNING: Noobish question. (Sorry!) lol

Hey. Newb to Open cart here, and I have a dumb question about installing this plugin:

In the installation readme it says: "Attention! Ensure that the date in the language folders and template folders that you use are updated"
I have no idea what is meant by this. Can someone do a little more in depth explanation.
Thanks.

Newbie

Posts

Joined
Wed Aug 13, 2008 8:28 am

Post by bruce » Thu Aug 14, 2008 8:44 am

It's a typo...

should read "Ensure the data in the language..."

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by thesir » Sat Aug 16, 2008 8:03 am

Hello

I tried everything, but nothing work for me, does not show anything

  Use the version 0.7.8

please help

Newbie

Posts

Joined
Sat Aug 16, 2008 6:47 am

Post by ptal » Sat Aug 16, 2008 8:49 am

OK,
I have used updated code.
Install worked.
I have the added checkboxes, SQL updated and data stored for featured & special.  :)

No products appear. (www.picokit.com/store)

I tried inserting code into template.tpl from the readme.txt in the download

Code: Select all

<?php if ($_REQUEST['controller'] == 'home') { ?>
     <?php if (isset($latest)) { ?>
         <?php echo $latest; ?>
     <?php } ?>
     <?php if (isset($featured)) { ?>
         <?php echo $featured; ?>
      <?php } ?>
     <?php if (isset($specials)) { ?>
         <?php echo $specials; ?>
     <?php } ?>
<?php } ?>
Error "Notice: Undefined index: controller in /var/www/store/catalog/template/default/layout.tpl on line 45"

I tired inserting Bruces Code

Code: Select all

  <div id="content">
    <?php 
        if (isset($content)) echo $content; 
        if (isset($categories) & isset($show_categories)) echo $categories; 
        if (isset($latest) & isset($show_latest)) echo $latest; 
        if (isset($featured) & isset($show_featured)) echo $featured; 
        if (isset($specials) & isset($show_specials)) echo $specials; 
    ?>  
  </div>
And now it is back to no products.

Anyone - Any ideas

Phil

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by bruce » Sat Aug 16, 2008 11:01 am

with my code in the template, you need something like the following at the bottom of catalog\controller\home.php

Code: Select all


	$view->set('ishome', TRUE);

	$template->set('content', $view->fetch('content/home.tpl'));

	$template->set($module->fetch());

	if ($config->get('latest_status'))
	{
		$template->set('show_latest', true);
	}
	if ($config->get('specials_status'))
	{
		$template->set('show_specials', true);
	}
	if ($config->get('featured_status'))
	{
		$template->set('show_featured', true);
	}
	$response->set($template->fetch('layout.tpl'));


Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by ptal » Sun Aug 17, 2008 10:04 am

Thanks Bruce,
I must have missed that in your other post.
It is working but I have a couple problems.
1 - I don't know how to modify the html to make it work in firefox3. I've attached photos to show the difference. I think this is a big problem for any shop if it can't display between different browsers. I use both IE7 & Firefox, although I do prefer firefox for it's creative plugins.
2 - You can probably see the problem I have with the ' - align="center"> ' appearing in the text description. Can you or anyone recommend which file this error might be in.

Thanks again,
Phil

Attachments

???
Latest Products_IE7.jpg
???
Latest Products_FF3.jpg

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by bruce » Sun Aug 17, 2008 10:11 am

catalog\template\default\module\latest.tpl

Check the markup with view source and html validator in firefox. That may give you a clue too.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by ptal » Sun Aug 17, 2008 4:27 pm

Thanks,

But as far as I can tell, the code seems to be right.
This is the code to produce the data in the table;

Code: Select all

<td><b><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></b> <?php echo $product['desc']; ?></td>
It seems the problem lies in the $product file, but where does the 'desc' come from?

Or is there something I am missing here.

Phil

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by bruce » Sun Aug 17, 2008 5:31 pm

You should check the html generated using view source on the browser. My guess is that there are some html characters in the product title.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by ptal » Sun Aug 17, 2008 7:47 pm

All I can see that looks out of place is that all the image src alt has a / after it.
eg.

Code: Select all

alt="Mylar Speaker 23mm" /></a></td>
Could this be the problem?

Phil

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by ptal » Sun Aug 17, 2008 8:04 pm

I found another error. The description file was not being retireved correctly and missed the first 2 characters.

I added a hack to the line of code as follows which completes the html as required.

Original code:
 

Code: Select all

  <td><b><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></b>; <?php echo $product['desc']; ?></td>
With added hack to replace the 2 missing characters:
 

Code: Select all

  <td><b><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></b><p <?php echo $product['desc']; ?></td>
This was really strange. But I found that the html as recorded in Mysql database differed from the desc data being produced.
I am only an extreme novice, but to my suprise my idea worked.

Can anyone tell me why?  ???

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by ogun » Sun Aug 17, 2008 8:27 pm

ptal, the html on http://picokit.com/store is broken, e.g.:

Code: Select all

<p   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  <meta name="ProgId" content="Word.Document">  <meta name="Generator" content="Microsoft Word 12">  <meta name="Originator" content="Microsoft Word 12">  <link rel="File-List" href="file:///C:%5CUsers%5CTECHNO%7E1%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" />  <link rel="themeData" ...</td>
can't tell for sure without investigation/reading the whole thread, but it's looks like it might be a problem with the content of your product descriptions. did you use word to generate them?

check your pages with the validator as bruce suggested:
https://addons.mozilla.org/en-US/firefox/addon/249

firefox isn't much less quirky than ie, but it's definitely less forgiving if the html/css isn't valid. that's one of the main reasons firefox evangelists start frothing at the mouth about IE - really, both browsers should be showing a messed up page. IE will happily try to render a page that's entirely borked, even if (in rare/extreme cases) it means crashing your pc.
ptal wrote: All I can see that looks out of place is that all the image src alt has a / after it.
that slash in the image tag is there to escape it because img (like br and hr) doesn't have a closing tag.

you might also find the following tools useful (tbh, they're damn near indispensable):
web developer - https://addons.mozilla.org/en-US/firefox/addon/60
firebug - https://addons.mozilla.org/en-US/firefox/addon/60

Active Member

Posts

Joined
Tue Aug 14, 2007 6:04 am

Post by Qphoria » Sun Aug 17, 2008 9:59 pm

ptal wrote: All I can see that looks out of place is that all the image src alt has a / after it.
eg.

Code: Select all

alt="Mylar Speaker 23mm" /></a></td>
Could this be the problem?

Phil
No that /  is correct. It is for proper validation that all tags must have a closing tag

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JNeuhoff » Mon Aug 18, 2008 6:12 am

ptal wrote: 1 - I don't know how to modify the html to make it work in firefox3. I've attached photos to show the difference. I think this is a big problem for any shop if it can't display between different browsers. I use both IE7 & Firefox, although I do prefer firefox for it's creative plugins.
2 - You can probably see the problem I have with the ' - align="center"> ' appearing in the text description. Can you or anyone recommend which file this error might be in.
Looks like you need a 'white-space:nowrap;' in your CSS file for your texts, and then it should work in FireFox 3, too.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by ptal » Mon Aug 18, 2008 5:27 pm

Thanks Juergen,
Looks like you need a 'white-space:nowrap;' in your CSS file for your texts, and then it should work in FireFox 3, too.
I tried putting that code into catalog/template/default/css/product.css but that had no effect. I really have absolutely no idea about css. Is this even the right file?
Also, wouldn't that compress the text even more though? My problem is that firefox won't put each product on a new line, and instead compresses all the products together.

Any advice is much appreciated.
Phil

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm

Post by ptal » Mon Aug 18, 2008 5:43 pm

ogun wrote: you might also find the following tools useful (tbh, they're damn near indispensable):
web developer - https://addons.mozilla.org/en-US/firefox/addon/60
firebug - https://addons.mozilla.org/en-US/firefox/addon/60
Wow,
These are great tools.
Thanks ogun
Phil

Firebug
https://addons.mozilla.org/en-US/firefox/addon/1843

Newbie

Posts

Joined
Wed May 28, 2008 2:48 pm
Who is online

Users browsing this forum: No registered users and 4 guests