Jump to content

blecky

Members
  • Content count

    34
  • Joined

  • Last visited

Posts posted by blecky


  1. I use a modified version of this great contribution and it works excellent. Thanks for a good work.

     

    Now I wanted to implement the UPS-XML module and that seems to screw things up. I no longer can select a UPS-XML shipping option, it shows wrong costs and it appears it has something to do with the encoding (where the '_' is added). During checkout, when the shipping option is to be selected, everything works fine, so it must be something with the shipping estimator itself. Any idea or suggestion?

     

    The testshop runs under http://shoptest.laserpointer4u.de/catalog. It is for testing only, so you can play around. Access is granted to user test and password test

     

    rgds


  2. tks..  I installed the curl extension to PHP...

     

    I put in the UPS access key.. userid.. password.... .

     

    I enable the log file upsxml.log

     

    I have no response from UPS...

    There seems to be a bug in older php curl versions. It does not work with 4.1, but it does with 4.3.4.


  3. I am a little confused: in the array European Union is a inconsistancy. In the original file the entry is:

     

    // European Union Origin

    'European Union Origin' => array(

    '07' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_07,

    '08' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_08,

    '11' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_11,

    '54' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_54,

    '64' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_65,

    '65' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_69

    ),

     

    but should it not be:

     

    // European Union Origin

    'European Union Origin' => array(

    '07' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_07,

    '08' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_08,

    '11' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_11,

    '54' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_54,

    '64' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_64,

    '65' => MODULE_SHIPPING_UPSXML_SERVICE_CODE_EU_ORIGIN_65

    ),

     

    Does anyone know what is correct??

     

    rgds

    Werner


  4. Hi Ivan,

     

    I use the correct link and it works, if I have "Use Save URL's" in the admin disabled, but it does not work if it is enabled (the variable $products_id remains empty). I was not yet able, to find out why.

     

     

    // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled

    if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {

    if (strlen(getenv('PATH_INFO')) > 1) {

    $GET_arrays = array();

    $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $HTTP_SERVER_VARS['PHP_SELF']);

    $vars = explode('/', substr(getenv('PATH_INFO'), 1));

    for ($i=0, $n=sizeof($vars); $i<$n; $i++) {

    if (strpos($vars[$i], '[]')) {

    $GET_arrays[substr($vars[$i], 0, -2)][] = $vars[$i+1];

    } else {

    $HTTP_GET_VARS[$vars[$i]] = $vars[$i+1];

    }

    $i++;  

    }

     

    if (sizeof($GET_arrays) > 0) {

    while (list($key, $value) = each($GET_arrays)) {

    $HTTP_GET_VARS[$key] = $value;

    }

    }

    }

    } else {

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

    }

     

     

    Re: my script

    It is not final yet, I want to make it look better, like different font for the paragraph header. When it's done, I will give it to the community.


  5. Ivan:

     

    Yes, you visited the right site. In order to get it work, I changed the link in product_info.php - I don't use the tep_href_link function. If I use that function I get an error message, because the products_id variable is then empty and the script cannot find the image ....

     

    I'm using the same Opera version you do. If I use the standard HTML link, nothing happens in Opera, MSIE and Mozilla work, although a customer reported he is not able to view the pdf datasheet with MSIE.

     

    Obviously, the problem is caused by the empty variable. As said before, I wrote a script, which creates a pdf file for our sales and shipping terms. It is very simply - not as fas as complex as yours. Get the same results: If I use a HTML link it is loaded (in all browsers), if I use the tep_href_link function I get an error, because the image is not found. If you like, you can view it in the German version of the store. Just select AGB from the info box and the link to the pdf file is at the bottom of the return page. Or directly http://shop.laserpointer4u.de/catalog/agb.pdf?la=DE.

     

    I am rather frustrated, because it should not be a big deal to add you contribution and now this.

     

    Thanks for your help!

    rgds


  6. I was able to install the contributiion and got it to work. It appears there is no Problem with Mozilla and MSIE, but the PDF Data sheet does not load if I use Opera. Meanwhile, I wrote a little script which uses the same library to parse my sales conditions and to create a pdf file and it turned out, the problem occurs, when the application_top.php is included. There must be something in that file or other scripts loaded by that file, which cause the problem.

     

    :?: Has somebody else the same experience? and perhaps a solution for it?

     

    rgds


  7. I wanted to do some more modifications because it seems there still is a problem with tax calculation (the prices in my database are net, but they are displayed with tax, because the German authorities require that a B2B shop shows all prices with tax). We have also customers from other countries outside the EU and those customers do not need to pay tax. Therefore, I have 3 tax and shipping zones: Germany, Rest of the EU, Rest of the World. The first and the second need to pay tax, the third does not pay tax.

     

    The idea is, when a non-taxable country is selected, all (also the cart content) prices do not include tax, in the other case all do.

     

    I am a novice in PHP and I am also new to this great shop package, so it is hard to find out what to do. I (and I'm sure many other) would be grateful, if you could help.

     

    Thanks for your attention and time!

     

    regards

    Werner


  8. It appears it was my fault. I checked the downloaded file again and the code is ok. Sorry, please accept my appologize. I made some modifications to the script and put some extra information in the language files. This zip file can be found at our ftp server ftp.optlectra.de/misc/shipcart.zip.

     

    I wanted to do some more modifications because it seems there still is a problem with tax calculation (the prices in the database are net, but they are displayed with tax). The German authorities require that a B2B shop shows all prices with tax. We have also customers from other countries outside the EU and those customers do not need to pay tax. Therefore, I have 3 tax and shipping zones: Germany, Rest of the EU, Rest of the World. The first and the second need to pay tax, the third does not pay tax.

     

    The idea is, when a non-taxable country is selected, all (also the cart content) prices do not include tax, in the other case all do.

     

    I am a novice in PHP and I am also new to this great shop package, so it is hard to find out what to do. I (and I'm sure many other) would be grateful, if you could help.

     

    Thanks for your attention and time!

     

    regards

    Werner

×