Jump to content



Latest News: (loading..)

maxtors

Member Since 15 Jan 2008
OFFLINE Last Active May 20 2013 03:59 PM
-----

Topics I've Started

Drop Down Results per page Not working

08 January 2013 - 05:27 AM

i have this problem i have a drop down  to show 5, 15,  25, or 50, results per page it works until i go to page 2 and so on it goes back to 15 results the default per page i also have Ultimate SEO installed i think this is what is breaking this does anyone know where i should look to get this fixed?

<?php
  $all = $listing_split->number_of_rows;
  $page_options = array(array('id' => $hold_max_pages, 'text' => sprintf(SHOWING_RESULTS, $hold_max_pages)));
  $page_options[] = array('id' => $all, 'text' => sprintf(SHOW_RESULTS, 'All') . " ($all)");
  $page_options[] = array('id' => 5, 'text' => sprintf(SHOW_RESULTS, 5));
  $page_options[] = array('id' => 15, 'text' => sprintf(SHOW_RESULTS, 15));
  $page_options[] = array('id' => 25, 'text' => sprintf(SHOW_RESULTS, 25));
  $page_options[] = array('id' => 50, 'text' => sprintf(SHOW_RESULTS, 50));
  echo tep_hide_session_id();
  echo tep_draw_pull_down_menu('max_pages', $page_options, '', 'onchange="this.form.submit()"');
?>

zero weight free shipping HELP!

22 October 2012 - 06:55 PM

I have the zero weight free shipping contribution and i have modified it and use it for store pickup. I have in the description a large warning that the item is for store pickup only and i also have it in checkout shipping but i guess well alot of people cant read. And still check out. How can disable shipping and payment if there not in NEW YORK for these 0 weight items only? will something like this work? or if someone has a better idea on how to solve this problem.

//BEGIN Free Shipping
		if (($cart->show_weight() == 0) ) {
		  $free_shipping = true;
		  include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
		}
} elseif ($order->delivery['country_id'] == STORE_COUNTRY && $order->delivery['state'] == "New York"){
  $free_shipping = true;
}
else
{
$allow_shipping = false;
}
//END Free Shipping