osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

default_specials.php table problems

This is a discussion on default_specials.php table problems within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; I am having problems with HTML syntax and rows ending in the default_specials.php file. I do not know if the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-19-2005, 10:12 AM
Member
 
Join Date: Dec 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miahac
Default default_specials.php table problems

I am having problems with HTML syntax and rows ending in the default_specials.php file. I do not know if the problems are related.

It can be seen http://diecast-world.com/cat/

First. There seems to be no constraint keeping the products on special from being lined up side by side until the special products max value is reached. The other module below (NewProducts) clips at 3 products per row and goes to the next line.

Second. When I check the HTML output syntax there are many table elements that are not closed and start improperly (like rows containing no colums but containing other elements). These problems go away when I remove or comment the specials function.

2.0 RC1
__________________
Network Administrator
Kansas Hosting
http://www.kansashosting.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-22-2005, 07:28 AM
Member
 
Join Date: Dec 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miahac
Default RE: default_specials.php table problems

Maybe this post should be moved to a different category?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-22-2005, 10:10 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: default_specials.php table problems

http://bugtrack.oscmax.com/view.php?id=46
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-22-2005, 06:41 PM
Member
 
Join Date: Dec 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miahac
Default RE: default_specials.php table problems

Well i guess it was a bug but now there is still huge HTML errors and the listed fix does show 2 rows but now more tags (table and div) are not either closed or opened. Any suggestions. There are so many I cannot figure it out by copying the source and putting it in golive.
__________________
Network Administrator
Kansas Hosting
http://www.kansashosting.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-22-2005, 07:24 PM
Member
 
Join Date: Dec 2004
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
miahac
Default RE: default_specials.php table problems

OK. I do not know if this is a complete fix but it sure cleaned up the HTML output. On line 65 of the "bugfixed" default_specials.php I took out the <td></td>

Mine now reads:
Quote:
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $specials[$x]['products_image'], $specials[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $specials[$x]['products_id']) . '">' . $specials[$x]['products_name'] . '</a><br><s>' . $currencies->display_price($specials[$x]['products_price'], tep_get_tax_rate($specials[$x]['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($specials[$x]['specials_new_products_price'], tep_get_tax_rate($specials[$x]['products_tax_class_id'])));
I found this pretty quickly because there was <TD><TD> and </TD></TD>

Any thoughts?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Display Category name on Default_specials spurs20 osCMax v2 Customization/Mods 0 09-20-2005 10:07 AM
Problems setting up shipping table Kalmservices osCommerce 2.2 Installation Help 0 09-01-2005 05:17 AM
table file flexx osCommerce 2.2 Modification Help 1 05-19-2005 05:15 AM
.css cant seem to fix table Gus osCommerce 2.2 Modification Help 3 11-21-2003 08:32 AM
Add new fields/table to product table Anonymous osCommerce 2.2 Modification Help 0 10-21-2002 04:23 AM


All times are GMT -8. The time now is 12:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax