Jump to content

Ben Nevis

  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ben Nevis

  1. Ben Nevis

    How long until v3 is ready?

    That might be what it says but the consensus of opinion here is that it isn't ready for a live store unless maybe you are an experienced php programmer willing to find and fix bugs, apply many updates as it proceeds through development, and modify the contributions you need to run your store to work with it, of which there are very few at present. Anyone else shouldn't even think about it, IMO.
  2. Ben Nevis

    OsCommerce Download Feature

    Normally if you have things set up correctly anything to do with shipping should be skipped anyway in the case that the shopping basket contains only downloadables. They wouldn't choose a shipping address outside the EU if they have a mixed basket of physical and virtual goods presumably, as they either wouldn't receive their physical goods or else the non-payment of tax would be justified. So I can't quite see why it's a problem. How do you have your store set up to decide whether to add tax or not based on the shipping address, and is the shipping screen still coming up when the customer has only downloadables in their basket?
  3. Ben Nevis

    Flat Rate shipping zones

    It's easy to set up three different flat-rate modules - look at the different multiple flat rate modules here, the trick would be to ensure your customers can only choose the correct one for where they live...
  4. Ben Nevis

    How do I write a module?

    There are no such general instructions that I am aware of. There is no API for custom modules to hook into. Addons don't necessarily work with each other. Logic and display functions are mixed within the same files. etc etc You just have to wade in, learn the structure of osc and how it all fits together by reading the code, browsing directories, inspecting functions and classes, seeing which other files are required within a script and reading them too etc. You don't need to worry about getting things wrong or breaking things if you back up a script before you change it. If it works then the change might be right, as long as it didn't break anything else or introduce a vulnerability. Before trying to write a new module best is to search existing addons to see if there's one that does what you want, or is maybe close to doing what you want that could be modified rather than writing one from scratch. It should also give you an idea of the code changes needed, which files will be affected etc. As Chris says, if you want to work on a new shipping template you can start by looking at an existing one and using it as a template - and the documentation refered to by Jan :)
  5. Ben Nevis

    [contribution] Super Download Store

    The format issue isn't something that SDS is concerned with, that is a product issue. You can create a product with three different attributes, and specify a different file or files to download for each product/attribute combination.
  6. Ben Nevis

    Digital Download Code generation?

    osc can handle downloadable products. I would suggest using the Super Download Store contribution to handle the download side of things, as it will allow you to create group file downloads and use subdirectories in the downloads folder, which is helpful in keeping things organised and splitting what would otherwise be quite large download files into smaller sections. Neither SDS nor osc without it offer any code for downloading but none is needed, when set up correctly a customer needs to be logged into their account to get the download and you can limit the number of days and number of times the download can be available for - they are not given a 'download link' that could be distributed to all and sundry. You could then just create a 'product' consisting of an album+mp3 as a set. A little sleight of hand might be necessary over shipping as osc will normally skip shipping for virtual products, and downloads won't be available if the product is not set as virtual, but this shouldn't be impossible to overcome. Then the mp3 files would available for download when they purchase that product and the vinyl can be sent to them in the normal way. Alternatively rather than practicing some sleight of hand with a product that is both virtual and physical I think there are probably addons for handling linked products, so you could keep the album and mp3 files as separate but linked products with one price.
  7. Ben Nevis


    Hmmm, well that may be too much information. You'd better implement the security measures required to secure osc double quick, or you'll have more to worry about than missing payment modules. check your configure.php files to make sure the FS and WS paths are all correctly specified for your new site.
  8. Ben Nevis


    Well, can you confirm that you do have files with names like cc.php, cod.php, paypay_standard.php, etc in the includes/modules/payment directory on the catalog side of your store? Did you do anything to the store before they 'disappeared', if so what? Does anything else seem to be wrong or unusual with your store? When you say they have disappeared, do you mean that when you place an order no payment options are offered, or do you mean that when you log in to the modules/payment option on the admin menu no payment modules are listed (or both)? Which payment module(s) were you using? If you want any more help you will need to give more information about the problem - what the symptoms are, what you have done, where the error is occuring, the text of any error message displayed, etc.
  9. Ben Nevis


    The payment modules are a number of different scripts for each payment method that should be in the includes/modules/payment directory of your store. When you upload them by ftp they should be uploaded in ascii format. If they are there and you still can't see them or 'install' ie activate them and provided any required configuration details, when you log in to the admin section of your store, then something else is wrong.
  10. Ben Nevis


    Download the osc install file and just copy the relevant scripts to the includes/modules/payment directory.. Of course they didn't just disappear by themselves, so you might want to try and figure what you or anyone else did that made them disappear...
  11. You can set the order status differently for different payment modules. You can have a status of 'delivered' for modules providing instant payment confirmation when checkout completes, while having a different status for those where payment may need to be manually approved.
  12. Ben Nevis

    Need a little code help combing 2 contribs

    Ok, well tell us the full error message you got and copy the exact code of the relevant lines from your file into your message.
  13. Ben Nevis

    Need a little code help combing 2 contribs

    Perhaps you made a mistake in where or how you added the extra image fields to the query? I can't see why this wouldn't work: // begin Product Extra Fields $query = "select p.products_id,pd.products_name, pd.products_description, p.products_model,p.products_quantity, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id"; foreach ($epf as $e) { $query .= ", pd." . $e['field']; } $query .= " from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"; $product_info_query = tep_db_query($query); // end Product Extra Fields Of course, modifying that particular query isn't the only thing that would need to be done and you would have to be sure any error message was refering to the query.
  14. I suppose it should be possible to modify the code in the per item shipping module to apply a different price depending on the number of items - it uses a count of them anyway so you could just use conditional statements and a change in the formula based on the count, but you'd have to hard code the changes in prices into the module, unless you also want to make changes to the information it displays and allows you to input in admin and store in the database.
  15. Ben Nevis

    Electronic Delivery Shipping Option

    Here are all the steps you need to do to set up downloads. If you've done everything then the most likely causes would either be making a mistake with the filename or putting it in a directory other than the one speoified as the download directory in the configuration settings - ie. osc can't find it, or else the order status you set doesn't allow download. The download link is not sent in the confirmation email, it only shows in account history when you view the order details (or immediately after purchase if the purchase order status is sufficient to make the download available).
  16. osc does have ability to handle downloadable files. You can make a product downloadable by entering the file name in the product attribute section of admin. I don't think the built-in procedure restricts the number of days/times it can be downloaded for, but this functionality is certainly there with the Super Download Store addon contribution - see link in my sig. SDS has several advantages over the standard built in download handling.
  17. Ben Nevis

    [contribution] Super Download Store

    The installation instructions are included in the contribution. The procedure is: 1) Download it 2) Read the included instructions 3) Start from step 1, then do step 2, etc. 4) If you don't understand some particular part of any step, ask specifically about what it is you don't understand.
  18. Ben Nevis

    Electronic Delivery Shipping Option

    The downloadable attribute is set in product attributes. Super Download Store is an addon which enhances the built-in feature in several useful ways. Things can be set up so that download links are available automatically when payment completes.
  19. Ben Nevis

    Customer Specific Pricing

    http://www.oscommerce.com/community/contributions or http://addons.oscommerce.com/
  20. Ben Nevis

    Customer Specific Pricing

    Did you look before you asked? Try searching the contributions for "separate pricing per customer" or "SPPC"
  21. Which shipping module? The table rate module has options for being price-based or weight-based
  22. Ben Nevis

    Download shop - invoice numbers

    I don't think there is a ready-made contribution that will do what you want. Have you looked at the order number contributions that exist to see whether their method of handling alternative order numbers could be changed to meet your requirements? For example, there's one that generates order numbers based on a timestamp and one that generates a scrambled letter/number combination. Perhaps sequential numbering based on a table to store the 'next number' could be substituted for their numbering algorithm, while using the other parts of the module to put the new numbers on invoices/confirmation letters etc? I don't know if either of them only generate the number for completed orders, but if not I wouldn't expect it to be too difficult to make the issuing of a number conditional on the order reaching a certain status where payment has completed, provided osc can maintain its own internal order ID for uniquely tracking both the completed and pending orders.
  23. Ben Nevis

    Download shop - invoice numbers

    Just to clarify the question, are you looking for something that will provide sequential invoice numbering on a per customer basis - ie each customer has to have invoices with numbers that go 1, 2, 3, etc., or does each invoice your store issues have to have a number one higher than the previous one (regardless of who the customer was), and that these invoice numbers should not be issued for uncompleted orders?
  24. Ben Nevis

    Add comments per product ordered

    This addon will do what you want http://addons.oscommerce.com/info/6818 and has other features too.
  25. Ben Nevis

    oscommerce admin tool

    SDS offers additional functionality to the built-in module. Even the built-in module though does allow the customer to download the product only after payment. You should not need to email the product to the customer - in which case of course it is not a download so calling it one would be meaningless. Probably you have an order status set that allows downloads before confirmation of payment. Downloads should not be allowed except at a payment confirmed status. For instructions on using the built-in feature, see http://forums.oscommerce.com/topic/236224-oscommerce-download-feature Edit: Oh, now I see you found your way to that thread and commented about setting the pending order status to allow downloads. You don't want that if the reason for 'pending' is that payment hasn't been confirmed. If you want a customer to have instant access to their downloads only after payment is confirmed you will have to use payment methods that can be instantly confirmed. Otherwise don't let them have instant access to their downloads by setting the order status for a module at a status that doesn't allow downloads. They will then have access to their downloads through their account when you change the order status to one allowing downloads after you have confirmed the payment.