Jump to content
Latest News: (loading..)

wildvettes

Members
  • Content count

    105
  • Joined

  • Last visited

  • Days Won

    1

wildvettes last won the day on September 19 2011

wildvettes had the most liked content!

1 Follower

Profile Information

  • Real Name
    Damien Routledge

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. You sir nailed it! Check out the test site now. The changes were yours in application_top.php and the other in html_output.php for the linking issue. www.lifitingpads.com/catalog/ You can now remove items with attributes from the shopping cart
  2. I think I'm going to revert all code changes and just make the one to html_output.php as it isn't generating any error logs on the new test site (mine is now and ipage is blaming the issue on the error log). If someone can refer me to where the "What's in My Shopping Cart?" Text is located I'm going to add a line of text below it saying "To remove an item from your cart change the quantity to "0" and click the refresh arrows." That should at least band-aid this until I can get it figured out. If I could just remove the red x all together that would also be great, but I don't know if that would require a lot of core code changes. Thanks!
  3. The new install of EDGE is from the link @burt supplied and the PHP version has been tried on 5.5, 5.6, and 7.0 with the same results.
  4. @burt I ran a bone stock install and it did the exact same thing. See the above post. So let's do this. I have the bone stock edge site with the same issues. What exactly should I do to fix that without any CORE CODE changes? I'm all ears.
  5. Of course they are . Well looks like I hit the Host lottery then!
  6. @Dan Cole No I am currently using Ipage and it has been 24 hours now without even an update to my ticket. Last night the "chat tech" kept trying to get me to give him my admin location and login information like he was going to fix the issue from my admin panel. I did see that post and wish there was some way to know which hosts won't work. I just wish I had known before getting hundreds of hours into this shop and have to probably spend more time trying to migrate and get my domains, ssl, sitelock etc moved over without eating more money.
  7. OK so before I have to go trying to migrate hosts does anyone have a work around for the remove from cart button not working for a Host that doesn't support {} when a product has attributes? My host has been zero help. It could be anything including dumping the entire cart. I just want the customer to be able to actually clear the cart when they make an error rather than just getting frustrated and leaving. I have tried all the urlencode options and I have done a fresh install of EDGE and the issue is present in all of them still.
  8. http://www.liftingpads.com/catalog/ clean fresh install: this product with attributes does the same thing. Clearly this is an issue with oscommerce and some web hosts and someone wouldn't know until they actually spent a bunch of time building a store only to find out they are going to lose customers over a shopping cart frustration. http://www.liftingpads.com/catalog/product_info.php?products_id=1
  9. @Gergely A brand new install of edge has the exact same error on my server. So new server or nothing? Is there a way to just get it to dump the entire cart?
  10. I would like to re-cap my issues again very easily for those searching and explain what specifically was done and what fixed what. So far the only issue not resolved is the remove from cart button although it does seem to be closer. 1. Problems with the Home Page "Navbar" dropdown, Problems with the "Grid/List" Buttons on product listing pages, Problems, Problems with the "Sort" dropdown on product listing pages, & Problems with the "ColorBox" image popups on each listing. These issues were all solved with this change to the Includes/Template_top.php Remove this line <script src="ext/jquery/jquery-1.11.1.min.js" async></script> Replace with this line <script src="ext/jquery/jquery-1.11.1.min.js"></script> 2. The "Remove From Cart" button in the shopping cart doesn't work when a product has "attributes". Also clicking on the product creates an error and takes you back to the home page instead of the product details page. I tried @ShaGGy's fix by changing the following in Shopping_cart.php (THIS DID NOT WORK FOR ME) Remove $products_name .= ' <td valign="top" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' <td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><strong>' . $products[$i]['name'] . '</strong></a>'; Replace with $products_name .= ' <td valign="top" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . urlencode($products[$i]['id'])) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' <td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . urlencode($products[$i]['id'])) . '"><strong>' . $products[$i]['name'] . '</strong></a>'; Remove $products_name .= '<br>' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px;" min="0"', 'number') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . ' ' . tep_draw_button(CART_BUTTON_UPDATE, 'fa fa-refresh', NULL, NULL, NULL, 'btn-info btn-xs') . ' ' . tep_draw_button(CART_BUTTON_REMOVE, 'fa fa-remove', tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product'), NULL, NULL, 'btn-danger btn-xs'); Replace with $products_name .= '<br>' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px;" min="0"', 'number') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . ' ' . tep_draw_button(CART_BUTTON_UPDATE, 'fa fa-refresh', NULL, NULL, NULL, 'btn-info btn-xs') . ' ' . tep_draw_button(CART_BUTTON_REMOVE, 'fa fa-remove', tep_href_link(FILENAME_SHOPPING_CART, ' products_id=' . urlencode($products[$i]['id']) . '&action=remove_product'), NULL, NULL, 'btn-danger btn-xs'); I then tried @Harald Ponce de Leon's recommendation to change these in the catalog/includes/functions/html_output.php and catalog/admin/includes/functions/html_output.php, in the tep_href_link() function definition: (THIS FIXED THE PRODUCT LISTING LINK AND NOW THE "remove from cart" BUTTON REFRESHES AND SAYS THE ITEM HAS BEEN REMOVED FROM CART EVEN THOUGH IT IS STILL IN THE CART). Remove if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } Replace with if (tep_not_null($parameters)) { $p = array(); $query = parse_str($parameters, $p); $parameters = http_build_query(filter_var($p, FILTER_CALLBACK, ['options' => 'urlencode'])); $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } I also tried this and it also DID NOT WORK. try this in both catalog/includes/functions/html_output.php and catalog/admin/includes/functions/html_output.php: Directly after the "global $.." line in the tep_href_link() function definition, add the following "if" statement: function tep_href_link(.....) { global $.....; if (tep_not_null($parameters)) { $p = array(); $query = parse_str($parameters, $p); $parameters = http_build_query(filter_var($p, FILTER_CALLBACK, ['options' => 'urlencode'])); } ....... } So that still leaves me with a non-working remove from cart button. :(
  11. Can you point me to a walk-through on doing the update? I have never done an update and migration before. Do you think that will solve the brackets problem also?
  12. I made the changes in that post and it had no impact. Here is my shopping_cart.php after the changes referenced in that post. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require("includes/application_top.php"); if ($cart->count_contents() > 0) { include(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <div class="page-header"> <h1><?php echo HEADING_TITLE; ?></h1> </div> <?php if ($messageStack->size('product_action') > 0) { echo $messageStack->output('product_action'); } ?> <?php if ($cart->count_contents() > 0) { ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> <div class="contentContainer"> <div class="contentText"> <?php $any_out_of_stock = 0; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name']; $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } ?> <table class="table table-striped table-condensed"> <tbody> <?php $products_name = NULL; for ($i=0, $n=sizeof($products); $i<$n; $i++) { $products_name .= '<tr>'; $products_name .= ' <td valign="top" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . urlencode($products[$i]['id'])) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' <td valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . urlencode($products[$i]['id'])) . '"><strong>' . $products[$i]['name'] . '</strong></a>'; if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { $products_name .= '<br /><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>'; } } $products_name .= '<br>' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'style="width: 65px;" min="0"', 'number') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . ' ' . tep_draw_button(NULL, 'fa fa-refresh', NULL, NULL, NULL, 'btn-info btn-xs') . ' ' . tep_draw_button(NULL, 'fa fa-remove', tep_href_link(FILENAME_SHOPPING_CART, ' products_id=' . urlencode($products[$i]['id']) . '&action=remove_product'), NULL, NULL, 'btn-danger btn-xs'); $products_name .= '</td>'; $products_name .= ' <td align="right" valign="top"><strong>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</strong></td>' . '</tr>'; } echo $products_name; ?> </tbody> </table> <p class="text-right"><strong><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></strong></p> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <div class="alert alert-warning"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div> <?php } else { ?> <div class="alert alert-danger"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div> <?php } } ?> </div> <div class="buttonSet"> <div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'fa fa-angle-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success'); ?></div> </div> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <div class="clearfix"></div> <p class="text-right"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p class="text-right"><?php echo $value; ?></p> <?php } } ?> </div> </form> <?php } else { ?> <div class="alert alert-danger"> <?php echo TEXT_CART_EMPTY; ?> </div> <p class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', tep_href_link(FILENAME_DEFAULT), 'primary', NULL, 'btn-danger'); ?></p> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  13. http://www.wildvettes.com/shopping_cart.php/products_id/617{2}83/action/remove_product FYI when I copy and past the remove from cart url the above is what gets copied but the line automatically gets changed to http://www.wildvettes.com/shopping_cart.php/products_id/617%7B2%7D83/action/remove_product so it does look to be an issue with the brackets being auto adjusted. I couldn't find anything in search though.
  14. I went to a few of the "live" sites on this website and each of them seems to use some completely different URL when it comes to product sorting. One site would sort by price or name whether in grid or list. Mine tries to always force it back into list. I actually just tried the refresh on the grid list switch and it is the same thing. So it doesn't really seem to matter whether or not the user is actually doing something. It seems to just work once every 2-5 page loads.
  15. I can literally just refresh a product page and the image popup will go in and out of working. It can be 2 page refreshes up to 5 before it works again and then only works once before starting the cycle over again. Any idea why is would be so random? You think my host is the issue?
×