Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TENCENTS

Pioneers
  • Posts

    179
  • Joined

  • Last visited

Posts posted by TENCENTS

  1. After spending many days (weeks, months, whatever!!) trying to get this damned thing working I gave up and chucked it out the window.

     

    I tried CCC (Custom Computer Creator) and spent some hours trying to get that working too. It showed a lot more potential but I quickly realised that the *dependancy* factor is non existent. There are other issues with this mod (CCC) that I think people are deliberately sidestepping (i.e. the radio buttons with images problem). And I'm not about to throw $200 at it to make it right - or even become a JAVA guru to prove that I can do it myself.

     

    The vision and foundation of Oscommerce is open-source, its critical success factor is in the mission statement "individual commitment to a group effort". I am a proud and avid supporter of Oscommerce (and its philosophy), even though I haven't contributed much I have helped certain local and international people with their sites. I have spent an incredible amount of time on my site(s) and I refuse to hoard any of my source code, I have learnt so much from this "group effort" that it's only a pleasure for me to offer assistance wherever I can. Although I won't code for anyone for free I will however offer my source codes for free to help people to help themselves.

     

    Okay, so I ditched CCC because it doesn't work properly and the support for it went pear-shaped, whether deliberate or not I don't care - it's too much work to get it where I need it to be.

     

    I've now gone full-circle now, back to this contrib (PC Pro Creator) and made a deliberate effort to "decipher" it, simply to prove that CCC isn't the be-all and end-all of online PC Builders for Oscommerce.

     

    This is what I have discovered about this (PC Pro Creator) contrib:

     

    The *dependancy* does work. The spanish instruction "Agregar Relacion" (on the 'edit products page' in admin) I have renamed temporarily to "Select Category and Product then click here to Apply Dependance". Then for "Eliminor" I have renamed to "Click here to remove Dependance".

    As you apply dependances you will see a list of then forming on the 'edit products page' - its not beautiful but for now it works.

     

    The Assembly Fees issue does actually work... the authors instruction is not only confusing but also a complete lie. To get it working you need to create a new product category off the root (or "top") and then in there add your assembly fee(s) as if they (or it) are products. Then it gets a bit technical... you need to look at your tables (with phpMyAdmin for example), locate the categories_description table and browse it, locate the category that you've created for Assembly Fees and make a note of the catgories_id (a number). Then locate the file prduct_listing.php (in the catalog root) and open it for editing, look for the following line (near the end):

     

    $c_query = tep_db_query("select products_id from products_to_categories where categories_id='33'");

     

    .... yes!!!.. it's HARD CODED!!!!!???, so change the 33 to the number you noted from your categories_id in your categories_description table, save the change and test the builder - you'll see that the assembly fees are now listed.

     

    That's all I have for now - the fact that these two (important) issues are working gives me hope for this contrib. There's still a lot of cosmetic work to do, I've already thrown the stylesheets away, making good progress now to get this thing to "look" like it belongs on my site.

     

    I will try my best to keep coming back to this forum to answer questions (for help) about my "workarounds" for Dependancy and Assembly Fees.

  2. oops!! ... I made a small mistake on the original FCKeditor FIX I posted... it's not FCKCONFIG.ASP, but rather FCKCONFIG.JS that must be changed. :blush: ..... the corrected instruction as follows:

     

    In catalog/admin/fckeditor/fckconfig.js

     

    *** FIND:

     

    // Custom implementations should just ignore it.

    var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py

    var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php

     

    *** CHANGE TO:

     

    // Custom implementations should just ignore it.

    var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py

    var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php

     

    --------------------------------------------------------------------------------------

     

    NOW, FOR THE BLANK define_mainpage PROBLEM:

     

    After playing around on my live site I found that putting the full http: address doesn't work....

     

    Try this:

     

    In /catalog/admin/includes/functions/html_output.php:

     

    $oFCKeditor -> BasePath = '/catalog/admin/fckeditor/';

     

    :thumbsup: You're so close now !! - don't give up.

  3. Hello again,

     

    When I click the Define Mainpage from the catalog admin, as I stated I see the above...the 404 page not found error is gone. When I view the page source, I can see the contents of the define_mainpage.php (This module demonstrates how easy it can be to adapt existing code....bla bla bla, and I can see in the code where the editor is being called, it's just not displaying it on the page itself.

     

    Any ideas?

     

    Thanks again for any help.

     

    Just checking.... you have downloaded FCKeditor 2.3.1 from fckeditor.net, deleted the old one that comes with FCKosc2.2 (in admin), and then copied in the new one ?

  4. .... and one more thing while I'm thinking of addresses, and a good example ...

     

    The default folder you create for your FCK images (according to the instructions in the FCKeditor FIX 2 posts back) will then be addressed as: http;www,yoursite,com/userfiles/

     

    ... and this folder (like I said) needs full RW access especially for FCK image uploads to work.

     

    (I hope this clarifies instead of confuses). :huh:

  5. A note about the basepath address in html_output.php (admin)

     

    The FCK Editor is independant of OSC, and to run it standalone you simply type in the address (like you would to get into your admin panel), i.e. http;//www,yoursite,com/catalog/admin/fckeditor/fckeditor,php .....

     

    .... there's obviously a bunch of parameters that follow, but you get the picture (literally). :-"

     

    So, the basepath address that html_output.php is looking for is the full address of your FCKeditor, i.e. the http address I have just mentioned (without the fckeditor.php on the end of course).

     

    This applies only to HTML_OUTPUT.PHP

     

    :thumbsup:

  6. can anyone help me? please :blink: ...if I've left out information that's needed please let me know.

     

    Try the following:

     

    /catalog/admin/fckeditor/fckeditor.php

     

    $this->BasePath = '/fckeditor/' ;

     

    I don't see anything about FCKeditor in my admin configuration.php. It may be redundant, but wait until you get FCK running before trying to delete it.

     

    /catalog/admin/includes/functions/html_output.php

     

    $oFCKeditor -> BasePath = 'http://localhost/catalog/admin/FCKeditor/';

     

    .... OR IF YOU ARE RUNNING LIVE.. (substitute with your address)

     

    $oFCKeditor -> BasePath = 'http://www.yoursite.com/catalog/admin/FCKeditor/';

     

    I hope that sorts it for you!!!

     

    :thumbsup:

  7. Thanks SEDef .... for the distress call - who knows when I would have come back here. I'm conquering galaxies by now (psh! - right!!).

     

    Sorry folks, while I've been lavishing in the land of FCK I seem to have left my fellow OSCers high and dry.

     

    The FCKeditor FIX !!

     

    The FCKosc2.2 contribution (http://www.oscommerce.com/community/contributions,2987) has a bum-copy of FCKeditor (included in the admin folder) which must be replaced by the latest version of FCKeditor, available from www.fckeditor.net

     

    Then, in addition to the FCKosc2.2 contrib instructions, the following steps must be taken to get FCK working properly.

     

    In your domain root folder (eg. HTTPDOCS, or wwwroot on localhosts) create a folder named userfiles and allow full RW access. This will be FCK?s default media library, it will store uploaded media objects here. You can also copy your own objects in at a later stage?. once you?ve seen how FCK likes to do things.

     

    NOTE: You can change the location of this ?media folder? ? for now let?s stick to the defaults and get it up and running quickly.

     

    --------------------------------------------------------------------------------------------------------------

    SET THE FCK ENVIRONMENT

    --------------------------------------------------------------------------------------------------------------

     

    In catalog/admin/fckeditor/fckconfig.asp

     

    *** FIND:

     

    // Custom implementations should just ignore it.

    var _FileBrowserLanguage = 'asp' ; // asp | aspx | cfm | lasso | perl | php | py

    var _QuickUploadLanguage = 'asp' ; // asp | aspx | cfm | lasso | php

     

    *** CHANGE TO:

     

    // Custom implementations should just ignore it.

    var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py

    var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php

     

    --------------------------------------------------------------------------------------------------------------

    ENABLE THE FCK BROWSE AND UPLOAD FUNCTIONS

    --------------------------------------------------------------------------------------------------------------

     

    In catalog/admin/fckeditor/editor/filemanager/browser/default/connectors/php/config.php

     

    *** FIND:

     

    // SECURITY: You must explicitelly enable this "connector". (Set it to "true").

    $Config['Enabled'] = false ;

     

    *** CHANGE TO:

     

    // SECURITY: You must explicitelly enable this "uploader".

    $Config['Enabled'] = true ;

     

     

    --------------------------------------------------------------------------------------------------------------

     

    In catalog/admin/fckeditor/editor/filemanager/upload/php/config.php

     

    FIND:

     

    // SECURITY: You must explicitelly enable this "uploader".

    $Config['Enabled'] = false ;

     

    *** CHANGE TO:

     

    // SECURITY: You must explicitelly enable this "uploader".

    $Config['Enabled'] = true ;

     

     

    --------------------------------------------------------------------------------------------------------------

     

    And that?s basically it... I honestly didn't change anything else in FCKeditor (this time!!)

     

    Your main concern when doing the FCKosc 'mod' will be the html_output.php file in admin functions. If you are confused about the basepath address, here is a sample of the code in my html_output file (for my localhost):

     

    $oFCKeditor -> BasePath = 'http://localhost/catalog/admin/FCKeditor/';

     

    For my live sites I simply replace localhost with my real wwwdotcom address.

  8. Hi

     

    I've installed this great contribution (New_Support_v1d) on osc 2.2ms2 and everything works fine, but while adding either a status, priority, department or an admin, i get the following error message:

     

    Fatal error: Call to undefined function: tep_array_merge() in ../admin/support_status.php on line 36

     

    also it's not possible to change the value for the second language (italian), it changes only the first language (german)

     

    can you please help me?

     

    change tep_array_merge to array_merge.

  9. IMAGES WORKING with FCK Editor 2.2 and OSCommerce - aka. FCKOSC.....

     

    I fought with this one - ending up where everyone else did - the 'images problem'. Or more specifically that message about the disabled connector in the asp file (....whatever.... one more nanosecond further away from worth remembering).

     

    In the fckeditor/editor/filemanager/browser/default/connectors/asp folder there is a file called CONFIG.ASP - open it and read the first few lines of code - see the SECURITY message - well there it is. Damn - like flicking a switch.

     

    After doing this I now have images - can browse the server - create folders - upload. Shweeet!!

     

    Cool - it's time to test the Flash support.

     

    10/10 :thumbsup: :thumbsup: - FCK Editor RoXX - when it it worXX !! :D

  10. I have just tried to install FCKosc 2.2 on a new OsCommerce installation. I have have only experienced problems so far. Has anybody managed to get it up and running?

     

    What I reall want to do is edit the main page easily - preferable without donloading, editing and the uploading it again. Will FCKosc 2.2 do this and is there and cheap alternative?

     

    Thanks,

     

    Ian

     

    I have FCK 2.2 installed and running with MS2.2. I ended up using this because the one included with DEFINE_MAINPAGE contribution didn't work for me. (I was probably doing something wrong).

     

    In retrospect I would probably install it differently next time (maybe in the admin folder, if it matters), anyway my configuration is as follows:

     

    I have FCKEditor in a folder off my root folder (i.e. httpdocs\fckeditor)

     

    In the FCKEditor folder there are two files to be edited/checked; FCKEDITOR.JS and FCKEDITOR.PHP - make sure the pathnames are correct. 'localhost' is allowable and works for me.

     

    Then there is HTML_OUTPUT.PHP in the admin\includes\functions folder - the path here cannot include 'localhost' , instead use your localhost name, i.e. www.website.com

     

    -------------------

     

    Honestly - at the end of the day I ended up installing FCK 2.2 and I followed the DEFINE_MAINPAGE instructions carefully.

     

    Not an easy plug-in....... but what a beauty when you've got her running.

     

    Only problem I have right now is with the image uploads.

     

    Good luck !! - persevere - you won't be disappointed.

  11. You hit it on the nail (pardon the pun) - thanks voidstate.

     

    I must admit this one had me stumped - I setup my local dev.server last week, and after a bit of a frustrating learning curve I had everything working perfectly - EXCEPT for the thumbnails. Strange was that the full size picture (i.e. click here to enlarge) show perfectly, but no images on any thumbnails - the sizes were right but just no rendering.

     

    This fix worked 100% - Thanks a million!!. :thumbsup: :thumbsup: B)

     

    I was refering to Post #120 in this support forum ('On The Fly' Auto Thumbnailer using GD Library 2.1)

  12. For those who can only get the thumbnail chaching to work when you leave the $tn_path variable blank, I solved this probelm with the following change in product_thumb.php:

     

    Find:

    Replace With:

    The file was assuming backslashes as I am on a windows server but the assumption was wrong. Seems PHP is perfectly capable of handling forward slashes on Windows 2003 Server.

     

    voidstate

     

    You hit it on the nail (pardon the pun) - thanks voidstate.

     

    I must admit this one had me stumped - I setup my local dev.server last week, and after a bit of a frustrating learning curve I had everything working perfectly - EXCEPT for the thumbnails. Strange was that the full size picture (i.e. click here to enlarge) show perfectly, but no images on any thumbnails - the sizes were right but just no rendering.

     

    This fix worked 100% - Thanks a million!!. :thumbsup: :thumbsup: B)

  13. In addition to my previous comments - I have found a clue (or something) when using Firefox, before showing me the blank area I get an error 'd is not a registered protocol'.

     

    Note: if I do anything to the path I have already specified for the FCKeditor I get a 404 error, so I'm pretty sure I have the right path.

     

    Just incase anyone wants to know where I'm getting this problem. It's as per the instructions, i.e. in Admin, goto Catalog and then Define Mainpage.

  14. Same here !! - just getting a blank edit area with 'define_mainpage.php' in the top-left corner.

     

    I'm sure I have the correct path to the FCKeditor folder in admin because I was getting a 404 error before. Even tried setting permissions to fckeditor.php - nada !!

     

    Is there something I need to download from the FCK website ?? - dunno - I'm about to trash this mod.

     

    Terrible installation instructions. What seemed to be a fairly straightforward mod was marred by vagueness.

     

    One of the prerequisites is phpMyAdmin, but no SQL changes were required, ?????????? - what do we need phpMyAdmin for then - to backup the database ??? - I do that on a regular basis !!

     

    :angry: - wasted my time on this one - maybe not - could it be something simple I have overlooked ??

     

    In addition to my previous comments - I have found a clue (or something) when using Firefox, before showing me the blank area I get an error 'd is not a registered protocol'.

     

    Note: if I do anything to the path I have already specified for the FCKeditor I get a 404 error, so I'm pretty sure I have the right path.

  15. I see a blank area instead of FCKeditor and text area in CATEGORIES page.

     

    Any idea? I agree with thecure7, instructions are a bit messy...

     

     

    Same here !! - just getting a blank edit area with 'define_mainpage.php' in the top-left corner.

     

    I'm sure I have the correct path to the FCKeditor folder in admin because I was getting a 404 error before. Even tried setting permissions to fckeditor.php - nada !!

     

    Is there something I need to download from the FCK website ?? - dunno - I'm about to trash this mod.

     

    Terrible installation instructions. What seemed to be a fairly straightforward mod was marred by vagueness.

     

    One of the prerequisites is phpMyAdmin, but no SQL changes were required, ?????????? - what do we need phpMyAdmin for then - to backup the database ??? - I do that on a regular basis !!

     

    :angry: - wasted my time on this one - maybe not - could it be something simple I have overlooked ??

  16. Hello,

     

    Long time since I've asked anything on here, I'm just trying to get back into using OSCommerce and have a fresh install that I am trying to put the fixed width contribution onto.

     

    I have changed the stylesheet, the header and the footer and it doesn't work. I'm checked and double checked that I have put in all that is in the contribution.

     

    In the stylesheet I have added: .

     

    BODY {
     text-align: center;
     background: #ffffff;
     color: #000000;
     margin: 0px;
    }
    
    .fixcenter {
     width: 758px;
     border: solid; border-width: 1px;
     background: #ffffff;
     color: #000000;
     margin: auto;
     margin-top: 20px;
     text-align: left;
    }

     

    I've added <div class="fixcenter"> to the header and </div> to the footer. Why won't it work?

     

    Thanks

     

    Make sure that the </div> is the very last thing in your footer.php (in the includes folder) and not before the last ?>. I hope that helps (although it's been a while since you posted the question).

  17. After a few days of patching this thing in and tweaking it to the way it's supposed to work. :-" - I am officially impressed. Amongst all the hacks and patches I've ever done to my site there are only two 'prize' mods installed... this is one of them. B)

     

    Well done (and thanks) to PopTheTop - you deserve all the praise you get. :thumbsup:

     

    Thanks to SuperSewest, your suggestions made the invoice problem go away nicely. :thumbsup:

     

    To anyone else wanting to plug this one in, especially newbies (like me), I would suggest a strategic approach - it's not for the faint hearted. Read the documentation carefully!!! and don't give up - this is a gem.

     

     

    I just hate it when this happens - this post was supposed to end up with the support forum regarding the 'Fancier Invoice and Packing slip' contrib. :blush:

     

    Here are the links:

     

    Support can be found at: http://www.oscommerce.com/forums/index.php?showtopic=132562

     

    Download From: http://www.oscommerce.com/community/contributions,2861

  18. After a few days of patching this thing in and tweaking it to the way it's supposed to work. :-" - I am officially impressed. Amongst all the hacks and patches I've ever done to my site there are only two 'prize' mods installed... this is one of them. B)

     

    Well done (and thanks) to PopTheTop - you deserve all the praise you get. :thumbsup:

     

    Thanks to SuperSewest, your suggestions made the invoice problem go away nicely. :thumbsup:

     

    To anyone else wanting to plug this one in, especially newbies (like me), I would suggest a strategic approach - it's not for the faint hearted. Read the documentation carefully!!! and don't give up - this is a gem.

  19. Wouldn't print_my_invoice.php use the catalog/stylesheet.css instead of the admin css?

    or were you talking about the admin/orders.php side for the store owner to print an invoice?

    Actually, I think it would be the same fix, just different files to apply it to.

     

    You could easily add the bgcolor #FFFFFF (white), as tencents said, but it should be (I think) in the <body> rather than the <table>. This should result in the whole page being white including the footer. Except if any styles in print_my_invoice.php would overwrite this. It could be added as a class in the stylesheet.

     

    I think if you're going to print an invoice, the background should always be white. As you said no-one will print a black page. Or any other color for that matter It would probably be best as hardcoded. No need for stylesheet as it wouldn't need to be changed to suit any individual stores.

     

    <body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="window.print();return false">

     

    But then again, in keeping with modern standards of using css instead of individual tag attributes, you could build a little stylesheet embedded in print_my_invoice.php <head>. My understanding is that individual page's styles overwrite anything set in a stylesheet.css.

     

    <link rel="stylesheet" type="text/css" href="stylesheet.css">

    <style type="text/css">

    body {background-color: #FFFFFF;}

    </style>

     

    or you could make new class in stylesheet.css "PrintMyInvoiceBody".

     

    Please adjust as needed if my syntax is off. I'm getting better but still have a lot to learn. Hope this helps move you along the path. Great idea to update the files to use css and english files where it can. This is one of my favorite MODs.

     

    hey while you're at it, for the footer, how about:

     

    <CENTER><span class="smallText_INVOIVE"><FONT FACE="Verdana" COLOR="#006699"><strong><?php echo INVOICE_TEXT_THANK_YOU; ?><BR><?php echo STORE_NAME; ?><BR><?php echo STORE_URL_ADDRESS; ?></strong></font></span></CENTER>

     

    change to:

     

    <span class="PrintMyInvoiceFooter"><?php echo INVOICE_TEXT_THANK_YOU; ?><BR><?php echo STORE_NAME; ?><BR><?php echo STORE_URL_ADDRESS; ?></span>

     

    and then add

    .PrintMyInvoiceFooter {

    font-family: Verdana, Arial, sans-serif;

    font-size: 10px;

    color: #006699;

    font-weight : bold;

    text-align: center;

    }

     

    to the page-style.

     

    Oh Carol (that song just popped into my head now) - BTW: I dig your icon - Futurama rocks!!

     

    Okay, one of your suggestions actually did the trick. I tried the style sheet thing, added the class but suddenly realised I don't know how to pull this into my code - I looked at examples and also tried to find the clues in your suggestions - nada. FYI: putting the bgcolor parameter in the <body tag didn't seem to work.

     

    BUT THIS LITTLE PIECE OF CODE YOU SUGGESTED WORKED !! - 100%

     

    in the /catalog/print_my_invoice.php file just under this piece of code...

     

    <link rel="stylesheet" type="text/css" href="stylesheet.css">

     

    ...I added.....

     

    <style type="text/css">

    body {background-color: #FFFFFF;}

    </style>

     

    Bingo.

     

    If I knew php well enough I would easily have been able to substitute the body { *stuff* } for the class I created in my stylesheet. Okay, if you insist, show us how easy it is.

     

     

    :D Thanks!! - invoice is perfect.

  20. After installing the Fancier Invoice & Packing slip contrib , I get this error message:

    Warning: main(d:/mypath/httpdocs/oscommerce/admin/includes/languages/english/invoice.php): failed to open stream: Permission denied in d:\mypath\httpdocs\oscommerce\includes\modules\email_invoice\email_invoice.php on line 30

     

    Fatal error: main(): Failed opening required 'd:/mypath/httpdocs/oscommerce/admin/includes/languages/english/invoice.php' (include_path='.;./includes;./pear') in d:\mypath\httpdocs\oscommerce\includes\modules\email_invoice\email_invoice.php on line 30

    Are my permissions possibly wrong ?

     

     

    MMMM!! - found it !! - damned permission on the invoice.php file in admin languages - I don't recall that being documented. :blush: :angry:

×
×
  • Create New...