osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Remove New Products For Month & Where to Put Javascript

This is a discussion on Remove New Products For Month & Where to Put Javascript within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Snap1.jpg Snap2.jpg I've attached 2 screenshots - showing the 3 "New products for (monthname)" vs. "New Products" display. This should ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #11  
Old 04-21-2007, 03:01 AM
Member
 
Join Date: Apr 2007
Posts: 42
Thanks: 7
Thanked 1 Time in 1 Post
Rep Power: 0
Twister is on a distinguished road
Default Re: Remove New Products For Month & Where to Put Javascript

Snap1.jpg

Snap2.jpg

I've attached 2 screenshots - showing the 3 "New products for (monthname)" vs. "New Products" display. This should illustrate my problem!
Thanks...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #12  
Old 04-21-2007, 03:42 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Remove New Products For Month & Where to Put Javascript

limit it to 2 columns. Or limit the max pic width to fit. Or Expand the center width.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #13  
Old 04-21-2007, 05:12 AM
Member
 
Join Date: Apr 2007
Posts: 42
Thanks: 7
Thanked 1 Time in 1 Post
Rep Power: 0
Twister is on a distinguished road
Default Re: Remove New Products For Month & Where to Put Javascript

I do have it limited to 2 columns (even tried 1 or zero columns without success) and have limited the image size as much as I can. Expanding the center width would mess everything else up.

All I wanted to do was replace the 3 across display within "New Products for (month)" with a 1 across display or eliminate New Products for (month) feature altogether.

You have the foundation for a good product and I appreciate your suggestions but I can't waste anymore time on this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #14  
Old 04-21-2007, 11:31 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,089
Thanks: 81
Thanked 348 Times in 327 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: Remove New Products For Month & Where to Put Javascript

To remove the box is simple, just edit /templates/fallback/index.default.tpl.php and remove the code for the box. Takes about two minutes. Here is the exact code to remove:

Code:
          <tr>
            <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
          </tr>
To change the new products for this month to just display one or two per row, it is really easy too. Just find the following code in /catalog/includes/modules/new_products.php

PHP Code:
    $col ++;
    if (
$col 2) {
      
$col 0;
      
$row ++; 
And change the 2 to a 1 for two columns and the 1 to a zero for 1 column.

Finally, it is not really wasting time learning how to use the software that you are running for your business. The price of free software is time. You have to either spend your money on something or spend your time to learn. In most cases, even the commercial packages have complexity issues like this one. Considering osCMax has more features than many of the commercial carts that cost over $500 (some in the thousands) or a yearly license fee, spending a couple of days should not be a big deal. If it is, you may want to consider purchasing a commercial package that you can get direct support for, or at least be able to yell at someone who has a financial stake in keeping you happy

All of these free osC packages assume that the users will take some of the initiative and search through the code, forums, etc... for answers, and will be more patient since everything is provided free of charge. Consider it self serve software. Cheaper price (in this case 100% free), but less service (in this case 100% self-serve )

One question, when you hit this problem did you just stop everything and wait to figure it out? If so, yes that is a waste of time. Why not just move on to other things that you need to set up while this problem gets figured out? I mean, it is so minor of an issue, why get bogged down when there is so much more for you to be getting done with setup of the shop.

By the way, most all the other osC flavors out there have the same new_products module, so you will have the same issue with them (I could be wrong - I often am )
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • 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. Default multi server configuration for exceptional performance!

  • 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!
The Following User Says Thank You to michael_s For This Useful Post:
mikei777 (05-23-2007)
  #15  
Old 04-21-2007, 03:43 PM
Member
 
Join Date: Apr 2007
Posts: 42
Thanks: 7
Thanked 1 Time in 1 Post
Rep Power: 0
Twister is on a distinguished road
Default Re: Remove New Products For Month & Where to Put Javascript

Michael,
Thanks for the reply. I'm a well seasoned developer in many other languages (25+ years) but my life has been spent in massive corporate and DOD contract database work and imbedded systems programming. I know a little HTML, javascript and some ASP and VB but web programming is very new to me. I find HTML and javascript basically quite simple and intuitative - ASP/VB are about the same but for some reason I'm really having a hard time with PHP. I went through a couple of online PHP tutorials but you know how that goes - nothing in the real world is ever as straight forward as a tutorial. I really don't understand PHP and because development in it is so modular and unstructured its difficult for me to find my way around - when I think I know where to look for something I don't see what I expected and find that that code was included or referenced from somewhere else which inturn itself had its code referenced or borrowed from somewhere else. I feel like I'm going in circles!

Because I've been in I.T. all my life, I'm not comfortable moving something into production that I don't understand so I'm trying to learn all I can in the limited time I have to get a site up and running. When someone posts something and says "do this and it will work" I need to understand WHY it works. I was able to build a simple but functional ASP/SQL Server front end and backshop in about a week mostly from scratch but I'd like to avoid IIS if possible which rules out ASP - hosting is also a bit more expensive in the Microsoft universe. I expected to do the same in PHP - boy, was I wrong!

You're right about the open source world and it's a definite transition for someone whose been collecting MSCE's all his life. Things are not documented the way they are in a commercial environment - a bit more academic and esoteric... I'll get there but so far I haven't reached the point of an epiphany - I'm still working at it and will happen but I also can't slip my schedule indefinitely. Anyway, thank you for your help and guidance - you're a good "teacher"! Thanks again...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #16  
Old 04-21-2007, 10:31 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Remove New Products For Month & Where to Put Javascript

Quote:
Originally Posted by michael_s View Post
To remove the box is simple, just edit /templates/fallback/index.default.tpl.php and remove the code for the box. Takes about two minutes. Here is the exact code to remove:

Code:
          <tr>
            <td><br><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
          </tr>
To change the new products for this month to just display one or two per row, it is really easy too. Just find the following code in /catalog/includes/modules/new_products.php

PHP Code:
    $col ++;
    if (
$col 2) {
      
$col 0;
      
$row ++; 
And change the 2 to a 1 for two columns and the 1 to a zero for 1 column.

Finally, it is not really wasting time learning how to use the software that you are running for your business. The price of free software is time. You have to either spend your money on something or spend your time to learn. In most cases, even the commercial packages have complexity issues like this one. Considering osCMax has more features than many of the commercial carts that cost over $500 (some in the thousands) or a yearly license fee, spending a couple of days should not be a big deal. If it is, you may want to consider purchasing a commercial package that you can get direct support for, or at least be able to yell at someone who has a financial stake in keeping you happy

All of these free osC packages assume that the users will take some of the initiative and search through the code, forums, etc... for answers, and will be more patient since everything is provided free of charge. Consider it self serve software. Cheaper price (in this case 100% free), but less service (in this case 100% self-serve )

One question, when you hit this problem did you just stop everything and wait to figure it out? If so, yes that is a waste of time. Why not just move on to other things that you need to set up while this problem gets figured out? I mean, it is so minor of an issue, why get bogged down when there is so much more for you to be getting done with setup of the shop.

By the way, most all the other osC flavors out there have the same new_products module, so you will have the same issue with them (I could be wrong - I often am )
Actually changing in the Admin - MAX values - "New Products Module" to 2 will limit it to 2 etc...

Maybe he want to display in rows and not columns?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to jpf For This Useful Post:
Twister (04-22-2007)
Sponsored Links
Advertisement
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
I want to get rid of new products box for month etc gasketking osCMax v2 Installation issues 0 10-31-2005 07:58 AM
'New Products fro the Month' box disabled if no new products hurst osCMax v2 Installation issues 3 09-16-2005 07:26 AM
How to remove specials for this month in Main page? blum osCMax v1.7 Discussion 2 07-04-2005 05:10 PM
All products showing up in New Products for the Month BuckroeBill osCMax v1.7 General Mods Discussion 0 02-20-2005 10:45 AM
New products for the month problem maxi032 osCommerce 2.2 Modification Help 0 05-28-2003 03:20 AM


All times are GMT -8. The time now is 02:19 PM.


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