Latest News: (loading..)

Xpajun

Members
  • Content count

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Xpajun last won the day on June 29 2011

Xpajun had the most liked content!

About Xpajun

Profile Information

  1. 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
  2. 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
  3. 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 ;)
  4. 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
  5. 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']);
  6. 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
  7. 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
  8. Use a shipping zone for postcodes - what courier are you using?
  9. Go to Admin>orders select order you want to delete and click delete ;)
  10. Yeah customers are quite good at finding out about that - especially international ones How are you shipping Business airmail or personal airmail i.e. do you have an account with Royal Mail? Sounds good Loks as though that bit is messed up - I'll start with the last... sort order is the order the shipping is shown on the shipping page so 1 appears above 2, 2 above 3 and so on Let's take the nUmbers that appear on zones 3:2.50 means that anything upto 3 is shipped at 2.50 In our case using weights anything up to 3kgs is shipped for £2.50 or someone that ships wine 3 bottles for 2.50€ Now these tables are written in such a way that you can use multiple prices/'weights' like so: .1:7.54,.2:8.06,.3:8.58,.5:9.62,1:12.22,1.5:14.81,2:17.41 The numbers before the : are the 'weights' and the numbers after the : are the price so anything upto .1kgs costs £7.54 anything between .1kgs and .2kgs costs £8.06 right the way up to 2kgs costing £17.41 Whatever unit you choose 'weight'wise must remain the same throughout For safety many store owners will put something like 200:999 as the last weight/price which'll make everything over 2kgs (your max airmail weight if you're not selling books) £999 to send otherwise it will default to £0.00
  11. @@Carol A simple way would be to add a number in front of your weight i.e. Small packets = 105,110,115,120 Medium packets = 205,210,215,220 Large Packets =305,310,315,320 And then price them up into one zone 105:0.5,110:0.8,115:1.0,120:1.75,205:0.95,210:1.5,215:1.75,220:2,305:1.25,310:1.5,315:1.95,320:2.5 and so on Oh... and don't show the weight on you invoices Don't forget your 'weights' are just a number the number can indicate anything you want to e.g. bottles, yards, metres, kgs or even lbs. I have a list of all the euro country iso codes used by Royal Mail might even be able to come up with europe and australasia if you are not a RM business customer Add the signed for price into your pricing for airmail
  12. This wonderful line is in your cookie_usage.php (it shows when customers have their browser set not to accept cookies and your store is set to force cookie use) osC cookies are not the tracking cookies that the EU are getting concerned about
  13. Have you changed the admin name in catalog/your_new_admin_folder/includes/configure.php define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); change this to the new name of your admin folder
  14. I would say 15 minutes is too short, 24 hours should be minimum but a month would be the optimum. It is possible that Bad Conduct will ban an "innocent" that has an infected computer; a redirect to a 403 that explains what has happened and why would be a good thing. Innocent - there is no such thing as an innocent with an infected computer that will try to hack your store they lose their right to innocence when they failed to take precautions and allowed their computer to become infected, however an explanation stating that their computer 'may' be infected would not come amiss
  15. 2.3.1 installation gives you the option to rename your admin, doing it at this time also saves the problem of not getting the configure.php change right. htpasswd on 2.3 is a bit of a problem causer - the user name and password MUST be the same as admin login details otherwise the login won't work I've been using Bad Behavior Block for some time, I like it for the following: It provides a first line of defence against hackers It protects your whole website not just osC It is easily adaptable to include other hack attempt conditions It bans the hacking IP address - there is much discussion on this principle but I would say that the ban stops that IP from continuous attempts to hack your store (sometimes in the region of 240 attempts per minute) thus easing server load. The ban is only directed at an active hacker, so there is no need for ad-hock bans of complete countries thus allowing you to trade anywhere in the world At the end of the day you can always remove banned IP addresses from the list - after all if they attempt to hack your store again they will be banned Thought you might like a list of reasons why I think it is useful with osC Gary - yes there are others that will say that their contribution makes it redundant but they should understand that this contribution, being first in line, makes their one redundant, but that doesn't stop me from using theirs as a second line of defence...