osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

New Products

This is a discussion on New Products within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Thank you so very much, but I am at a loss, not knowing too much about how all the code ...


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
Reply

 

LinkBack Thread Tools
  #11  
Old 08-02-2008, 01:21 PM
Member
 
Join Date: Oct 2007
Posts: 40
Thanks: 17
Thanked 0 Times in 0 Posts
Rep Power: 0
metalman923 is on a distinguished road
Default Re: New Products

Thank you so very much, but I am at a loss, not knowing too much about how all the code work, The extend of my knowledge so far is that I have installed a few contributions with no problem, but I am sorry to say,
I only have a basic understanding of how things work, so I was wondering if you would be so kind as to please tell me where that code is placed and maybe direct me on how I could learn to do what you have suggested in you're last post:

customer group information from the database BEFORE you do this check, and you will have to verify the group id for wholesale in your database so that the number matches the one in the if statement (and make sure that the array name is correct).


Is there some place I could read about it and learn how to do it kinda quick?
Thank you again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #12  
Old 08-02-2008, 03:40 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: New Products

Quote:
Is there some place I could read about it and learn how to do it kinda quick?
<rant>
The code. That's how I learned all there is to learn. Look at the code, look at the database. Walk through a page, see how it is built. Track down the modules and routines that are required, see what is read from the DB and when it is read from the DB.

For instance, if your infoboxes are on the left, then they get displayed before the content in the center of the page, so if there is a reliance on a database call that is made in the content, then it is important that that call be made in the infobox if the box is on the left, and not made if the box is on the right.

The more you want through the code and find dependencies, the more you will understand what the code is doing and how it does it, the easier it is to modify the code to fit your needs (and also you'll have a much better understanding of what a contribution will do to the store in terms of functionality as well as performance).

For instance I just had a customer turn on PWA. Now this shouldn't have a dramatic effect, but today it allowed a customer to checkout, but it didn't record any customer data in the database, it didn't pass any customer data to authorize and so he processed a credit card payment with no customer data captured anywhere. PWA shouldn't do that, but it did. So now I have to walk through all the steps of PWA and see where the potential error happened and why. While this seems like a Pain In The Ass, I look at it as a chance to truly learn the path PWA takes, a chance to look at the performance of the path and a chance to clean up code and make it smaller (and also, since I'll be walking through the shipping and payment system, a chance to see if I can make it all ajax and make it a one-page ajax based checkout instead of a four page process (shipping-billing-confirm-complete)).

My point is, I could write the infobox code, but then you would be no smarter about how your store works. In fact, rather than doing you a favor, I would have done you a disservice. You wouldn't know how or why it works, and you would have learned that you can get free help to do it for you rather than how to do it yourself.
</rant?

At this point it is a matter of
1) taking the loginbox inforbox code and copying it to a new file
2) stripping the code "after" the login and replacing it with the if statement
3) stripping the code before the login and replacing it with the "advertisement" HTML
4) turning the infobox on via the infobox manager where you want it placed on the page
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to met00 For This Useful Post:
metalman923 (08-03-2008)
  #13  
Old 08-04-2008, 07:58 AM
Member
 
Join Date: Oct 2007
Posts: 40
Thanks: 17
Thanked 0 Times in 0 Posts
Rep Power: 0
metalman923 is on a distinguished road
Exclamation Re: New Products

I can't begin to thank you enough and you are right but I'm under the gun on this one with my boss, he wants this part of the cart going and I don't think I will have the time to sit and play with the code until I get some free time which will most likely be the weekend, so I hate to ask but can you please give me the code and instruct me on where it goes? if you can't I understand I don't want be a bother, But THANK YOU SO MUCH FOR ALL YOUR HELP AND DIRECTION
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
What is cross sell products,products expected,specials in admin catalog section mean? soibaal osCMax v2 Features Discussion 2 07-05-2007 08:06 AM
using Easy Populate & the products show in the 'New Products For %s" table? neil osCMax v2 Customization/Mods 0 03-18-2007 05:50 PM
keep newest products up on main page under New Products for. Redeye_Joe osCMax v2 Customization/Mods 2 12-04-2005 11:37 AM
'New Products fro the Month' box disabled if no new products hurst osCMax v2 Installation issues 3 09-16-2005 07:26 AM
MS2-MAX: New Products Page: Change Products Per Row glk osCommerce 2.2 Modification Help 0 03-16-2004 07:43 PM


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


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