Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

doc_uk

Pioneers
  • Posts

    12
  • Joined

  • Last visited

Profile Information

doc_uk's Achievements

  1. Hi When Paypal Express Checkout is first displayed on the Paypal site from the shopping cart page, there is no Tax/VAT shown on the products, which I think is rather confusing to the customers here in the UK since the price should obviously be 20% more, as per the prices on our website. Once the user has logged into Paypal then the correct costs, VAT and shipping are shown. Is there any way of getting the products to show the correct VAT on the summary page before the user logs in, with the assumption that the end user is in the UK (which is for the majority of our customers)? Thanks Doc
  2. Hi I have been trying to trace this issue for several days now, and am tearing my hair out. Using Express Checkout from the shopping_cart page, the information passed to Paypal is completely wrong for VAT and carriage - no VAT is on the order, and the carriage options all selected are international ones, no local (UK) ones. If I log into my account on the shop then use Express Checkout, all the right values are there; but that somewhat defeats the object of Express Checkout!! Loggin what is being pushed up to Paypal, there is no VAT/tax on the products, whereas in reality it should be 20%. I have been back-tracing thru the code, and noticed that when I get tep_get_tax_description("2",Null,Null) called then this is when the wrong shipping (so assume wrong country) and tax are being generated - I reckon the call should be either tep_get_tax_description("2",-1,-1) or tep_get_tax_description("2","222","237") I am using the Paypal Express Checkout as supplied with OSC 2.3.3 Any ideas what I am missing before I lose what little hair I have left? Thanks, Doc
  3. Hi Tom I'd already sussed where to put the code (I can follow the code fine!), but my php is pretty weak, so here goes........ if (CFG_MASTER_SWITCH=="On") $calculate = true; else $calculate=false; //Doc mod start $sql="select configuration_key as cfgKey, configuration_value as cfgValue from configuration where (configuration_group_id='333' or configuration_group_id='4')"; $result=@mysql_query($sql,$dbconn); //got config vars $tpath=CFG_TN_CACHE_DIRECTORY; if ($tpath{0}="/") $tpath2=str_replace("/","",$tpath);} else {$tpath2=$tpath;} //Doc - my config var has leading slash, some may not?? $imagetest =$tpath2.$cache_dir."/".$src.".thumb_".$width."x".$height."_".LAST_HASH.strstr($src,"."); // Doc - strsrc on end of string is in case some use .jpeg extensions if (file_exists($imagetest)) { $image = '<img src="' . $imagetest . '"'; $calculate=false; } // end Doc mod Speed is greatly improved, taking a fraction of the original time. Doc
  4. Hi Tom I understand the cache filenames apart from the last hex string e.g. ft897s.jpg.thumb_100x80_3f6d9135b85b61e3c7f77a0c48ba0217.jpg and ft897s.jpg.thumb_100x80_dd9e1a2566f58b29c89ea2fd3bd8a4c2.jpg How are these generated and what do they mean? Are the files the same? I can code the rest of it then. Thanks, Doc
  5. Hi Tom Yes, it's a shared server, but the load it creates seems disproportionate to the calls it does. Interestingly, what did speed it up about 25% was the following from the Contribs page...... "Instead of "&" I used "In order to get better HTML validation and SEO please do the following change in step 6 (/catalog/includes/functions/html_output.php) in Install Instructions (in README file) //Return the html $image = '<img src="imagemagic.php?img='.$src.'&w='. tep_output_string($width).'&h='.tep_output_string($height).'&page='.$page.'"'; " I will look into your suggestion about recoding the page Thanks, Doc
  6. Hi Tom I posted before about how ImageMagic slowed down my site, but you were AWOL on exams I believe. There was nothing glaring in the server logs as to the problem. Speed of the site is slowed down by 75-125% of the original, which somewhat defeats the object of the contrib. Got any ideas? Thanks, Doc
  7. Hi lparr I found that the html output fix on the Contribs page (for sorting out ampersands "&") made the site load a bit quicker, but still not up to the speed I would expect. Still goti it disabled for now :'( Doc
  8. Hi I've installed ImageMagic onto a site I admin (www.radioworld.co.uk) and it has slowed the site down terribly - it is 2-3 times slower at loading the frontpage than with the images fullsize. There is no filename encryption, I've tried other various settings to speed things up, all to no avail so far. The gut feeling I get is that the Imagemagic calls to pull the images in (even when cached) is slow for whatever reason. Anyone got any ideas? Thanks, Doc
×
×
  • Create New...