Jump to content

Xpajun

Members
  • Content count

    1,370
  • Joined

  • Last visited

  • Days Won

    5

Xpajun last won the day on June 29 2011

Xpajun had the most liked content!

Profile Information

Recent Profile Visitors

29,293 profile views
  1. Xpajun

    Product listing

    YesI can understand that for a program that adds bits on to your image but in osc just set the width of your images and if you have a square image a square image will be on the page - the answer to the original question
  2. Xpajun

    Product listing

    Just set the image settings width to 250 height can be left blank or auto
  3. I used ANC_ukpostarea from the add ons and adapted to include all european countries and their territories as well - it should be easy to adapt for what you want - Its a combination of a database table as Gary has pointed out above and a shipping rate table
  4. Xpajun

    Buttons Script

    Problem solved - browser
  5. Xpajun

    Buttons Script

    Thanks for your reply... have to think now - could it be xampp causing the problem... Looks like the button problem will be going on hold until I upload the finished site to my online server
  6. Xpajun

    Buttons Script

    I can't believe that it's been over 4 years since I've been posting on this forum, just shows how well osc has been working for me... However I'm back again because I know it's time to upgrade to Responsive-osCommerce, I'm currently working on the back end adding my required mods which means a lot of upgrading to handle php7 (especially since some of them date from 2.2). I'm using v2.3.4.1 CE downloaded on 17 Jan and working on XAMPP/php7 I'm having problems with the buttons not working: <a href="<?php echo tep_href_link('edit_orders_add_product.php', 'oID=' . $_GET['oID'] . '&step=1'); ?>" target="blank" onClick="openWindow('<?php echo tep_href_link('edit_orders_add_product.php', 'oID=' . $_GET['oID'] . '&step=1'); ?>','addProducts');return false"><?php echo tep_image_button('button_add_article.gif', TEXT_ADD_NEW_PRODUCT); ?></a><input type="hidden" name="subaction" value=""> Won't open the window, but if I right click the button and choose "open in new window" the rest of the script works I have a feeling that it's been wrong for the last 5 or so years but it worked OK with php5.3 so have never bothered to try rewriting it before. Can anyone give me an idea of how it should read?
  7. Hi joli, just seen this, the logos are loaded in categories in admin in the normal way, in my case as gif files - Apart from the coding I posted (and the superfish add on) everything is already in place in osC
  8. Xpajun

    [Addon} Superfish Categories Box

    As promised: add c.categories_image to the select query: $categories_query_raw = " select c.categories_id, c.parent_id, c.categories_image, cd.categories_name add 'image' => $categories['categories_image'], to the array: if ($categories_id != 0) { $categories_data[$index] = array ( 'id' => $categories_id, 'name' => $categories['categories_name'], 'image' => $categories['categories_image'], 'parent_id' => $categories['parent_id'], 'path' => $path_string ); finally add $output .= ' <img src="images/' . $category['image'] . '"> '; before or after the name output foreach( $data_array as $category ) { if( $category['parent_id'] == 0 ) { $output .= ' <li class="sf-menu sf-vertical ui-state-default ui-corner-all" onmouseover="$(\'a#categories\').removeClass(\'ui-state-default\').addClass(\'ui-state-hover ui-state-focus\');" onmouseout="$(\'a#categories\').addClass(\'ui-state-default\').removeClass(\'ui-state-hover ui-state-focus\'">' . PHP_EOL; } else { $output .= ' <li class="subcat">' . PHP_EOL; } $output .= ' <a href="' . tep_href_link( FILENAME_DEFAULT, $category['path'], 'NONSSL' ) . '">'; $output .= ' <img src="images/' . $category['image'] . '"> '; $output .= $category['name']; $output .= '</a>' . PHP_EOL; if( $category['subcat'] !== false ) { $output .= $this->format_data( $category['subcat'], true ); } $output .= ' </li>' . PHP_EOL; } The result: The logos are 30px high while the pics are 180px wide - you have to make the pics all the correct (similar) size
  9. Xpajun

    [Addon} Superfish Categories Box

    Thank you Jim - I was on the right track - it was the output that I couldn't get right, I've now done it, I will post the code and a screen capture of how it looks when I reduce the images a littie ;)
  10. Xpajun

    [Addon} Superfish Categories Box

    Hi, First off many thanks for this mod - it's something I've been looking for for a long time... I want to add images to the categories in this mod, so far all I have managed is the image name :rolleyes: I've also tried using tep_db_fetch_array($image) to no avail Can anyone point me in the direction I should be looking Thanks
  11. Xpajun

    Secpay PayPoint Issue

    Forget the latter half of my above post - the weird invoice is due to a customer discount that doesn't work properly :rolleyes: At about line 152 of paypoint_secpay.php FIND: list($REQUEST_URI, $CHECK_SUM) = split('hash=', $HTTP_SERVER_VARS['REQUEST_URI']); REPLACE WITH: list($REQUEST_URI, $CHECK_SUM) = explode('hash=', $HTTP_SERVER_VARS['REQUEST_URI']);
  12. Xpajun

    Secpay PayPoint Issue

    That may fix it - but very temporately (deprecated functions are done for a reason) but it is not the answer. George, lines 150 - 160 read: if ( ($HTTP_GET_VARS['valid'] == 'true') && ($HTTP_GET_VARS['code'] == 'A') && !empty($HTTP_GET_VARS['auth_code']) && empty($HTTP_GET_VARS['resp_code']) && !empty($HTTP_GET_VARS[tep_session_name()]) ) { $DIGEST_PASSWORD = MODULE_PAYMENT_PAYPOINT_SECPAY_READERS_DIGEST; list($REQUEST_URI, $CHECK_SUM) = split('hash=', $HTTP_SERVER_VARS['REQUEST_URI']); if ($HTTP_GET_VARS['hash'] != md5($REQUEST_URI . $DIGEST_PASSWORD)) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_GET_VARS[tep_session_name()] . '&payment_error=' . $this->code ."&detail=hash", 'SSL', false, false)); } } else { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, tep_session_name() . '=' . $HTTP_GET_VARS[tep_session_name()] . '&payment_error=' . $this->code, 'SSL', false, false)); } } explode does work as you suggest but I got a weird invoice with it: Waiting for Monday now to check with PayPoint tech staff
  13. Xpajun

    Different shipping costs in UK

    Oza - sorry for the long delay in posting - been very busy... this is the one I used and adapted for UK Parcelforce and then International Parcelforce - it works very well but your customes have to use the correct format for the UK postcode I.e XX1 2ZZ because the program looks for the space to set the shipping price
  14. Xpajun

    Different shipping costs in UK

    Use a shipping zone for postcodes - what courier are you using?
  15. Xpajun

    OSC 2.3 order editor?

    Go to Admin>orders select order you want to delete and click delete ;)
×