-
Posts
563 -
Joined
-
Last visited
-
Days Won
9
Everything posted by Omar_one
-
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
@raiwa I just download it from GitHub and everything work well, now the email sent. -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
@raiwa that case was when I edited the customers_points.php as @LeeFoster said. I re-upload the old file and its working now -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
another bug when I delete some points, in the shop side show that the costumer don't have points but in the in admin side show the right points with wrong Expire date -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
with adding and with removing the points also -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
Hello. When I adding points to some customer and check the (Notify Customer) check-box. the points added, but the customer didn't got any email! Omar -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
I added my point link to account drop menu by : in includes/modules/navbar_modules/templates/account.php adding this <li><?php echo '<a href="' . tep_href_link('my_points.php', '', 'SSL') . '">' . MODULE_NAVBAR_MYPOINT . '</a>'; ?></li> and adding this define('MODULE_NAVBAR_MYPOINT', 'My Point'); in includes/languages/english/modules/navbar_modules/nb_account.php I created navbar module (just a link to my_points.php) also but I think the right place for the link in the account drop menu Omar -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
I think it will be good that when Confirming Pending Points it will inform customer about the point and the points amount -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
What about to show to the customer how many point he have .. example in the account.php -
Converting Points and Rewards system for osC BS
Omar_one replied to Tsimi's topic in Add-Ons Development
Hello guys, thank you for the addon and for team work . I am testing right now, I think there is small editing on the checkout_payment.php i change this <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> to this <?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?> Omar -
Hello, @@joe122joe did you found out how to fix it? I Would like to use this addon with Discount Codes BS, Omar
-
OllaCart Point of Sale for osCommerce - ocPOS
Omar_one replied to a topic in General Add-Ons Support
@@frankl I made some editing and now it will show products image on the products list when you search for product. product.php <?php // product.php include("includes/db.php"); include("includes/functions.php"); include("includes/session.php"); LoadLangFiles($lang); // check if valid login session, else require login $session->logged_in = $session->checkLogin(); if(!$session->logged_in) { header('Location: login.php'); } $Q_Product = mysql_query("SELECT p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, " . "pd.products_name, pd.products_description, s.specials_new_products_price, s.expires_date, s.status, " . "if ((s.specials_new_products_price is not NULL), s.specials_new_products_price, p.products_price) as sales_price " . "FROM " . PRODUCTS . " p left join ". SPECIALS ." s on (p.products_id=s.products_id), " . PRODUCTS_DESCRIPTION . " pd " . "WHERE (p.products_id = '" . $_REQUEST['ProductID'] . "' AND " . "pd.products_id = p.products_id ) " . "AND pd.language_id = $language_id " . "LIMIT 1"); if(mysql_num_rows($Q_Product)){ $R_Product = mysql_fetch_assoc($Q_Product); }else{ header("Location: index.php?error=no_product_found"); } // -- Load all options // -- Load available options for this product if (use_attribs()) { $R_product_attribs = new attributes($_REQUEST['ProductID'],$language_id); } //get the total number of product options, so we know how many possible options can be on a product page $option_count_query = mysql_query("SELECT count(*) as total from " . PRODUCTS_OPTIONS); $option_count_results = mysql_fetch_assoc($option_count_query); $option_count = $option_count_results['total']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <link rel="icon" href="favicon.ico"> <title><?php echo($POSName) . ': ' . TITLE; ?></title> <!-- Bootstrap core CSS --> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet"> <link href="user.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="jumbotron-narrow.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <?php // -- Load product page javascript if (use_attribs()) { $R_product_attribs->product_page_js(); } ?> </head> <!-- javascript function to recalculate price and quantity on page load --> <body> <div class="container"> <?php include("includes/header.php"); ?> <div class="row marketing"> <div class="alert alert-info text-center"> <h3><?php echo PRODUCT_INFO; ?><?php echo($R_Product['products_name']); ?></h3> </div> <table class="table table-condensed table-striped table-hover"> <tr> <td width="20%" class="tdBlue"><b><?php echo PRODUCT_MODEL; ?></b></td> <td width="80%"><?php echo($R_Product['products_model']); ?></td> </tr> <tr> <td width="20%"><b><?PHP echo PRICE; ?></b></td> <td width="80%" id="product_price_display"> <?php // Store base product price for automated adjustments // ---------------------------- $product_final_price = $R_Product['products_price']; if (($R_Product['specials_new_products_price'] != NULL) && ($R_Product['status'] == '1') && ($R_Product['expires_date'] >= date("Y-m-d") || (substr($R_Product['expires_date'],0,10) == '0000-00-00') || (is_null($R_Product['expires_date']) ) ) ) { if (IN_STORE_PRICING == 1) { $R_Product['specials_new_products_price'] += ($R_Product['specials_new_products_price'] * IN_STORE_SURCHARGE); } echo $default_currency_symbol . "<s>".(number_format($R_Product['products_price'], 2, '.', ''))."</s> <span class='productSpecialPrice'>".(number_format($R_Product['specials_new_products_price'], 2, '.', ''))."</span>"; $product_final_price = $R_Product['specials_new_products_price']; } else { if (IN_STORE_PRICING == 1) { $R_Product['products_price'] += ($R_Product['products_price'] * IN_STORE_SURCHARGE); } echo $default_currency_symbol . (number_format($R_Product['products_price'], 2, '.', '')); } ?> </td> </tr> <tr> <td width="20%"><b><?php echo QTY_IN_STOCK; ?></b></td> <td width="80%" id="product_quantity_display"> <?php echo($R_Product['products_quantity']); if($R_Product['products_quantity'] == 0 && ALLOW_SOLDOUT_PRODUCTS == 0){ //echo(" ( $R_Product['products_reorder_quantity'] reordered )"); echo(' <font color="red">' . OUT_OF_STOCK . '</font>'); } ?></td> </tr> <tr> <td width="20%"><b><?php echo PRODUCT_WEIGHT; ?></b></td> <td width="80%"><?php echo($R_Product['products_weight']); ?> lbs.</td> </tr> <?php // Display attributes form elements if (use_attribs() && (count($R_product_attribs->options)>0)) { ?> <tr> <td width="100%" colspan="2" align="center"> <b><?php echo PRODUCT_OPTIONS; ?></b> </td> </tr> <tr> <td width="100%" colspan="2"> <?php echo $R_product_attribs->product_form($product_final_price); ?> </td> </tr> <?php } ?> <tr height="45px"> <td width="100%" colspan="2" align="center"> <?php if($_SESSION['CurrentOrderIndex'] == -1) { ?> <a href="#" title="<?php echo ADD_TO_ORDER_BUTTON_TITLE; ?>" onclick="this.blur();" class="btn btn-success btn-default disabled" role="button"><?php echo ADD_TO_ORDER; ?></a> <?php } elseif (use_attribs() && (count($R_product_attribs->options)>0)) { // Use form submit feature, with additional hidden fields, when adding product. // This forces the POSTing of any option values. // Use the old-format page redirection if attributes not used or not present ?> <a href="#" title="<?php echo ADD_TO_ORDER_BUTTON_TITLE; ?>" onclick="check_attrform(document.product_options_form,<?php echo $option_count; ?>,'<?php echo MAKE_SELECTION; ?>')" class="btn btn-success btn-default" role="button"><?php echo ADD_TO_ORDER; ?></a> <?php } else { ?> <a href="#" title="<?php echo ADD_TO_ORDER_BUTTON_TITLE; ?>" onclick="this.blur(); window.location.href='action.php?Action=AddItem&ProductID=<?php echo($R_Product['products_id']); ?><?php if ($_SESSION['Orders'][$_SESSION['CurrentOrderIndex']]->ReturnOrder == 1) { echo ("&Quantity=-1"); } else { echo ("&Quantity=1"); } ?>'" class="btn btn-success btn-default" role="button"><?php echo ADD_TO_ORDER; ?><input type="hidden" name="CreateAssign" value="<?php echo ADD_TO_ORDER; ?>"></a> <?php } if (use_attribs() && (count($R_product_attribs->options)>0)) { ?> <input type=hidden name=Action value='AddItem'> <input type=hidden name=ProductID value=<?php echo $R_Product['products_id'] ?> > <?php if ($_SESSION['Orders'][$_SESSION['CurrentOrderIndex']]->ReturnOrder == 1) { $qty = -1; } else { $qty = 1; } ?> <input type=hidden name=Quantity value=<?php echo $qty;?> > <input type=hidden name=Price value=<?php echo $product_final_price ?> > <?php if (is_attrib_mode("QTP")) { ?> <input type=hidden name=StockQuantity value=<?php echo $R_Product['products_quantity'] ?> > <?php } ?> </form> <?php } ?> <?php if (IN_STORE_PRICING == 0) { // Disallow price editing if in-store pricing is in effect. It is too easy to confuse this and enter incorrect prices ?> <a href="#" title="<?php echo EDIT_PRODUCT_BUTTON_TITLE; ?>" onclick="this.blur(); window.location.href='product_edit.php?ProductID=<?php echo($R_Product['products_id']); ?>'" class="btn btn-primary btn-default" role="button"><?php echo EDIT_PRODUCT; ?></a> <a href="#" title="<?php echo EDIT_SPECIAL_PRICE_BUTTON_TITLE; ?>" onclick="this.blur(); window.location.href='product_edit_sale.php?ProductID=<?php echo($R_Product['products_id']); ?>'" class="btn btn-default" role="button"><?php echo EDIT_SPECIAL_PRICE; ?></a> <?php } ?> <a href="#" title="<?php echo BACK_BUTTON_TITLE; ?>" onclick="this.blur(); window.location.href='index.php';" class="btn btn-danger btn-default" role="button"><?php echo BACK; ?></a> <br> </td> </tr> <?php if(SHOW_PRODUCT_DESCRIPTION) { ?> <tr> <td width="100%" colspan="2" align="center"> <b><?php echo PRODUCT_DESCRIPTION; ?></b> </td> </tr> <tr> <td width="100%" colspan="2"> <?php echo($R_Product['products_description']); ?> </td> </tr> <?php } ?> <?php if(SHOW_PRODUCT_IMAGE) { ?> <tr> <td width="100%" colspan="2" align="center"> <b><?php echo PRODUCT_IMAGE; ?></b> </td> </tr> <tr> <td width="100%" colspan="2" align="center"> <img src="<?php echo IMAGE_PATH; ?><?php echo($R_Product['products_image']); ?>"> </td> </tr> <?php } ?> </table> </div> <footer class="footer"> <?php include("includes/footer.php"); ?> </footer> </div> <!-- /container --> </body> </html> Omar -
OllaCart Point of Sale for osCommerce - ocPOS
Omar_one replied to a topic in General Add-Ons Support
@@frankl when OllaCart installed it will create two orders status in the database for just one language (English), So I insert same orders status id with the 2nd language_id(my language) with different orders_status_name to fit my language. here is any example shop have two language lets say English (language_id = 1) and finnish (language_id =2) and when you install the OllaCart it will insert INSERT INTO `orders_status` (`orders_status_id`, `language_id`, `orders_status_name`, `public_flag`, `downloads_flag`) VALUES (12, 1, 'Completed In Store', 1, 0), (13, 1, 'Voided In Store', 1, 0); So we have to insert the 2nd language manually with same orders_status_id INSERT INTO `orders_status` (`orders_status_id`, `language_id`, `orders_status_name`, `public_flag`, `downloads_flag`) VALUES (12, 2, 'valmistunut Myymälässä', 1, 0), (13, 2, 'Mitätöity Myymälässä', 1, 0); after that the created orders via OllaCart they will show on the admin side(orders) English is not my mother tongue; please excuse any errors on my part. Omar -
OllaCart Point of Sale for osCommerce - ocPOS
Omar_one replied to a topic in General Add-Ons Support
@@frankl fixed .. i will share the fixing when I will by beside the pc .. -
OllaCart Point of Sale for osCommerce - ocPOS
Omar_one replied to a topic in General Add-Ons Support
Hello @@frankl I installed the Responsive version https://github.com/f...OS25-Responsive.. I have issue with it .. That after create orders via OllaCart they are not shown on the admin side .. just the Return / Exchange ones .. Do you know why? Thank you in advance Omar -
@@kymation @@14steve14 because this topic for supporting specials image overlay.. Can I share screen shot in this topic from the shop what I am working on, added there ribbon ? BR Omar
-
Thank you @@14steve14 :thumbsup: ....Work nicely
-
@@aespinal your welcome.. I thought that you have been reading the instructions in readme file
-
@@aespinal What about this line did you add it in the admin/includes/filenames.php file? define('FILENAME_QUICK_INVENTORY', 'quick_inventory.php');
-
@@aespinal can you post the catalog.php code here ?
-
@@ecommunlimited @@aespinal The file(quick_inventory.php) in the addon folder in admin/includes/language/ You need to put it on your language (admin/includes/language/your language/
-
@@aespinal Are you using this addon http://addons.oscommerce.com/info/8672 ?
-
@@aespinal 1. The link shows like the image attached. admin/includes/languages/english.php add: define('BOX_CATALOG_QUICK_INVENTORY', 'Quick-Inventory');
-
No need to add the first one... you will found it into admin ->catalog
-
If have oscommerce 2.3 add this one : array( 'code' => FILENAME_QUICK_INVENTORY, 'title' => BOX_CATALOG_QUICK_INVENTORY, 'link' => tep_href_link(FILENAME_QUICK_INVENTORY) ),