Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

This is a discussion on help with oscommerce in the Shared & Semi-Dedicated forum
Hi, I'm grasping at straws here. I need to make a change to oscommerce. I have it installed and working except in this one odd ...

  1. #1
    JPC Member
    Join Date
    Nov 2003
    Posts
    39

    help with oscommerce

    Hi,

    I'm grasping at straws here. I need to make a change to oscommerce. I have it installed and working except in this one odd case required by my client.

    You can read about it here on the oscommerce forums .

    I know it must seem strange posting this here, but the oscommerce forums are extremely active with questions but not so much on answers. Not their fault of course. Caused by people like me who know just enough to be dangerous.

    If anyone has experience with oscommerce and has any ideas on how to accomplish this, please post here (or there).

    Thanks!

  2. #2
    young and idealistic clio's Avatar
    Join Date
    Oct 2002
    Location
    Tübingen, Germany
    Posts
    2,199
    To be honest, I tried oscommerce and hated it, too restrictive and ended up writing my own code because modifying it just resulted in me swimming in my own black hole.
    - Julie
    Student / Web Developer

  3. #3
    JPC Senior Member Geoff's Avatar
    Join Date
    Sep 2001
    Location
    New Zealand
    Posts
    76
    hey,

    yeah i know what you mean about the oscommerce forums.

    I wouldnt say restrictive - there is just a heap more code to digest than if you are starting from scratch and know your system back to front.

    Actually this mightn't be too bad - create another payment module which mirrors the existing one but set the amount to pay to $100. To mirror the payment module you will need to duplicate the file and rename the class and all references to the class name in the file (including renaming the constants).

    You will need to copy the languages file for the original payment module in the same way.

    If you do it this way you should still be able to have the full amount on the customers record - but have it marked with the payment module name that they have only paid a deposit. I imagine that might be useful for legal reasons - effectively you are invoicing them for the full amount and they are agreeing to pay it.

    regards,
    Geoff
    Attitude Group Ltd

    osCommerce Installation, Customization and Support
    osCommerce Watch - News and Views on the open source shopping cart system

  4. #4
    JPC Member
    Join Date
    Nov 2003
    Posts
    39
    Thanks Geoff. I had thought about another payment module, but the problem was that the user would choose that module to pay the deposit and then not be able to choose whether to pay the deposit by credit card or check/money order.

    I actually solved this late last night with the help of the oscommerce forums. I created two radio buttons on the checkout_payment page to select deposit or the total. Then I created two new order total modules that only show up if you select the deposit. One shows that you are paying a $100 deposit. The other shows the balance that will be due upon arrival. And then the normal total order total modules comes last showing what will be the total of the order.

    It works great!

    Thanks again.

  5. #5
    JPC Senior Member Geoff's Avatar
    Join Date
    Sep 2001
    Location
    New Zealand
    Posts
    76
    Glad you got somewhere with it - sounds like a good solution given the multiple payment modules. I must have missed that in your explanation.

    It is suprising there isn't a contribution to cover this - maybe you should write one.
    Attitude Group Ltd

    osCommerce Installation, Customization and Support
    osCommerce Watch - News and Views on the open source shopping cart system

  6. #6
    JPC Member
    Join Date
    Nov 2003
    Posts
    39
    Originally posted by Geoff
    It is suprising there isn't a contribution to cover this - maybe you should write one.
    I think I just did

    Actually, mine is a bit of a hack. I am a complete newbie at this. I plan to clean it up and then offer it as a contribution. I had to hack it together to get something out quickly because the shop was already online.

    Just noticed your sig. I will take a look at your sites.

    All in all, I found the experience with oscommerce (my first shopping cart experience, my first php experience and my first mysql experience) to be a good one. But I have worked alot with c++ and java as well as Sybase and Oracle.

    At first just installing seemed a bit daunting, but I got it done. Then making the mods of simple contributions was daunting, but I got that done as well. Then more complex contribs, then actually changing the code. It just takes time to get a handle on the code and the database.

    It is amazing to see what really experienced people can do with this cart.

    Thanks again for your input.

    Steph
    Last edited by wbrook; 01-10-2004 at 03:21 AM.

  7. #7
    JPC Senior Member Geoff's Avatar
    Join Date
    Sep 2001
    Location
    New Zealand
    Posts
    76
    If you get to the point of wanting to submit this as a contribution I am happy to review your code.

    The osCommerce Watch site is reasonably new. My intention is that if I can save some people time here and there that is good - as you have found it isn't always easy to find stuff in the osC forums and you quite often see the same questions popping up over and over.
    Attitude Group Ltd

    osCommerce Installation, Customization and Support
    osCommerce Watch - News and Views on the open source shopping cart system

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •