Jump to content

woodpecker

Members
  • Content count

    24
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Andy
  1. woodpecker

    [Contribution] Products Specifications

    I did check that but it wasn't the problem, I have now fixed it, the code in html_output.php was the culprit, the tep_draw_pull_down_menu function in the original loaded commerce 6.5 needed some lines commenting out otherwise all pulldowns sitewide were being duplicated, these are what needs to be commented in case anyone else finds this problem:- if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); // for ($i=0, $n=sizeof($values); $i<$n; $i++) { // $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; // if ($default == $values[$i]['id']) { // $field .= ' selected="Selected"'; // } // // $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; // } // Start Products Specifications foreach ($values as $link_data) {
  2. woodpecker

    [Contribution] Products Specifications

    I think it is the code in html_output.php the code I have in the output a form pull down just before the insert looks like this below, it looks very different from the contrib file in this area:- // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' selected="Selected"'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } // Start Products Specifications foreach ($values as $link_data) {
  3. woodpecker

    [Contribution] Products Specifications

    Yes that's on and if I turn it off the count in the second half of the pulldown switches off, so I need to figure out how to get rid of the top half of the pulldown. I changed the case of some of the code to work out where it originates, the top half of the pulldown seems to be generated by includes/functions/products_specifications.php from this part which I presume is correct? switch ($display_type) { case 'pulldown': $box_text .= tep_draw_form('filter', $target, 'get'); $box_text .= tep_draw_pull_down_menu ($filter_name, $filters_select_array, $filter_value, 'onchange="this.form.submit();"'); $box_text .= $additional_variables . tep_hide_session_id(); $box_text .= '<NOscript>' . tep_image_submit('icon_next.gif', TEXT_FIND_PRODUCTS) . '</noscript>'; $box_text .= '</form>'; break;
  4. woodpecker

    [Contribution] Products Specifications

    I expect this is down to me having some code wrong somewhere, I have pushed the code into a loaded commerce install which has taken hours, the html I see with the spec/filter fully loaded up is pasted below, what I have found is that I pasted a block of code into html_output.php which starts "foreach ($values as $link_data) {" this seems to create the part of the pulldown with the count in brackets which I want to keep, if I comment this block I get the correct pulldown but with no product count in brackets. I am trying to work out how to correct this? HTML pulldown output <td class="boxText" > <b> Colour</b> <br> <form name="filter" action="products_filter.php" method="get"> <select name="f2" onchange="this.form.submit();"> <option value="0" selected="Selected"> Show All</option> <option value="Black"> Black</option> <option value="Blue"> Blue</option> <option value="Green"> Green</option> <option value="Grey"> Grey</option> <option value="Orange"> Orange</option> <option value="Pink"> Pink</option> <option value="Red"> Red</option> <option value="Violet"> Violet</option> <option value="White"> White</option> <option value="Yellow"> Yellow</option> <option value="0" SELECTED> Show All<span class="filter_count"> (107)</span> </option> <option value="Black"> Black<span class="filter_count"> (9)</span> </option> <option value="Blue"> Blue<span class="filter_count"> (13)</span> </option> <option value="Green"> Green<span class="filter_count"> (13)</span> </option> <option value="Grey"> Grey<span class="filter_count"> (16)</span> </option> <option value="Orange"> Orange<span class="filter_count"> (7)</span> </option> <option value="Pink"> Pink<span class="filter_count"> (8)</span> </option> <option value="Red"> Red<span class="filter_count"> (13)</span> </option> <option value="Violet"> Violet<span class="filter_count"> (7)</span> </option> <option value="White"> White<span class="filter_count"> (8)</span> </option> <option value="Yellow"> Yellow<span class="filter_count"> (13)</span> </option> </select> <input type="hidden" name="f1" value="0"> <input type="hidden" name="cPath" value="2_3_151_159"> <input type="hidden" name="sort" value="products_name"> <input type="hidden" name="osCsid" value="afb1a1c700404d6f7dc92d9e0903d390"> <NOscript> <input type="image" src="templates/cre65_ats/images/buttons/english/icon_next.gif" alt="Find Matching Products" title=" Find Matching Products "> </noscript> </form> <br>
  5. woodpecker

    [Contribution] Products Specifications

    Hi all, I am having problems with the filter pulldown, I have some colours set eg red, black, blue and green. On the filter pulldown I see the colours twice, they are repeated with the product count. The pulldown looks like this:- Show All Red Black Blue Green Show All (10) Red (2) Black (3) Blue (4) Green (1) I only want the options with the count in the pulldown, how do I remove these duplicates, I don't see duplicates if I switch to tick boxes?? TIA
  6. Hi folks, Our oscommerce store is quite old and our kind hosting company decided to move it and upgrade the php and mysql, anyway we had a lot of issues most of which resulted due to the old server having registers globals on and the new one having them off. I've fixed most of it using the instructions here:- http://www.wesh.co.uk/customer.services/knowledgebase/20/Running-osCommerce-with-Register-Globals-Off.html I've installed the latest Worldpay contribution, running it in test mode, its not quite working though, when the callback page is displayed before the meta refresh, there is a warning at the bottom of the page which says:- Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0 Can anyone help with curing this? The page does meta refresh ok and the checkout completes however on the final checkout_success page the print order URL linked to the Print Order button is missing the order ID, eg it ends:- catalog/printorder.php?order_id= Please help, Thanks, Andy
  7. woodpecker

    Recover Cart Sales

    Hi Folks, I have just added the lost cart report contribution, followed each step etc, then logged in as top administrator but when I click the 'Recover Carts' link I get an access denied message:- "Access Denied No Right Permission Access Please contact your Webmaster to request more access or if you found any problem." Do I need to change a permission somewhere? I really need this to recover a lost order, any help would be appreciated. Thanks in advance, Andy.
  8. woodpecker

    Worldpay support III

    Hi Folks, I've been trhough this thread and spent an hour in the forums but still haven't seen a definitive answer to the missing orders problem. I lose about 1 in 6 orders using the Worldpay module and now I have just lost my first Paypal order, has anyone found a fix? There is nothing wrong with my order status table, the orders just don't get written into the database and the emails don't go out. I've seen many people asking about this, did anyone find a fix. Thanks in anticipation. Andy.
×