Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

  • Days Won


motorcity last won the day on January 1 2013

motorcity had the most liked content!


Profile Information

Recent Profile Visitors

19,822 profile views
  1. Hey Jared, good to see you. I did load up the new files and I'd say they look pretty jazzy. (That's good in my book!) Like I said I'll try to help here where I can. Like you, I'm coming up on a huge change in my activities profession-wise and the future is somewhat unknown right now. Best of luck in all you do. Move forward. Relentlessly positive. ~Motorcity
  2. @@kymation My guess is that Jared (jcall) didn't have all that much time to set this up as a free contribution and then test it much. Keep in mind I didn't post this contrib and I'm not using this code. I am a long time user of a prior version however and I'm hoping to help support this effort where I can. There's a few things that could be done differently including as you said, "A polite reminder message would be nice". Also maybe an install instruction at least, or make the default email addy the same as the store email. @@BrockleyJohn Thanks alot for your help John. I came across some white space as well. Hopefully I'll have some time to go over some of this and make changes where needed so it's a better product for those who are interested. ~Motorcity
  3. Hey John, Jim, what you posted does fix the problem however the same "headers already sent...." follow the user around if they don't log in. index.php header.php custom_header.php and login.php have the same basic problem unless you login. Considering what this contribution is supposed to do (allow in-store sales from your oscommerce database), it makes little sense to operate without being logged in.
  4. It appears the problem has to do with logging in or being logged in. The install writes several new database tables including pos_users. Go there and change the email address to your email address then click on the forgotpass utility, get a new password, and that seems to clear the whole problem. I could have missed (skipped), some steps in the install process so if anyone else is trying this please report your results here.
  5. @@paoraosc You're right Parora. There is problem here that nobody has figured out yet. I downloaded and installed this and I'm getting similar results to yours. ~Motorcity
  6. <?php // includes/custom_header.php /* This file is designed for your store logo or whatever else you'd like at the top of the POS page. This is your custom POS header file. */ ?> <table cellspacing="2" width="100%"><tr> <td width="80%" align="left"><a href="index.php"><img src="images/<?php echo APPLICATION_LOGO_IMAGE; ?>" height=62px alt="OllaCart Point of Sale" title="OllaCart Point of Sale" border="0"></a></td> <td align="right"> <?php if (!strstr($_SERVER["PHP_SELF"], 'login.php') && !strstr($_SERVER["PHP_SELF"], 'forgotpass.php')) { if($session->logged_in) { echo '<b>' . LOGGED_IN_AS . ' ' . $session->username . '</b><br>'; echo '<a href="useredit.php"> ' . USER_PANEL . '</a> '; if($session->isAdmin()) { echo '<a href="admin/admin.php"> ' . ADMIN_PANEL . '</a> '; } echo '<a href="process.php"> ' . LOGOUT . '</a> '; } else { echo '<a href="login.php"> ' . LOGIN . '</a> '; } } ?> </td> </tr></table> <table width="100%" height="1" border="0" cellpadding="0" cellspacing="0"> <tr><td style="background-color: #606060;" width="100%" height="1"></td></tr> </table> Posted above is the entire file named /includes/custom_header.php Line 2 is just the name of the file and should remain commented out. The whole purpose of this file was to give the user a way to put his store or operation name in the header, therefore it's displayed on every page in Olla cart. The original propriatory header was not accessable (edit-able) to the end user.
  7. @@paoraosc Have you tried clearing your cookies? @@jcall Thanks for this and all the years we've been using Ollacart.
  8. motorcity

    Multi_Vendor for bootstrap version

    Let’s take a look at the score. These are the public side files that need to get a good bootstrapping. Please note; all of my testing is being done in PHP 5.2.9 and Mozilla Firefox and Android Chrome. All of these files are being developed in the hope of releasing this as a generic addon to Multi Vendor Shipping so nothing is being changed that differs from osc2.3.4 or Gary's Responsive Bootstrapped Gold version so merging files is as easy as possible. Anyone who would like to help or just test is welcome. account_history_info BS ok 4/18 however, if an order has multiple shipments numbers (vendors) that table doesn’t BS well. (Standard osc just calls it combined shipping in the order listing, then offers a separate box called shipping method again saying ‘combined shipping’ but not clickable.) checkout_confirmation BS looks ok 4/19 checkout_payment BS looks ok 4/19 checkout_process Not sure how to get there to test it. checkout_shipping Worked over 4/18/15 BS this is close. Needs to work with includes/modules/vendor_shipping. product_info BS is ok products_ship_estimator Doesn’t work in BS ship_estimator Doesn’t work in BS shopping_cart BS is ok includes/modules/vendor_shipping This is where checkout_shipping gets it’s selector by product, by vendor, choose the shipping option. It’s been kicking my butt! I’ve had it where if multiple products with different shipping vendors you can’t change the selection like UPS ground or next day, you only get the cheapest UPS. No changing the option on that method. To more recently where the above is solved but, selecting an option on one product deselects the option for a different product. IE you can't select option by product. Anyways, I'll be back at it in the morning. Here's the module code; <?php /* $Id: vendor_shipping.php,v 1.0 2005/03/29 kymation Exp $ $Loc: catalog/includes/modules/ $Mod: MVS V1.3 20120205 Kymation $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2005 osCommerce Released under the GNU General Public License */ $vendor_shipping = $cart->vendor_shipping(); //Display a notice if we are shipping by multiple methods if (count ($vendor_shipping) > 1) { ?> <div class="alert alert-warning"> <?php echo TEXT_MULTIPLE_SHIPPING_METHODS; ?> </div> <?php } //Draw a selection box for each shipping_method foreach ($vendor_shipping as $vendor_id => $vendor_data) { $total_weight = $vendor_data['weight']; $shipping_weight = $total_weight; $cost = $vendor_data['cost']; $ship_tax = $shipping_tax; //for taxes $total_count = $vendor_data['qty']; // Much of the code from the top of the main page has been moved here, since // it has to be executed for each vendor if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) { $pass = false; switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) { $pass = true; } break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) { $pass = true; } break; case 'both': $pass = true; break; } $free_shipping = false; if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $free_shipping = true; include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); } } else { $free_shipping = false; } //print "<br>Vendor_id in Shipping: " . $vendor_id; //Get the quotes array $quotes = $shipping_modules->quote('', '', $vendor_id); // Free shipping start // See if free.php is amoung them for ($i=0, $n=count($quotes); $i<$n; $i++) { if ( ( ($quotes[$i]['id']) == 'free' ) && ($order->info['total'] >= $quotes[$i]['minpurchase']) ){ $free_shipping = true; $minpurchase = $quotes[$i]['minpurchase']; } } // Free shipping end // if no shipping method has been selected, automatically select the cheapest method. // if the modules status was changed when none were available, to save on implementing // a javascript force-selection method, also automatically select the cheapest shipping // method if more than one module is now enabled if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest($vendor_id); ?> <div class="contentText"><!--top div --> <div class="ui-widget-content infoBoxContents"> <table border="0" width="100%" cellspacing="0" cellpadding="2"><!--top table --> <tr><!--same as jims abandoned tr --> <td><table border=0 width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"><b><?php echo TEXT_PRODUCTS; ?></b></td> <td class="main" width="50%" valign="top"> </td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php $products_ids = $vendor_data['products_id']; foreach ($products_ids as $product_id) { $products_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$languages_id . "'" ); $products = tep_db_fetch_array($products_query); ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"> <?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); echo $products['products_name']; ?> </td> <td class="main" width="50%" valign="top" align="right"><?php ; ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php }//foreach ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if (count($quotes) > 1) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td> <td class="main" width="50%" valign="top" align="right"><?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } elseif ($free_shipping == false) { // the following is copied from checkout_shipping ResponsiveBS all free shipping to line 165 4/19/15 ?> <tr> <div class="contentText"> <div class="alert alert-info"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></div> </div> <?php } ?> <!-- <div class="contentText"> <table class="table table-striped table-condensed table-hover"> <tbody> --> </tr> <?php if ($free_shipping == true) { ?> <tr> <div class="contentText"> <div class="panel panel-success"> <div class="panel-heading"><strong><?php echo FREE_SHIPPING_TITLE; ?></strong> <?php echo $quotes[$i]['icon']; ?></div> <div class="panel-body"> <?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?> </div> </div> </div> </tr> <?php //eof copy ?> <?php } else { $radio_buttons = 0; for ($i=0, $n=count($quotes); $i<$n; $i++) { ?> <tr> <!--same as jims --> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td colspan="2"><table class="table table-striped table-condensed table-hover"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php if (isset($quotes[$i]['error'])) { ?> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { // set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false); // Start Javascript patch if ( ($checked == true) || ($n == 1 && $n2 == 1) ) { echo ' <tr id="defaultSelected_' . $vendor_id . '_' . $radio_buttons . '" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ', ' . $vendor_id .')">' . "\n"; } else { echo ' <tr id="defaultSelected_' . $vendor_id . '_' . $radio_buttons . '" class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ', ' . $vendor_id . ')">' . "\n"; } // End Javascript patch $shipping_actual_tax = $quotes[$i]['tax'] / 100; $shipping_tax = $shipping_actual_tax * $quotes[$i]['methods'][$j]['cost']; ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td class="main"><?php echo $currencies->format($quotes[$i]['methods'][$j]['cost']); ?></td> <td class="main" align="right"> <?php // Javascript patch echo tep_draw_radio_field('shipping_' . $vendor_id, $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] . '_' . $shipping_tax, $checked, 'id="shipping_radio_' . $radio_buttons . '_' . $vendor_id . '"'); echo tep_draw_hidden_field('products_' . $vendor_id, implode("_", $products_ids)); ?> </td> <?php } else { ?> <td class="main" align="right" colspan="2"><?php echo $currencies->format($quotes[$i]['methods'][$j]['cost']) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] . '_' . $shipping_tax); ?></td> <td class="main" align="right"> <?php echo tep_draw_hidden_field('shipping_' . $vendor_id, $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] . '_' . $shipping_tax); echo tep_draw_hidden_field('products_' . $vendor_id, implode("_", $products_ids)); ?> </td> <?php } ?> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php $radio_buttons++; } } ?> </table></td> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> <?php } //count quotes } ?> </table></td> </tr> <!-- </tbody> </table> </div> --> </table> </div> </div> <!--line 87 --> <?php } ?>
  9. motorcity

    Multi_Vendor for bootstrap version

    @@drillsar @@tmccaff @@dspeak @@opus_uno2001 @@Peace2u @@kushol @—luke— @@nepm Begging your pardon if this annoys anyone, I got the impression you are all interested in upgrading Multi Vendor Shipping to a osc 2.3.4 Bootstrap compatible version. I'm a store owner running MVS (currently 2.2RC2A) for many years now. I'm not a coder, but I am determined. So far my test install of MVS on BS works pretty well except for the shipping estimators; you can see kymation's reply http://forums.oscommerce.com/topic/101973-multi-vendor-shipping-new-thread/page-246 I'm hoping there is some chance of us working together. I don't have a test website set up that is accessible to the public but I'm willing to share that and possibly open the code up on github if there's some interest. Thanks for listening. ~motorcity
  10. motorcity

    Multi_Vendor_Shipping new thread

    To anyone following along now or later I suspect Jim already knew this, but my post 4910 above was misleading at best. Sorry! I ran out of time to edit the post, and what I said doesn't come close to fixing the estimator. @@kymation Jim, the code you gave out for checkout_shipping is fine on my android. I'm not sure how you feel about that file but it does share much of what the shipping estimator displays, already bootstrapped! Wouldn't that be a good starting point, possibly combined or inspired by the html of Shipping Quote in Cart that I linked to above? As always, thanks for the honest answers and taking the time. ~motorcity @@drillsar Are you still working on MVS bootstrap? I know you covered some of the same ground.
  11. I installed the Bootstrap version of this without any problems. Thanks again to Tsimi. We've always had a shipping estimator on both the product and shopping cart page so I took a stab at making this work there as well. It works with one minor exception, it doesn't bring the product price into the quote. It seems to me like that might not be all that hard to do considering we know the product already. There's no quantity (or taxes) because there's nothing in the cart yet. product_info.php
  12. motorcity

    Multi_Vendor_Shipping new thread

    I'm probably wrong, but the thinking is to keep most of the MVS code in place and just figure out how the new one is bootstrapping where the mvs one doesn't. Switch a bunch of <td class="infoBoxContents"> to stuff like <td class="col-xs-1" class="text-right" style="margin-left:5px;"> I'm either seeing this with rosey colored glasses, or they simply need a good cleaning.
  13. motorcity

    Multi_Vendor_Shipping new thread

    @@Tsimi Thank you. This looks like the answer. Works well on android and is a better looking popup anyway. Only thing; it's not made for product_info, just shopping_cart. I'm going to try putting it on the product page as well as testing it with MVS http://forums.oscommerce.com/topic/396632-shipping-quote-in-cart-2334-support-thread/#entry1707594
  14. motorcity

    Multi_Vendor_Shipping new thread

    I've been trying to get the products_ship_estimator to work in 234Bootstrap and all is well except the popup itself. The text on a small device is way too small. BS doesn't have the bxgallery, but I'm not sure how to reference this correctly. If I comment this whole section out and use my //require(DIR_WS_INCLUDES . 'template_top.php' (bottom of the following) it then shows almost perfect text for small devices. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <?php echo $oscTemplate->getBlocks('header_tags'); ?> <script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script> </head> <body> <?php //require(DIR_WS_INCLUDES . 'template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1>
  15. motorcity

    Store Hotline BS

    Took a look at this from your test site with my android and it works just fine. Great idea BTW ~motorcity