Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

maxemus

Pioneers
  • Posts

    106
  • Joined

  • Last visited

Posts posted by maxemus

  1. Hello people. Anyone else having a problem with values?

     

    Is there a reason we can add values when adding a new option but then have to go and add them as an option after? I love it that there can be options enabled and disabled like that but kinda seems redundant when creating the option.

     

    I am using Sparx admin and noticed if your working and the login session runs out and then you try to do something the login box pops up in the middle of the screen. If you try to log in the browser will try to take you to an ajax attribute page.

     

    Thanks for everyone's work. I will try to add something to the project soon.

  2. Has anyone thought about sending the SQL to create the product along with the request for the new product page. This could potentially forgo the need to reload the saved product in order to add attributes to it.

     

    Maybe the sql could be Ajax when a product name is input.

     

    Just wondering if there is some unforeseen problems.

  3. Hello I am running 2.3.1 and getting these two errors does anyone know anything about them?

     

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\catalog\admin\attributeManager\includes\attributeManagerGeneralFunctions.inc.php on line 55

     

    Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\catalog\admin\attributeManager\includes\attributeManagerGeneralFunctions.inc.php on line 58

     

    Thank you

  4. I was going to suggest something but I see I wasn't the only one that knew that a Data base connection needed to be made. Also Should use Jquery Tabs.. I would suggest that have an option in the admin to ad a tab and be able to name it on the fly.

     

    I was working on tabs for ms2.2 I got it working well but it still needed to have some tweeks. I would have liked to change the names when adding content to them.

  5. I say too many things to worry about when doing business over facebook. I think easier to put in an explanation why they are going to the site. For security reasons.

     

    At this time I will not Do business over facebook. At least Until it has been tested for security holes.

  6. Hi Maxemus,

     

    You are absolutely right. I am thinking about this too. One thing I noticed since I have my facebook business page installed with the OsC-app is that I get a massive amount of traffic on my site by Facebook. Browser: facebookexternalhit/1.1 ( http://www.facebook.com/externalhit_uatext.php). So Facebook is checking out my site. This has most likely to do with the Like-Button installed on every product. I did that roughly the same time. Luckily enough, I have Header tags by jack_mcs installed on my real "shop", so I can give it the correct FB-own meta-properties. I am also lucky that I have square product images as Facebook only accepts those without cutting away parts of the image. Now that is nice. But the best thing is that I suddenly get found on bing which never happened before and never disturbed me before as Google has like 95% market share in Germany. So, the Facebook-Microsoft cooperation really pays off for me. That is of course probably because I have the like-button installed on every product page.

     

    But I agree with you. SEO on Facebook sucks. And it would be a good idea to have a link to the real site which boosts SEO. On the other hand I do not really want to confuse potential customers by leading them away from Facebook. I have not figured that out yet what to do. The Facebook shop does not have any SEO-boosting contributions installed like Header tags or SEO Urls. So it will probably never be found on Google. Maybe I will do that and rather have my products found on to different sites. Lots of thinking remains still to be done. :sweating:

  7. Hi Maxemus,

     

    You are absolutely right. I am thinking about this too. One thing I noticed since I have my facebook business page installed with the OsC-app is that I get a massive amount of traffic on my site by Facebook. Browser: facebookexternalhit/1.1 ( http://www.facebook.com/externalhit_uatext.php). So Facebook is checking out my site. This has most likely to do with the Like-Button installed on every product. I did that roughly the same time. Luckily enough, I have Header tags by jack_mcs installed on my real "shop", so I can give it the correct FB-own meta-properties. I am also lucky that I have square product images as Facebook only accepts those without cutting away parts of the image. Now that is nice. But the best thing is that I suddenly get found on bing which never happened before and never disturbed me before as Google has like 95% market share in Germany. So, the Facebook-Microsoft cooperation really pays off for me. That is of course probably because I have the like-button installed on every product page.

     

    But I agree with you. SEO on Facebook sucks. And it would be a good idea to have a link to the real site which boosts SEO. On the other hand I do not really want to confuse potential customers by leading them away from Facebook. I have not figured that out yet what to do. The Facebook shop does not have any SEO-boosting contributions installed like Header tags or SEO Urls. So it will probably never be found on Google. Maybe I will do that and rather have my products found on to different sites. Lots of thinking remains still to be done. :sweating:

  8. Another note on having a link out of facebook to your site is SEO. Every link out of a site that goes to your site is a small boost to your SEO. So having all these products linking to your website will theoretically boost your SEO status in Google and the like. The very least I would like a link to my sites I manage for this reason alone and not even making sales on facebook itself.

  9. Thanks Maxemus,

     

    It was really confusing me too and still is. Facebook has rolled out the new layout for fan pages on 10th of february and I upgraded to the new one immediately. Then Canvas resize stopped working. In Mozilla any longer product descriptions are cut off while on IE it shows a scrollbar. And suddenly the app is not longer called "Produkte" but "Sortiment". Some time in the past I called it Produkte and then changed it. I worked 10 hours to find out why. It is obviously a bug which has been reported by many facebook developers. So Facebook will continue to confuse us.

     

    I do not have a checkout installed because it is only used as a product catalogue. We have a busy physical agricultural warehouse and shop so this is only an add-on where I intentionally deleted the add-to-cart-button. I installed the contribution "Ask a question". That way we get in touch with customers, answer back with price and conditions and get like 1 order per day.

     

    When you install it as described you will have your checkout. Psychologically it is not a good idea to direct your customers away from one site. Probably better to do everything on facebook.

     

    Good luck.

     

    I would normally agree with you on this subject. BUT facebook being what facebook is I would have to debate against doing transactions on facebook. I will start asking people what there opinion is on this subject and so far it is one vote and one vote + my vote against doing it on facebook.

     

    If we get a hold of the code of the app we could build in the option in for transitions on facebook or jump to the site. What ever we want. could even include the facebook app in the oscommerce download we all could do a different thing if we want.

     

     

    I have been thinking on this a lot and was going to develop this myself but life kinda directed me another way.

  10. Hi npn2531, your shop is NONSSL until you get to checkout. From there you will have a problem because of the SSL. I only built one other OsC-shop with a payment module and that was clearpark which was run in an iframe. As an facebook app is running in an iframe already I don't know how this payment iframe would behave. My example shop for this add-on doesn't need a payment module. I don't see what payment modules you use for your shop. Do you have to use them with SSL? If you can use your payment modules without SSL then it should work.

     

    And, yes, it integrates my OsC into Facebook. We have over 600 products and these are all in one database and I use in both cases the same product image.

     

     

    I would like to Say very nice So far. I got very confused with trying to go through the facebook Docs in order to take it to this level.....

     

    I don't see a way to exit the facebook page and enter the site for check out with your oscommerce site. I think this should be fairly simple just creating a link on the product page linking it to the live product on your site. I am involved with another oscommerce contribution but as soon as I have time I will look at this.....

     

     

    Great Job So far.......

  11. Hi everything was good. I switched servers and now I'm getting when I try to do a manual backup in the admin section.

     

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31457825 bytes) in /home/mine/public_html/graphics/admin/backup.php on line 305

     

    I do have Auto backup installed. I think I might have had this problem when I installed Auto backup But don't remember how I fixed it.

  12. Hello

    Any one know if this is compatible with options as images and attribute sets? I have installed Options Types v2 and I'm not able to get a text box. Not able to get all the options on the Product attribute screen, Box: windows - English and Download: Windows - English wont show up in the Products Attributes are also can't find them in the database.

  13. Hello

    Any one know if this is compatible with options as images and attribute sets? I have installed Options Types v2 and I'm not able to get a text box. Not able to get all the options on the Product attribute screen, Box: windows - English and Download: Windows - English wont show up in the Products Attributes are also can't find them in the database.

  14. Hi Zappo,

     

    I have done a bit more playing around with this problem now and have come up with the following;

     

    In catalog/includes/application_top.php the instruction call for identifying the following code;

     

    case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

     

    And replacing it with the following;

     

    //BOF - Zappo - Option Types v2 - File uploading: Purge the Temporary Upload Dir
                                   $purgeDir = opendir(TMP_DIR) or die ('Could not open '.TMP_DIR);
                                   while ($file = readdir($purgeDir)) {
                                     if ($file != ('.htaccess') && $file != ('.') && $file != ('..') && filemtime(TMP_DIR . $file) < strtotime(OPTIONS_TYPE_PURGETIME)) {
                                       unlink(TMP_DIR . $file);  // Delete file from server...
                                       tep_db_query("delete from " . TABLE_FILES_UPLOADED . " where files_uploaded_name = '" . $file . "'"); // Remove File's database entry....
                                     }
                                   }
                                   closedir($purgeDir);
                                   //EOF - Zappo - Option Types v2 - File uploading: Purge the Temporary Upload Dir
    
                                   //BOF - Zappo - Option Types v2 - ONE LINE - Set real_ids for processing
                                   $real_ids = $HTTP_POST_VARS['id'];
                                   //BOF - Zappo - Option Types v2 - File uploading: save uploaded files with unique file names, in the proper folder
                                   if ($HTTP_POST_VARS['number_of_uploads'] > 0) {
                                     require(DIR_WS_CLASSES . 'upload.php');
                                     for ($i = 1; $i <= $HTTP_POST_VARS['number_of_uploads']; $i++) {
                                       $TEMP_FILE = $_FILES['id']['tmp_name'][TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]];
                                       if (tep_not_null($TEMP_FILE) && $TEMP_FILE != 'none') {
                                         $products_options_file = new upload('id');
                                         //BOF - Zappo - Option Types v2 - Set Upload directory (Registered customers in Uploads, other in Temporary folder)
                                         if (tep_session_is_registered('customer_id')) {  // IF the customer is registered, use Upload Dir
                                           $products_options_file->set_destination(UPL_DIR);
                                         } else { // If the customer is not registered, use Temporary Dir
                                           $products_options_file->set_destination(TMP_DIR);
                                         }
                                         //EOF - Zappo - Option Types v2 - Set Upload directory (Registered customers in Uploads, other in Temporary folder)
                                         if ($products_options_file->parse(TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i])) {
                                           if (tep_session_is_registered('customer_id')) {
                                             tep_db_query("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name, date) values('" . tep_session_id() . "', '" . $customer_id . "', '" . tep_db_input($products_options_file->filename) . "', '" . date("d-m-y") . "')");
                                           } else {
                                             tep_db_query("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name, date) values('" . tep_session_id() . "', '" . tep_db_input($products_options_file->filename) . "', '" . date("d-m-y") . "')");
                                           }
                                           //BOF - Zappo - Option Types v2 - Set File Prefix
                                           if (OPTIONS_TYPE_FILEPREFIX == 'Database') {  //  Database ID as File prefix
                                             $insert_id = tep_db_insert_id() . '_';
                                           } else {  //  Date, time or both as File prefix (Change date formatting here)
                                             if (OPTIONS_TYPE_FILEPREFIX == 'Date' || OPTIONS_TYPE_FILEPREFIX == 'DateTime') {
                                               $insert_id = 'D'.date("d-m-y_");
                                             }
                                             $insert_id .= (OPTIONS_TYPE_FILEPREFIX == 'DateTime' || OPTIONS_TYPE_FILEPREFIX == 'Time') ? 'T'.date("H-i_") : '';
                                           }
                                           //EOF - Zappo - Option Types v2 - Set File Prefix
                                           // Update filename in Database with correct prefix (For comparing database names with real files)
                                           tep_db_query("update " . TABLE_FILES_UPLOADED . " set files_uploaded_name = '" . tep_db_input($insert_id . $products_options_file->filename) . "' where sesskey = '" . tep_session_id() . "' and files_uploaded_name = '" . tep_db_input($products_options_file->filename) . "' and date = '" . date("d-m-y") . "'");
                                           $real_ids[TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]] = $insert_id . $products_options_file->filename;
                                           $products_options_file->set_filename($insert_id . $products_options_file->filename);
                                           if (!($products_options_file->save())) {
                                             break 2;
                                           }
                                         } else {
                                           break 2;
                                         }
                                       } else { // No file uploaded -- use previously uploaded file (From Dropdown)
                                         $real_ids[TEXT_PREFIX . $HTTP_POST_VARS[uPLOAD_PREFIX . $i]] = $HTTP_POST_VARS[TEXT_PREFIX . UPLOAD_PREFIX . $i];
                                       }
                                     }
                                   }
                                   //EOF - Zappo - Option Types v2 - File uploading: save uploaded files with unique file names, in the proper folder
                                   //BOF - Zappo - Option Types v2 - ONE LINE - Replace the posted array with the processed one.
                                   $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $real_ids))+1, $real_ids);

     

     

    If I leave the original code in place, the add to cart button works fine and the product is added to the cart, if however, I replace it with the Option Types V2 code, in its raw form I get an error in application_top.php as follows;

     

    Parse error: syntax error, unexpected T_CASE in /homepages/0/d177551101/htdocs/pmashop/includes/application_top.php on line 444

     

    This relates to what looks like an eronious } two lines below the original code, this is how the code looked before the update;

     

    // customer adds a product from the products page

    case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

    $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

     

     

    }

    tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

    break;

     

    The parenthesis that causes the problems when the new code is applied is the one in bold above.

     

    Any advice you can give me would be much appreciated!

     

    Cheers,

    Peter.

     

     

    Hi Peter did you find an answer for this I am having the same problem.

     

    Thanks Raphael

×
×
  • Create New...