Jump to content
Sign in to follow this  
toyicebear

Modern Template for RC2a

Recommended Posts

Hi;

 

I have a problem with the category boxes. I get the following error message:

 

Warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/xxxxx/public_html/includes/boxes/categories.php on line 136

 

Warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/xxxxx/public_html/includes/boxes/categories.php on line 144

 

The code in these lines is:

 

$cat_subs = array();

foreach($categories_start as $key => $value) {

if(strstr($key, '_' . $parentID . '_E')) {

$cat_subs[$parentID][] = substr($key, 2, strpos($key, "_", 2) - 2);

}

}

 

// if (!isset($_GET['cPath'])) {

 

foreach ($cat_subs[$parentID] as $v) { //$categories = tep_db_fetch_array($categories_query)

$categories = $categories_start['S_' . $v . '_' . $parentID . '_E'];

 

 

I have not modified the code included in the template to have multiple categories and subcategories.

 

 

Could you help me, please?

 

Following the included instructions you should get no such errors, so do go over your modifications again.

 

Hi,

Your template is really great and easy to setup. Thx for your job.

But I have exactly the same issue when I enable the cache, whereas if it is not enabled, all is ok.

Can you please help me ?

Thx for your time

 

Glows

Edited by Glows

Share this post


Link to post
Share on other sites

I've installed this skin/theme on my site but, I'm having a problem with the popup images in product info pages, when the enlarge image link is clicked all I'm getting is the site popping up in new window instead. Can you help please?

Share this post


Link to post
Share on other sites

Hi,

Your template is really great and easy to setup. Thx for your job.

But I have exactly the same issue when I enable the cache, whereas if it is not enabled, all is ok.

Can you please help me ?

Thx for your time

 

Glows

 

delete the old cache files first.

Share this post


Link to post
Share on other sites

I've installed this skin/theme on my site but, I'm having a problem with the popup images in product info pages, when the enlarge image link is clicked all I'm getting is the site popping up in new window instead. Can you help please?

 

try to do the install fresh again.

Share this post


Link to post
Share on other sites

delete the old cache files first.

 

Thx for your answer but I thought it could be that too but I still have the same error.

Do you see an other possible solution?

Share this post


Link to post
Share on other sites

Hi All

 

I've installed the modernrc2a template on my site and I'm having a problem that I'm really really struggling to fix.

 

In the categories box, the background image that I am using for the infobox headings is fine, but it seems to have put this background image as the background to the actual "categories" text as well: screenshot.jpg

 

It's been driving me insane because I don't know where in the code it is doing this. I looked at the source of the page code from my browser and I could see where the problem is in the code that is outputted in the HTML:

 

 <table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tbody><tr>
   <td class="infoBoxHeading" height="14"><img src="images/infobox/corner_right_left.gif" alt="" border="0" height="25" width="11"></td>
   <td class="infoBoxHeading" height="14" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tbody><tr>

   <td class="infoBoxHeading" width="100%">Categories</td>
 </tr>
</tbody></table>
</td>
   <td class="infoBoxHeading" nowrap="nowrap" height="14"></td>
   <td class="infoBoxHeading" nowrap="nowrap" height="14"><img src="images/pixel_trans.gif" alt="" border="0" height="14" width="11"></td>
 </tr>
</tbody></table>

 

I can see an extra table in the table that shouldn't be there.... this one:

 

<td class="infoBoxHeading" height="14" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
 <tbody><tr>

   <td class="infoBoxHeading" width="100%">Categories</td>
 </tr>
</tbody></table>
</td>

 

But I can't find this extra table anywhere in my source files on my pc.

 

I have searched and searched through the files of the modernrc2a template and the css and everything and can't find where to fix this anywhere in the template or oscommerce files.

 

Please help!! Help would really very much be appreciated! Thanks!! :)

Share this post


Link to post
Share on other sites

Are you using STS? If so, look in your infobox templates, specifically infobox_categories.php.html.

 

Hi bkellum, thanks for your quick reply! :)

 

Yes I am using STS, I just looked in infobox_categories.php.html as you suggested but the code looks normal :/

 

 <table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="25"></td>
   <td width="100%" height="14" class="infoBoxHeading">Categories</td>
   <td height="14" class="infoBoxHeading" nowrap>$right_arrow</td>
   <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
   <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText">$content</td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>

 

Weird! :(

Share this post


Link to post
Share on other sites

I have a heavily modded shop so I don't think i'll be able to use this template but I like the subtle changes it makes. Would it be possible to take a couple parts of this template and integrate it into my store? I want to use the top bar where it has "my account" and then below the category listing. I also would like to have my boxes look like the ones you have and the bottom footer bar as well. Would these small changes be possible to my store?

Share this post


Link to post
Share on other sites

I have a heavily modded shop so I don't think i'll be able to use this template but I like the subtle changes it makes. Would it be possible to take a couple parts of this template and integrate it into my store? I want to use the top bar where it has "my account" and then below the category listing. I also would like to have my boxes look like the ones you have and the bottom footer bar as well. Would these small changes be possible to my store?

 

Yes, you can use part of the package....

Share this post


Link to post
Share on other sites

Yes, you can use part of the package....

 

Sorry guess I was asking more if I could and if so how could I implement the changes i'm looking for?

Share this post


Link to post
Share on other sites

Sorry guess I was asking more if I could and if so how could I implement the changes i'm looking for?

 

 

Click basics of osc design in my signature

Share this post


Link to post
Share on other sites

Where do I need to make a change so the image enlarge button is displayed instead of the "click to enlarge" text?

 

product_info.php

Share this post


Link to post
Share on other sites

Howdy!

 

Thanks for the contributions!

 

I am using the STS tag $category_cssmenu for my page but I have the problem that my subcategories are longer than the size of the page the menu will stop at the bottom and won't let me scroll down to allow me to see the rest of the sub-categories.

 

This only happen on Internet Explorer 7 & 8 (where I have tested).

 

I've been looking everywhere to solve this issue with not success and my boss is on my back. Can anyone please help me??!!! :(

 

Thanks in advance!

 

Mrstech

Share this post


Link to post
Share on other sites

Howdy!

 

Thanks for the contributions!

 

I am using the STS tag $category_cssmenu for my page but I have the problem that my subcategories are longer than the size of the page the menu will stop at the bottom and won't let me scroll down to allow me to see the rest of the sub-categories.

 

This only happen on Internet Explorer 7 & 8 (where I have tested).

 

I've been looking everywhere to solve this issue with not success and my boss is on my back. Can anyone please help me??!!! :(

 

Thanks in advance!

 

Mrstech

 

Ask in the STS support tread, i am sure someone know about how to fix that issue there

Share this post


Link to post
Share on other sites

First of all Thanks for the contribution.

 

I have a question. It is posible to change the 3 column product listing view for a 2 column listing?

In admin i find to change subcategories per row but no products per row.

 

Thanks again.

Share this post


Link to post
Share on other sites

First of all Thanks for the contribution.

 

I have a question. It is posible to change the 3 column product listing view for a 2 column listing?

In admin i find to change subcategories per row but no products per row.

 

Thanks again.

 

You can change that mnaually in these 2 files

 

 

includes/modules/products_new.php

 

and

 

includes/modules/products_listing.php (or alternatively in includes/modules/products_listing_col.php )

Share this post


Link to post
Share on other sites

Hi, i really like your theme and have used it on my old store.. any chance i could get it to work with the new 2.3.1 version of Os?

 

Regards

 

BlairH

Share this post


Link to post
Share on other sites

Hi, i really like your theme and have used it on my old store.. any chance i could get it to work with the new 2.3.1 version of Os?

 

Regards

 

BlairH

 

Since 2.2 and 2.3 is very different design wise it would be far easier to make a new one for 2.3 with a similar look.

Share this post


Link to post
Share on other sites

Since 2.2 and 2.3 is very different design wise it would be far easier to make a new one for 2.3 with a similar look.

ok, would you be doing such a thing... :D

Share this post


Link to post
Share on other sites

In this case i see no actual need...since 2.31 has close to the design of the grey modern template...it is centered, box headings and top line can be easily changed in the stylesheet or just via adding in a new jquery ui skin. The only thing would be to add in a second top-line with a search box.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×