Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Irin

Pioneers
  • Posts

    891
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Irin

  1. Hello. I'm trying to install this add-on on my live 2.3.3.4 store. I uploaded all new files, except for the catalog/includes/modules/products_tabs.php. I already have this file, and it belongs to Product Tabs add-on. Since that add-on is working properly on my live store, I don't want to mess things up. Are these two add-ons compatible and what is the easiest way to combine them together? Thanks.
  2. I test this on my live store, so untill I can figure out how to properly incorporate this add-on, I have to use my original template_bottom.php and template_top.php files, therefore you won't be able to see the problem. I will PM you the link to my site, so you can see what the Product Tabs look like. For Product Tabs add-on I had to make changes in my product_info.php, so it calls the products_tabs.php file from includes/modules. Here is my includes/modules/products_tabs.php: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ ?> <script type="text/javascript"> $(function() { $( "#tabs" ).tabs(); }); </script> <div id="tabs"> <ul> <li><a href="#tabs-0"><?php echo TEXT_TAB_DESCRIPTION; ?></a></li> <?php // Tab 1 if ($product_info['products_tab_1'] > '') { ?> <li><a href="#tabs-1"><?php echo PRODUCT_TABS_TAB_1; ?></a></li> <?php } ?> <?php // Ttab 2 if ($product_info['products_tab_2'] > '') { ?> <li><a href="#tabs-2"><?php echo PRODUCT_TABS_TAB_2; ?></a></li> <?php } ?> <?php // Tab 3 if ($product_info['products_tab_3'] > '') { ?> <li><a href="#tabs-3"><?php echo PRODUCT_TABS_TAB_3; ?></a></li> <?php } ?> <?php // Tab 4 if ($product_info['products_tab_4'] > '') { ?> <li><a href="#tabs-4"><?php echo PRODUCT_TABS_TAB_4; ?></a></li> <?php } ?> <?php // Tab 5 if ($product_info['products_tab_5'] > '') { ?> <li><a href="#tabs-5"><?php echo PRODUCT_TABS_TAB_5; ?></a></li> <?php } ?> <?php // Review Tab if (PRODUCT_TABS_REVIEWS_TAB == 'True') { ?> <li><a href="#tabs-6"><?php echo TEXT_TAB_REVIEWS; ?></a></li> <?php } ?> <?php // Ask a Question Tab if (PRODUCT_TABS_QUESTION_TAB == 'True') { ?> <li><a href="#tabs-7"><?php echo TEXT_TAB_ASK_A_QUESTION; ?></a></li> <?php } ?> <?php // Tell a Friend Tab if (PRODUCT_TABS_FRIEND_TAB == 'True') { ?> <li><a href="#tabs-8"><?php echo TEXT_TAB_TELL_A_FRIEND; ?></a></li> <?php } ?> </ul> <div id="tabs-0"> <?php echo stripslashes($product_info['products_description']); ?> </div> <?php // Tab 1 if ($product_info['products_tab_1'] > '') { ?> <div id="tabs-1"> <br> <?php echo stripslashes ($product_info['products_tab_1']); ?> </div> <?php } ?> <?php // Tab 2 if ($product_info['products_tab_2'] > '') { ?> <div id="tabs-2"> <br> <?php echo stripslashes ($product_info['products_tab_2']); ?> </div> <?php } ?> <?php // Tab 3 if ($product_info['products_tab_3'] > '') { ?> <div id="tabs-3"> <br> <?php echo stripslashes ($product_info['products_tab_3']); ?> </div> <?php } ?> <?php // Tab 4 if ($product_info['products_tab_4'] > '') { ?> <div id="tabs-4"> <br> <?php echo stripslashes ($product_info['products_tab_4']); ?> </div> <?php } ?> <?php // Tab 5 if ($product_info['products_tab_5'] > '') { ?> <div id="tabs-5"> <br> <?php echo stripslashes($product_info['products_tab_5']); ?> </div> <?php } ?> <?php // Review Tab if (PRODUCT_TABS_REVIEWS_TAB == 'True') { echo ' <div id="tabs-6">'; include( DIR_WS_MODULES . FILENAME_PRODUCT_REVIEWS ); echo ' </div><div style="clear: both;"></div>'; } ?> <?php // Ask a Question Tab if (PRODUCT_TABS_QUESTION_TAB == 'True') { echo ' <div id="tabs-7">'; include( DIR_WS_MODULES . FILENAME_ASK_A_QUESTION ); echo ' </div><div style="clear: both;"></div>'; } ?> <?php // Tell a Friend Tab if (PRODUCT_TABS_FRIEND_TAB == 'True') { echo ' <div id="tabs-8">'; include( DIR_WS_MODULES . FILENAME_TELL_A_FRIEND ); echo ' </div><div style="clear: both;"></div>'; } ?> </div>
  3. I have XSell Add-on installed, so my admin/includes/functions/general.php code looks completely different from the instructions. I'm unsure on how to modify it, so I don't mess up the XSell add-on. Can you help me, please? Here is my function tep_reset_cache_block code: function tep_reset_cache_block($cache_block) { global $cache_blocks; $pid = '*'; if ($cache_block == 'xsell_products') { $pid = ''; if (isset($_GET['add_related_product_ID']) ) { $pid = $_GET['add_related_product_ID']; } if ( !$pid ) $pid = '*'; } for ($i=0, $n=sizeof($cache_blocks); $i<$n; $i++) { if ($cache_blocks[$i]['code'] == $cache_block) { $glob_pattern = preg_replace('#-language.+$#', '-*', $cache_blocks[$i]['file']); foreach ( (array)glob(DIR_FS_CACHE . $glob_pattern . '.cache' . $pid) as $cache_file ) { @unlink($cache_file); } break; } } }
  4. Hello Jonas, I'm testing the catalog side of this add-on and having some problems. The changes in includes/functions/cache.php, includes/template_bottom.php, and includes/template_top.php cause some conflicts in my catalog side. With Cache enabled, all categories with subcategories in them show "There are no products available in this category.". With Cache disabled, it's showing the subcategories perfectly. Changes in template_bottom.php and template_top.php break the layout of my product description page (I have Product Tabs add-on installed). It's showing the shopping cart and categories boxes, breadcrumb, and footer in the tabs and when I click to switch to any other tab, it takes me back to the index page. So, I guess there is something in the code that causes compatibility issues between the add-ons. Right now I'm kind of stuck on these problems and can't move any further toward testing the admin side of this add-on. Hope you can help me find a solution. Thanks in advance.
  5. Uploaded a new version 4.0 that works in v2.3.3 and up.
  6. Both tables, view_counter and view_counter_storage have data in them, but nothing is showing in admin. I checked the instructions again, and everything seems to be fine. I even updated the view_counterDB.BIN database, but still, nothing is showing on the Monitor page, even the bots. I can view the different counter reports on the Reports page, though.
  7. Hello. My View Counter behaves like there is nobody online every time I check it. Who's Online add-on shows people online. View Counter doesn't show any errors. I've setup an account with "IP2Location" and entered my API key into admin. I really don't know what can be wrong. I appreciate any suggestions. Thanks.
  8. With the new version it's not showing a database at all and is also giving the following error:
  9. I have a problem with product options added twice to the database when order is placed and also showing twice in confirmation email, like this: I can't figure out what can be a problem here. Any help will be appreciated. Thanks.
  10. I will answer my own question. To wrap text at the end of lines, you need to remove <nobr> in the code, so it looks like this: //BOF Option Types v2.3.1 - Removed <nobr>, because Text options can be very long and added Attribute prices echo '<br /><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i>'; if ($order->products[$i]['attributes'][$j]['price'] != '0') { echo ' - (' . $order->products[$i]['attributes'][$j]['price_prefix'] . $currencies->display_price($order->products[$i]['attributes'][$j]['price'], tep_get_tax_rate($order->products[$i]['tax'])) . ')'; } echo '</small>';
  11. Some of my product options are very long. How can I make the option's text to wrap at the end of lines? Where this can be set? Thanks.
  12. Oh, well... Thanks for your help, Dave. I'll wait, may be somebody will come with the solution. The two modules are popular, so there must be somebody else besides me having the same problem as I do.
  13. This is what worked for me when I used the previous fedex module. Unfortunately, it doesn't work with this module at all. I tried that suggestion, but as soon as I change in fedexwebservices.php from $countries_array = $this->get_countries(SHIPPING_ORIGIN_COUNTRY, true); to $countries_array = $this->get_countries_info(SHIPPING_ORIGIN_COUNTRY, true); both pages: checkout_shipping.php and edit_orders.php load blank.
  14. Yes, the problem with fedex quotes is only within the Order Editor. UPS and USPS quotes show fine, but FedEx quotes aren't showing at all. I have an original version of Order Editor, and previous fedex shipping module worked fine, until I upgraded to FedEx Webservices.
  15. I have an Order Editor add-on installed on my osc 2.3+, production site. Yes, I'm getting "enter your zip code" message when address is being changed. Everything seems to be working perfectly when I edit an order, except for the FedEx quotes, they're just not showing. I tried your earlier suggestions, but still no quotes. If I enable the original code <$totals = $order->info['subtotal'] = $_SESSION['cart']->show_total();> in fedexwebservices.php, then edit_orders.php page just loads blank. The other three lines of code produce the same results, page loads fine, but no FedEx quotes. $totals = $order->info['subtotal'] = $cart->total; // from CRE Loaded code - testing - this may be the one for all? // $totals = $order->info['subtotal'] || $_SESSION['cart']->show_total(); // or perhaps this is better // $totals = $cart->show_total(); // this seems to work for most
  16. Sad to say... I tested with everything but still no luck. FedEx quotes are just not showing. UPS and USPS quotes show fine, but no FedEx. Are there any other ideas? Thanks.
  17. Hello. Is it possible to mark a product as only available for sale as part of a bundle, without creating a real bundle? I have an individual product that I don't want to be sold individually, only as an additional option (if selected) to another product. Bundle doesn't work in this case. I want to be able on product info page to list the items that this specific product can be purchased with, without showing savings, because there are none. Right now if I mark a product as only available for sale as part of a bundle, and don't add any items to the bundle, on product info page it shows as: I hope that I made myself clear. Thanks in advance.
  18. Hello. I have a few issues with this add-on, hopefully someone can help me with them. If a product with an empty option as an attribute is added to the shopping cart, then in shopping cart it shows as: When I click on the "eye", it opens a new window with Error 403 - Forbidden: If I set a first option in a select box to "Please Select", then in shopping cart it shows as: Is it possible to not count "Please Select" as an attribute? Also, is it possible to specify a link for the option or show a picture of a selected option? Thanks in advance.
  19. In order to see the products tabs in admin product preview (admin/categories.php), I had to add 'pd.products_tab_1, pd.products_tab_2, pd.products_tab_3, pd.products_tab_4, pd.products_tab_5, pd.products_tab_6' to $product_query and also change the line below: <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description . $pInfo->products_tab_1 . $pInfo->products_tab_2 . $pInfo->products_tab_3 . $pInfo->products_tab_4 . $pInfo->products_tab_5 . $pInfo->products_tab_6; ?></td>
  20. The reason that the calendar is not displayed in admin/featured.php is that the few links are missing from the file. Need to add: <link rel="stylesheet" type="text/css" href="includes/javascript/calendar.css"> <script language="Javascript" src="includes/javascript/calendarcode.js"></script> just below: require(DIR_WS_INCLUDES . 'template_top.php'); ?> Also, for the special prices to display in product listing on index, need to add the following code below to includes/modules/featured.php: if (tep_not_null($featured_products['specials_new_products_price'])) { $new_price = '<s>' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</s> '; $new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($featured_products['specials_new_products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</span>'; } else { $new_price = $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])); } Also, change in line from: $featured_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br />' . $currencies->display_price($featured_products['products_price'], tep_get_tax_rate($featured_products['products_tax_class_id'])) . '</td>'; to this: $featured_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $featured_products['products_id']) . '">' . $featured_products['products_name'] . '</a><br />' . $new_price . '</td>'; This worked for me, hope it works for you, too.
  21. Hi. I installed this add-on on osc v2.3.2. When I click on Deactivate All button or try to set a status of any individual product to inactive, it redirects me to a forbidden page. Any ideas? Also, I'd like to change the buttons in admin/specials_maintenance.php for osc v2.3.2. How do I do that? Thanks.
  22. Hi Jack, I managed to disable the hidden categories by adding c.categories_status = '1' to the following query in category_tree.php and category_tree_no_products.php: $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id where c.categories_status = '1' and cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); I changed the line like you suggested in includes/modules/sitemap_manufacturers.php and includes/modules/sitemap.php, but unfortunately it didn't change how the manufacturers are being displayed. Any other ideas?
  23. Hi. Great add-on. I'm using the "Enable & Disable Categories" contribution and was wondering what do I need to change to force the sitemap to not display the hidden categories. Also, I want to display only manufacturers that have linked products and hide those that have no products. How can I do that? Thanks in advance.
  24. @@kymation Oh, that's alright. I appreciate all your efforts. Thanks for an awesome support. :thumbsup:
×
×
  • Create New...