Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ecartz

♥Ambassador
  • Posts

    3,864
  • Joined

  • Last visited

  • Days Won

    69

Posts posted by ecartz

  1. What do the changes in includes/application_top.php look like in your store? You basically need to change the filename to match the attribute value (it is actually looking for "12. image.ext" rather than the original image.ext name). You should be able to set them to match in includes/application_top.php. The only thing that might concern me is the space between 12. and image.ext. Some filesystems can be goofy about spaces.

     

    Hth,

    Matt

  2. You would make the changes in the .htaccess file in images/upload (to allow images to be viewed), the shopping_cart.php file (to display the image), and possibly includes/application_top.php (you need to save the extension so the browser knows how to display the image).

     

    Make sure that you have the includes/classes/upload.php file set to restrict uploads to image extensions as well. Wouldn't want someone to access a PHP file that they uploaded.

     

    Hth,

    Matt

  3. Does anyone know if you can have non-unique product_models or some other way around my problem?
    No, you can't. Easy Populate uses the products_model to determine which product you are currently uploading. Duplicate products_model values will cause the later products to overwrite the earlier ones. You may want to look into adding a meaningless string to all your part numbers, i.e. something like -0 for unique products, -1 for the second occurrence, etc.

     

    Another alternative would be to rewrite EasyPopulate, but you will probably find it easier to add the string unless you are relatively proficient with PHP/MySQL (or hire someone who is). If you do decide to modify EP, I would suggest adding more category fields (to add the second category path) rather than trying to make the products_model field non-unique.

     

    Hth,

    Matt

  4. I have access to the email used for that, and I never got an email looking like the one I got, as the store owner. Is there a setting for this also?
    This is usually a sign that the mail server isn't configured to send email from your store, just to your email address. Adding one of the following commands to the top of includes/classes/email.php may help:
    ini_set('sendmail_from', STORE_OWNER_EMAIL_ADDRESS);

    ini_set('sendmail_path', '/usr/bin/sendmail -t -i -f ' . STORE_OWNER_EMAIL_ADDRESS);

    Otherwise, check with your host to see if they can find a way to do this.

     

    Hth,

    Matt

  5. In regard to the above comment of changing the checkout_process the PayPal_Shopping_Cart_IPN contrib only 'adds' one line of code to that file and does not change anything else, this is the transaction id number inserted with the rest of the info into the orders table.
    I think that the IPN module would be better suited to the current needs of people like wizardsandwars (who uses PayPal with other payment methods) if it was purely a drop in. To make it like this on the catalog side, one would simply not change checkout_process at all and change includes/modules/payment/paypal.php (around lines 132-4) from
        function after_process() {
         return false;
       }

    to

        function after_process() {
         global $insert_id, $order;
         tep_db_query("update " . TABLE_ORDERS . " set paypal_ipn_id = '" . (int)$order->paypal_ipn_id . "' where orders_id = '" . (int)$insert_id . "'");
         return false;
       }

    Ideally (IMO), one would get rid of even that much and just use the traditional osCommerce tables to store the PayPal info. More consistent interface that way. Also would simplify the admin part of the contribution.

     

    You could then have a separate contribution which would do the post shipping checkout details on the PayPal side (or possibly even including shipping--difficult to operate complex shipping methods that way though). This would be for use of shops that only use the PayPal.

     

    It seems to me that the current IPN contribution sort of straddles the two alternatives: too much to just be a drop in; not enough to be a replacement solution. YMMV.

     

    My $.02,

    Matt

  6. There are instructions for that somewhere (maybe in the HTML file that comes with the distribution? I remember writing them...). Basically, you change the code in includes/application_top.php to save the file as something like 1-imagename.ext rather than 1 (where 1 is the files_uploaded_id). You want to leave the files_uploaded_id so that you don't get conflicts between different images that happen to have the same name (the original version of the contribution overwrote the images in that case).

     

    Hth,

    Matt

  7. and then around line 50 change the line that reads

            $categories_string .= ' (' . $products_in_category . ')';

    to

            $categories_string .= '';

    Setting admin > Configuration > My Store > Display Product Counts to false would have the same effect and is more efficient (product counts are hard on the database in larger stores).

     

    Hth,

    Matt

  8. I presume the "duplicate" method will create duplicated and hence new stock levels, or do duplicate stock items refer back to a single stock level data?
    Yes, each duplicate product will have its own stock level (even though they may represent the same product). Linked products share stock levels but won't work for this, as they would also share masters. Matti already suggested that this might change in the future (i.e. that he might make a version that allowed a slave to actually have two or more masters; this would require another database table). In the meantime, the duplicate method will work (albeit clunkily).

     

    Hth,

    Matt

  9. Hello,

     

    You can't use PHP in the STS template file; it doesn't get read that way. If you want to do something like that, you would be better off with the BTS or just editing the files without a template system. In this case though, I don't think that you need to put the code there. Just make a new box that holds the link that you want and put the code in the box. I suspect that you can find an example of this in the main STS support thread.

     

    Hth,

    Matt

  10. Even if you want to implement it yourself (for example, if you are maintaining your own server or you are a host), I would use squirrelmail or something like that (there might be a PHP equivalent) to do the webmail. Then if you wanted to make the glue into a contribution, that would be cool. The new login/session classes might be useful here, so you might want to build it off an MS3 snapshot.

     

    Hth,

    Matt

  11. In the most current version, I would try changing (around line 50 of includes/modules/payment/ccavenue.php):

      $Amount = $order->info['total'];

    to

      $Amount = $currencies->format($order->info['total'], true, 'RUP');

    Note: you may have to replace 'RUP' with the appropriate three letter code for Indian Rupees. I am not familiar with that currency, so I am not sure of the code. You also might have to add logic to strip out the currency symbol from this.

     

    If that doesn't work for you, you could try looking at the currencies class directly and figuring the value using a variant of the code there.

     

    Hth,

    Matt

  12. The next version is supposed to support attributes IIRC (read through this thread and the Announcements thread to see what I saw). In the meantime, if you are only selling downloadable CDs (i.e. all your products are Master CDs and Slave tracks), then you could fudge the code to treat all the products as downloadable.

     

    Hth,

    Matt

×
×
  • Create New...