Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

strictlypc

Archived
  • Posts

    158
  • Joined

  • Last visited

Everything posted by strictlypc

  1. Hi All, Please help me with this. I am completely stumped: Code #1 <tr><td colspan=3 align=center><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>?<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr> Code #2 <tr><td colspan=2 align=center><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>?<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr> I need to convert both of the above codes to a form instead of a link. Please help me, I have been stumped for like 2 days trying to figure this out. Appreciate all help and kindness, StrictlyPC
  2. Hi there, I have tried downloading the file, but somehow it is still corrupted. I was wondering if someone can email me the good files. Thanks, StrictlyPC [email protected]
  3. Hi There, Couple of suggestions that I have would be: (1) Ability to view and edit the Pin Codes that was uploaded (2) Ability for the customer to "recharge" that Pin Code that was purchased earlier (3) Ability for the customer to do pinless dialing (4) And of course, the ability for the customer to receive the PIN code in their email Thanks for this great contribution, StrictlyPC
  4. Hi HairyJim, Thanks for your response. Normally, I would just enter the regular price and then enter the price breaks. But I see where you are getting at and I will use that method. Thanks for your help, StrictlyPC
  5. Hi HairyJim, I was wondering if you can help me with one thing. I been trying do it myself but I cannot get it done. I want the tables to do the following: QTY 1+ 10+ 20+ 30+ Price each $4.00 $3.00 $2.00 $1.00 Saving (%) 10% $20% 30% Instead of: $4.00 QTY 10+ 20+ 30+ Price each $3.00 $2.00 $1.00 Saving (%) 10% 20% 30% Thanks in Advance, StrictlyPC
  6. Hi Kai, Thanks for your response. I have doubled check my installation and everything seems to be working except for that problem. I went through this post and the only thing that could be causing this problem is that i am running on a "localhost". I will try that later. Also, I noticed that it is adding more products to my products table. Is this normal? Thanks, StrictlyPC
  7. Hi, I have just installed this contribution and when the discount option is "off", the two items would add to the shopping cart. However, when the discount option is "on", the two items does not add to the shopping cart. Is this a bug? StrictlyPC
  8. Hi all, I was wondering if anyone incorporated a "reset" button or "deselect" the item. I've noticed that once you select an item, you cannot take it off the list. Thanks, StrictlyPC BTW empo, when do you anticipate on releasing the "newer" version. Thanks in advance!
  9. Hi, Actually, if you go to the website, there is a demo with screenshots. StrictlyPC
  10. Hi Hobbes, The Special prices should work. I think in the original files, they tell you to delete the following: if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } That actually controls the specials pricing. So you would have to add the above code back and before (or above): $pf->loadProduct((int)$HTTP_GET_VARS['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); Hope this helps, StrictlyPC
  11. I was wondering if anyone has the same problem as me. If you click on any of the images on the carousel, it would redirect you to the product description of that product. Problem is that once it gets redirected, the carousel would dissapear and would not function. Please let me know how to fix this. Thanks, StrictlyPC
  12. Try this: http://www.oscommerce.com/community/contributions,2952 I have it installed and working. Easy instructions. StrictlyPC
  13. Hi There, I have installed the latest version (2.5) and everything is working well. I have one question in regards to the calculation of the refund amount. I know that it is basically the sale price multiplied by the tax amount. I have installed this contribution: http://www.oscommerce.com/community/contributions,689 I need the RMA contribution to work with this module and calculate the correct refund amount but I don't know how to do that. For Example: Customer Discount is 10% Sale Price: $350.00 Tax is 8.25% Thus the calculation would be: $350 less 10% discount, multiplied by 8.25% = $340.99 But if one does a refund, the would be given $350 * 8.25% = $378.88 Therefore the calculation is incorrect. Please help, Thanks, StrictlyPC
  14. Hi Guys, I just installed this great contribution but I have one problem. When I add products to the wishlist, it would display the products but I am missing the right column. When I have no products in the wishlist, both the right and left column will show up. Does anyone have any clues? Thanks in Advance, StrictlyPC
  15. Hi whaou, It seems that this "Duplicate" is a known problem. If you read the past post, there hasn't been a fix to this problem yet. As of today, I have uninstall this contribution and will wait this this problem is fixed before installing again. StrictlyPC
  16. Whaou, It seems that you did not change it correctly. THIS IS WHAT YOU HAVE: // update bundle contents if ($HTTP_POST_VARS['products_bundle'] = "yes") { tep_db_query("DELETE FROM products_bundles WHERE bundle_id = '" . $products_id . "'"); for ($i=0, $n=6; $i<$n; $i++) { if (isset($HTTP_POST_VARS['subproduct_' . $i . '_qty']) && $HTTP_POST_VARS['subproduct_' . $i . '_qty'] > 0) { tep_db_query("INSERT INTO products_bundles (bundle_id, subproduct_id, subproduct_qty) VALUES ('" . $products_id . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_id'] . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_qty'] . "')"); } } THIS IS WHAT IT SHOULD BE: } // update bundle contents if ($HTTP_POST_VARS['products_bundle'] = "yes") { tep_db_query("DELETE FROM products_bundles WHERE bundle_id = '" . $products_id . "'"); for ($i=0, $n=6; $i<$n; $i++) { if (isset($HTTP_POST_VARS['subproduct_' . $i . '_qty']) && $HTTP_POST_VARS['subproduct_' . $i . '_qty'] > 0) { tep_db_query("INSERT INTO products_bundles (bundle_id, subproduct_id, subproduct_qty) VALUES ('" . $products_id . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_id'] . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_qty'] . "')"); } } Do you see the "}" on top of the "// update bundle contents"? Jacob: I encouter the same error that you are getting and I tried everything that I could, but I finally gave up. It seems that this is a known bug and there hasn't been a fix to it yet. StrictlyPC
  17. Hi Jacob, I was installing this contribution yesterday and had a hard time getting it to work. I encountered the same errors that everyone was getting, but after looking at the installation files and the codes, I have found the fix to both of your problems. (1) In admin\categories.php ORIGINAL INSTALLATION INSTRUCTIONS: add the following code // update bundle contents if ($HTTP_POST_VARS['products_bundle'] = "yes") { tep_db_query("DELETE FROM products_bundles WHERE bundle_id = '" . $products_id . "'"); for ($i=0, $n=6; $i<$n; $i++) { if (isset($HTTP_POST_VARS['subproduct_' . $i . '_qty']) && $HTTP_POST_VARS['subproduct_' . $i . '_qty'] > 0) { tep_db_query("INSERT INTO products_bundles (bundle_id, subproduct_id, subproduct_qty) VALUES ('" . $products_id . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_id'] . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_qty'] . "')"); } } } after tep_db_perform(TABLE_PRODUCTS, $sql_data_array); $products_id = tep_db_insert_id(); THIS SHOULD BE CHANGED TO: add the following code } // update bundle contents if ($HTTP_POST_VARS['products_bundle'] = "yes") { tep_db_query("DELETE FROM products_bundles WHERE bundle_id = '" . $products_id . "'"); for ($i=0, $n=6; $i<$n; $i++) { if (isset($HTTP_POST_VARS['subproduct_' . $i . '_qty']) && $HTTP_POST_VARS['subproduct_' . $i . '_qty'] > 0) { tep_db_query("INSERT INTO products_bundles (bundle_id, subproduct_id, subproduct_qty) VALUES ('" . $products_id . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_id'] . "', '" . $HTTP_POST_VARS['subproduct_' . $i . '_qty'] . "')"); } } after tep_db_perform(TABLE_PRODUCTS, $sql_data_array); $products_id = tep_db_insert_id(); If you look carefully, one of the "}" has been moved to the top. This will correct your first problem. (2) Add the following change in catalog\includes\database_tables.php FIND: define('TABLE_PRODUCTS', 'products'); ADD the following after the above code: define('TABLE_PRODUCTS_BUNDLES', 'products_bundles'); This should fix both of your problems. Best of Luck! StrictlyPC
  18. Hi All, Open catalog\calendar_content.php (Line 41) and change the following: FIND: echo '<tr><td height="22" class="main" align="left"> <a href="' . tep_href_link(FILENAME_EVENTS_CALENDAR, 'view=all_events') . '" title="'. BOX_CALENDAR_TITLE .'"target="_parent">'. HEADING_TITLE .' ??? </td></tr>'; REPLACE WITH: echo '<tr><td height="22" class="main" align="left"> <a href="' . tep_href_link(FILENAME_EVENTS_CALENDAR, 'view=all_events') . '" title="'. BOX_CALENDAR_TITLE .'"target="_parent">'. HEADING_TITLE .'</td></tr>'; Those little bars above are actually boxes, but this forum does not display them correctly. StrictlyPC
  19. Hi there, Nevermind, I found the fix for this: In catalog/includes/application_top.php FIND: require('includes/configure.php'); CHANGE TO: if(defined('ADMIN')){ require('../../includes/configure.php'); }else if(defined('IN_PHPBB')){ require('../includes/configure.php'); }else{ require('includes/configure.php'); } ALSO In catalog/includes/configure.php DELETE define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); FIND define('DIR_WS_HTTPS_CATALOG', ''); ADD if(defined('ADMIN')){ define('DIR_WS_IMAGES', '../../images/'); define('DIR_WS_INCLUDES', '../../includes/'); }else if(defined('IN_PHPBB')){ define('DIR_WS_IMAGES', '../images/'); define('DIR_WS_INCLUDES', '../includes/'); }else{ define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); } The above fix was taken from oldpa's phpbb contribution, so all credits goes to him. That should do it! StrictlyPC
  20. Hi, I have installed chaveiro's PHPBB 2.0.8a Contribution. I got everything to work, except that I cannot go into admin. When I type: http://localhost/catalog/admin/bb_default.php in my browser, I get the following error: Fatal error: Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\FoxServ\www\catalog\includes\application_top.php on line 29 My line 29 in application_top.php looks like this: require('includes/configure.php'); Any Ideas? Thanks, David
  21. Hi, I have installed chaveiro's PHPBB 2.0.8a Contribution. I got everything to work, except that I cannot go into admin. When I type: http://localhost/catalog/admin/bb_default.php in my browser, I get the following error: Fatal error: Failed opening required 'includes/configure.php' (include_path='.;c:\php4\pear') in C:\FoxServ\www\catalog\includes\application_top.php on line 29 My line 29 in application_top.php looks like this: require('includes/configure.php'); Any Ideas? Thanks, David
  22. Hi Scott, I have been working on this contribution for a couple of days now. After going through all the forums, I have found the fix to your error. In catalog/includes/configure.php Change: define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' TO: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Good Luck, David
  23. Hi Noel, I have installed the Master Products contribution. Can you tell me how to incorporate your codes into this: $master_product_query=tep_db_query("select * from " . TABLE_PRODUCTS_TO_MASTER . " where master_id = " . $_GET['products_id']); if (tep_db_num_rows($master_product_query) > 0) { ?> <tr> <td><?php echo TEXT_OPTIONS?></td> </tr> <?php // create column list $define_list = array('PRODUCT_LIST_MODEL' => SLAVE_LIST_MODEL, 'PRODUCT_LIST_NAME' => SLAVE_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => SLAVE_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => SLAVE_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => SLAVE_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => SLAVE_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => SLAVE_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => SLAVE_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $select_column_list = ''; for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, pm.master_id, pm.slave_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_MASTER . " pm, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and p.products_id=pm.slave_id and pm.master_id=" . $_GET['products_id']; if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; break; } } } else { $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1); $sort_order = substr($HTTP_GET_VARS['sort'], 1); $listing_sql .= ' order by '; switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $uni .= "pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } } ?> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td> </tr> <?php } //END MASTER PRODUCTS Thanks, David
  24. Hi Sebastian, Thanks for the quick reply. I just did a compare with 2.2d and found that the problem is: if ($return_complete['returns_date_finished'] != '0000-00-00 00:00:00') { AND if ($HTTP_POST_VARS['complete'] == 'on') { $notify_comments = ''; tep_db_query("UPDATE " . TABLE_RETURNS . " set returns_date_finished = now(), date_finished = now() where returns_id = '" . $oID . "'"); $order_update = true; $return_complete = true; } When I replace them back with the original code, it works and I am able to see the comment bar box and able to select and apply the changes. Thanks, David
×
×
  • Create New...