Jump to content

webmasterpitoyo

Members
  • Content count

    30
  • Joined

  • Last visited

Posts posted by webmasterpitoyo


  1. @webmasterpitoyo

     

    pit

     

    can you access once your database via phpMyadmin and take a look at the featured table?

    Tell me if the field expires_date has set NULL set to Yes or No

    @@Tsimi

    actually I dont really understand what your question mean .. this attached I show you the dump sgl file for featured table..

    -- phpMyAdmin SQL Dump
    -- version 4.0.10.14
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost:3306
    -- Generation Time: Jul 13, 2016 at 09:32 PM
    -- Server version: 5.6.30
    -- PHP Version: 5.4.31
    
    SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
    SET time_zone = "+00:00";
    
    CREATE TABLE IF NOT EXISTS `featured` (
      `featured_id` int(11) NOT NULL AUTO_INCREMENT,
      `products_id` int(11) NOT NULL DEFAULT '0',
      `featured_date_added` datetime DEFAULT NULL,
      `featured_last_modified` datetime DEFAULT NULL,
      `expires_date` datetime DEFAULT NULL,
      `date_status_change` datetime DEFAULT NULL,
      `status` int(1) DEFAULT '1',
      PRIMARY KEY (`featured_id`),
      KEY `idx_products_id` (`products_id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
    
    INSERT INTO `featured` (`featured_id`, `products_id`, `featured_date_added`, `featured_last_modified`, `expires_date`, `date_status_change`, `status`) VALUES
    (9, 51, '2016-07-13 14:37:16', '2016-07-13 21:13:01', NULL, NULL, 1),
    (10, 54, '2016-07-13 16:52:11', NULL, NULL, NULL, 1),
    (11, 61, '2016-07-13 21:12:51', NULL, NULL, NULL, 1);
    

    rgds,

    pit


  2. Dear @@Tsimi

     

    I tried your suggestion above changing line 36 and 53.. but both not work.. still error coming whether it is a new featured product or updating the expiry date..

     

    I just try my way (only I dont now if this changing is a good solution or not), with:

     

    on line 42

    tep_db_query("insert into featured (products_id, featured_date_added, expires_date, status) values ('" . $_POST['products_id'] . "', now(), '" . $expires_date . "', '1')");
    

    change with

    tep_db_query("insert into featured (products_id, featured_date_added, expires_date, status) values ('" . $_POST['products_id'] . "', now(), " . (tep_not_null($expires_date) ? "'" . tep_db_input($expires_date) . "'" : 'null') . ", '1')");
    

    and for updating on line 54

    tep_db_query("update featured set featured_last_modified = now(), expires_date = '" . $expires_date . "' where featured_id = '" . $_POST['featured_id'] . "'");
    

    change with

    tep_db_query("update featured set featured_last_modified = now(), expires_date = " . (tep_not_null($expires_date) ? "'" . tep_db_input($expires_date) . "'" : 'null') . " where featured_id = '" . $_POST['featured_id'] . "'");
    

    with this changing.. I try to simulate for a new featured product or an updating with an empty expiry date, both is working fine..

     

    pls comment for this,

    thanks,

    rgds,

    pit


  3.  

    @@webmasterpitoyo

     

    Can you try the following.

     

    Open your admin/featured.php file and look for the following code around line 36

    $expires_date = '';
    if (tep_not_null($expdate)) {
    $expires_date = substr($expdate, 0, 4) . substr($expdate, 5, 2) . substr($expdate, 8, 2);
    }

    replace that with this

    if (!isset($expires_date) || $expires_date == '') {
    $expires_date = NULL;
    } else {
    $expires_date = substr($expdate, 0, 4) . substr($expdate, 5, 2) . substr($expdate, 8, 2);
    }

    sorry.. I am not try yet this change.. I have something to do first.. back maybe in some hours..

     

    rgds,

    pit


  4. dear @@Tsimi

     

    Im sorry maybe Im still in 'elementery school' for this php things  :) , but I just comparing the file between catalog/admin/featured.php (from this add on) and catalog/admin/specials.php (from native osc2.3.4 BS edge).. there is a different script for handling inserting value to the db table for expiry date (I put it on bold):

     

    in featured.php:

    tep_db_query("insert into featured (products_id, featured_date_added, expires_date, status) values ('" . $_POST['products_id'] . "', now(), '" . $expires_date . "', '1')");

     

    in specials.php:

    tep_db_query("insert into " . TABLE_SPECIALS . " (products_id, specials_new_products_price, specials_date_added, expires_date, status) values ('" . (int)$products_id . "', '" . tep_db_input($specials_price) . "', now(), " . (tep_not_null($expires_date) ? "'" . tep_db_input($expires_date) . "'" : 'null') . ", '1')");

     

    does it have any correlation with the error I get?

    kindly advise,

    thanks,

    rgds,

    pit


  5. @@Tsimi , tx for the respons

     

    If I leave the expiry date empty, then the whole admin page become blank and get the error:

     

    ---------------

    1292 - Incorrect datetime value: '' for column 'expires_date' at row 1

    insert into featured (products_id, featured_date_added, expires_date, status) values ('39', now(), '', '1')

    [TEP STOP]

    ------------------

     

    I use the OSC 2.3.4 BS Edge download at jun 2016.

     

    thanks,

    rgds,

    pit


  6. helo @@auzStar

     

    I like the appearance of the carousel .. even I think with  jQuery Owl Carousel give a better handling especially in smartphone or tablet view.

     

    I just wonder that the 'Featured product carousel' idea will use the jQuery Owl Carousel also. I think the idea of featured product in front page is something that we all need. There is an addon available in http://addons.oscommerce.com/info/9439 .. but I hope there will be a jQuery Owl Carousel version for a better look..

     

    thanks,

    pit


  7. Thank for the advise, Jim..

     

     

    Herewith I copy the page when costumer_greeting module set to true:

    <!DOCTYPE html>
    <html dir="ltr" lang="id">
    <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Pitoyo.com Webstore</title>
    <base href="http://pitoyo.com/webstore3/">
    
    <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- font awesome -->
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
    
    <link href="custom.css" rel="stylesheet">
    <link href="user.css" rel="stylesheet">
    
    <!--[if lt IE 9]>
       <script src="ext/js/html5shiv.js"></script>
       <script src="ext/js/respond.min.js"></script>
       <script src="ext/js/excanvas.min.js"></script>
    <![endif]-->
     
    <script src="ext/jquery/jquery-2.2.3.min.js"></script>
    
    <noscript><div class="no-script"><div class="no-script-inner"><p><strong>JavaScript seems to be disabled in your browser.</strong></p><p>You must have JavaScript enabled in your browser to utilize the functionality of this website. <a href="http://www.enable-javascript.com/" target="_blank" rel="nofollow">Click here for instructions on enabling javascript in your browser</a>.</div></div></noscript>
    <style>.no-script { border: 1px solid #ddd; border-width: 0 0 1px; background: #ffff90; font: 14px verdana; line-height: 2; text-align: center; color: #2f2f2f; } .no-script .no-script-inner { margin: 0 auto; padding: 5px; } .no-script p { margin: 0; }</style></head>
    <body>
    
      <nav class="navbar navbar-inverse navbar-no-corners navbar-custom" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-navbar-collapse-core-nav">
      <span class="sr-only">Toggle Navigation</span>  <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
    <a class="navbar-brand" href="http://pitoyo.com/webstore3/index.php">Pitoyo.com Webstore</a></div>
          
        <div class="collapse navbar-collapse" id="bs-navbar-collapse-core-nav">
          <ul class="nav navbar-nav navbar-right">
    <li class="nav navbar-text"><i class="fa fa-shopping-cart"></i> 0 items</li></ul>
        </div>
      </div>
    </nav>
      
      <div id="bodyWrapper" class="container-fluid">
        <div class="row">
    
          
    <div class="modular-header">
      <div id="storeLogo" class="col-sm-6">
      <a href="http://pitoyo.com/webstore3/index.php"><img src="images/store_logo.png" alt="Pitoyo.com Webstore" title="Pitoyo.com Webstore" width="200" height="50" class="img-responsive" /></a></div>
    
    
    <div class="col-sm-6">
      <div class="searchbox-margin"><form name="quick_find" action="http://pitoyo.com/webstore3/advanced_search_result.php" method="get" class="form-horizontal">  <div class="input-group"><input type="search" name="keywords" required placeholder="Cari" class="form-control" /><span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button></span>  </div></form></div></div>
    
    
    <div class="col-sm-12">
      <ol  itemscope itemtype="http://schema.org/BreadcrumbList" class="breadcrumb"><li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="http://www.pitoyo.com/webstore3/" itemprop="item"><span itemprop="name"><i class="fa fa-home"><span class="sr-only">Home</span></i></span></a><meta itemprop="position" content="1" /></li>
    <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="http://pitoyo.com/webstore3/index.php" itemprop="item"><span itemprop="name">Katalog</span></a><meta itemprop="position" content="2" /></li>
    </ol></div>
    
    </div>
    
    <div class="clearfix"></div>
    
    <div class="body-sans-header clearfix">
    
    
          <div id="bodyContent" class="col-md-8 col-md-push-2">
    
    <div class="row">
    
    
    <!-- Start cm_fp_customer_greeting module -->
      <div id="customer_greeting" class="col-sm-12">
        <div class="alert alert-info">
          
    

    seems like it couldn't find tep_customer_greeting.. ?

     

    Tx, rgds,

    Pit


  8. Helo Jim, Tx for the respon

    I use two languages: English and Indonesia... the catalog/include/languages/<language>/module/content/front_page/<all module> I put them on both language.. 

     

    I use the fresh Bootstrap EDGE: https://github.com/g...hive/master.zip and so far I just only made a change adding the add-on:

    - State Selector BS 1.2

    - Admin Login Group for OSC2.3

    - Bank Trasnfer Payment Module

    - Multi GeoZone and MultiTable

     

    the Indonesia language module, I made myself just by copying all from folder english on new forder indonesia, as well as english.php duplicating to indonesia.php and editing all script inside which has to translate between tag ' - '.

     

    Did I missed something?

     

    tx, rgds

    Pit


  9. Helo there,

     

    I use the OSC 2.3.4 bootstrap so I installed the addon from the Oscommerce_responsive module folder. Everything seems OK, only the costumer_greetings module that not worked. everytime I assign this module 'true', so the store page become blank only the header tag shows, even left and right column are missing too. The rest of the module works fine

    I double check everything, seems nothing wrong with my installation... any suggestion?

     

    In the mean time, I put back on the original index.php.. with the native index content module

     

    thanks

    rgds

    pit


  10. I use paypal express checkout to process my payments but the oringial ext/includes/modules/payment/express.php is not coded to redirect mobile users back to mobile_checkout_confirmation. I believe an if else statement can fix this, the code below is close to what i need to implement but i cant figure out where to put it, or even if it is gonna work without throwing syntax errors, i could use a little guidance.

    if ($ref string) == mobile_checkout_process.php then {
    tep_redirect(tep_mobile_link(FILENAME_MOBILE_CHECKOUT_CONFIRMATION, '', 'SSL'));
    }else{
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '',, 'SSL'));
    }
    

     

    It's my understanding the placement of this code above, should be simple with the redirect. But being as theres an else clause pertaining to errors I cant figure it out.

     

    ...
    ...
    if (!tep_session_is_registered('payment'))
    			 tep_session_register('payment');
    		 $payment = $paypal_express->code;
    		 if (!tep_session_is_registered('ppe_token'))
    			 tep_session_register('ppe_token');
    		 $ppe_token = $response_array['TOKEN'];
    		 if (!tep_session_is_registered('ppe_payerid'))
    			 tep_session_register('ppe_payerid');
    		 $ppe_payerid = $response_array['PAYERID'];
    		 [color=#FF6600]tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));[/color]
    	 } else {
    		 if (!tep_session_is_registered('shipping'))
    			 tep_session_register('shipping');
    		 $shipping = false;
    		 $sendto = false;
    		 if (!tep_session_is_registered('payment'))
    			 tep_session_register('payment');
    		 $payment = $paypal_express->code;
    		 if (!tep_session_is_registered('ppe_token'))
    			 tep_session_register('ppe_token');
    		 $ppe_token = $response_array['TOKEN'];
    		 if (!tep_session_is_registered('ppe_payerid'))
    			 tep_session_register('ppe_payerid');
    		 $ppe_payerid = $response_array['PAYERID'];
    
    		 [color=#FF6600]tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
    	 }
     } else {
    	 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($response_array['L_LONGMESSAGE0']), 'SSL'));
     }[/color]
     break;
    
    $params['METHOD'] = 'SetExpressCheckout';
     $params['PAYMENTREQUEST_0_PAYMENTACTION'] = ((MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_METHOD == 'Sale') ? 'Sale' : 'Authorization');
     $params['RETURNURL'] = tep_href_link('ext/modules/payment/paypal/express.php', 'osC_Action=retrieve', 'SSL', true, false);
     $params['CANCELURL'] = tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL', true, false);
     $params['PAYMENTREQUEST_0_CURRENCYCODE'] = $order->info['currency']; #AUD, CAD, EUR, GBP, JPY, USD
     if ($order->content_type == 'virtual') {
    	 $params['NOSHIPPING'] = '1';
     }
     $nProd = sizeof($order->products);
     $subtotal = 0;
     for ($i = 0; $i < $nProd; ++$i) {
    	 $subtotal += $paypal_express->format_raw($order->products[$i]['final_price']) * $order->products[$i]['qty'];
     }
     $difst = 0;
     if ($subtotal != $paypal_express->format_raw($order->info['subtotal'])) {
    	 $difst = $paypal_express->format_raw($order->info['subtotal']) - $subtotal;
     }
    
     $order->products[$nProd-1]['final_price'] += $difst;
     for ($i = 0; $i < $nProd; ++$i) {
    	 $params['L_PAYMENTREQUEST_0_NAME' . $i] = $order->products[$i]['name'];
    	 $params['L_PAYMENTREQUEST_0_NUMBER' . $i] = $order->products[$i]['model'];
    	 #$params['L_PAYMENTREQUEST_0_DESC' . $i] = $order->products[$i]['description'];
    	 $params['L_PAYMENTREQUEST_0_AMT' . $i] = $paypal_express->format_raw($order->products[$i]['final_price']);
    	 $params['L_PAYMENTREQUEST_0_QTY' . $i] = $order->products[$i]['qty'];
     }
     require_once(DIR_WS_CLASSES . 'order_total.php');
     $order_total_modules = new order_total;
     $order_totals = $order_total_modules->process();
     $order_details = array();
     $order_details['subtotal'] = 0;
     $order_details['shipping_cost'] = 0;
     $order_details['tax'] = 0;
     $order_details['discount'] = 0;
     $order_details['handling'] = 0;
     $order_details['total'] = 0;
     foreach ($order_totals as $order_total) {
    	 if ($order_total['code'] == 'ot_subtotal') {
    		 $order_details['subtotal'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_shipping') {
    		 $order_details['shipping_cost'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_tax') {
    		 $order_details['tax'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_total') {
    		 $order_details['total'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_redemptions' || $order_total['code'] == 'ot_gv' || $order_total['code'] == 'ot_coupon') {
    		 $order_details['discount'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_insurance') {
    		 $order_details['handling'] += $order_total['value'];
    	 } else {
    		 if ($order_total['value'] > 0) {
    			 $order_details['handling'] += $order_total['value'];
    		 } else {
    			 $order_details['discount'] += $order_total['value'];
    		 }
    	 }
     }
     $params['PAYMENTREQUEST_0_ITEMAMT'] = $paypal_express->format_raw($order_details['subtotal']);
     $params['PAYMENTREQUEST_0_TAXAMT'] = $paypal_express->format_raw($order_details['tax']);
     $params['PAYMENTREQUEST_0_SHIPPINGAMT'] = $paypal_express->format_raw($order_details['shipping_cost']);
     $params['PAYMENTREQUEST_0_SHIPDISCAMT'] = $paypal_express->format_raw($order_details['discount']);
     $params['PAYMENTREQUEST_0_HANDLINGAMT'] = $paypal_express->format_raw($order_details['handling']);
     $params['PAYMENTREQUEST_0_AMT'] = $paypal_express->format_raw($order_details['total']);
     $post_string = '';
     //print_r($params);
     //die();
     foreach ($params as $key => $value) {
    	 $post_string .= $key . '=' . urlencode(trim($value)) . '&';
     }
     $post_string = substr($post_string, 0, -1);
     $response = $paypal_express->sendTransactionToGateway($api_url, $post_string);
     $response_array = array();
     parse_str($response, $response_array);
    [color=#FF8C00]	 if (($response_array['ACK'] == 'Success') || ($response_array['ACK'] == 'SuccessWithWarning')) {
    	 tep_redirect($paypal_url . '&token=' . $response_array['TOKEN']);
     } else {
    	 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($response_array['L_LONGMESSAGE0']), 'SSL'));
     }[/color]
     break;
    }
    
    [color=#FF9900]tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));[/color]
    

    I use paypal express checkout to process my payments but the oringial ext/includes/modules/payment/express.php is not coded to redirect mobile users back to mobile_checkout_confirmation. I believe an if else statement can fix this, the code below is close to what i need to implement but i cant figure out where to put it, or even if it is gonna work without throwing syntax errors, i could use a little guidance.

    if ($ref string) == mobile_checkout_process.php then {
    tep_redirect(tep_mobile_link(FILENAME_MOBILE_CHECKOUT_CONFIRMATION, '', 'SSL'));
    }else{
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '',, 'SSL'));
    }
    

     

    It's my understanding the placement of this code above, should be simple with the redirect. But being as theres an else clause pertaining to errors I cant figure it out.

     

    ...
    ...
    if (!tep_session_is_registered('payment'))
    			 tep_session_register('payment');
    		 $payment = $paypal_express->code;
    		 if (!tep_session_is_registered('ppe_token'))
    			 tep_session_register('ppe_token');
    		 $ppe_token = $response_array['TOKEN'];
    		 if (!tep_session_is_registered('ppe_payerid'))
    			 tep_session_register('ppe_payerid');
    		 $ppe_payerid = $response_array['PAYERID'];
    		 [color=#FF6600]tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));[/color]
    	 } else {
    		 if (!tep_session_is_registered('shipping'))
    			 tep_session_register('shipping');
    		 $shipping = false;
    		 $sendto = false;
    		 if (!tep_session_is_registered('payment'))
    			 tep_session_register('payment');
    		 $payment = $paypal_express->code;
    		 if (!tep_session_is_registered('ppe_token'))
    			 tep_session_register('ppe_token');
    		 $ppe_token = $response_array['TOKEN'];
    		 if (!tep_session_is_registered('ppe_payerid'))
    			 tep_session_register('ppe_payerid');
    		 $ppe_payerid = $response_array['PAYERID'];
    
    		 [color=#FF6600]tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
    	 }
     } else {
    	 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($response_array['L_LONGMESSAGE0']), 'SSL'));
     }[/color]
     break;
    
    $params['METHOD'] = 'SetExpressCheckout';
     $params['PAYMENTREQUEST_0_PAYMENTACTION'] = ((MODULE_PAYMENT_PAYPAL_EXPRESS_TRANSACTION_METHOD == 'Sale') ? 'Sale' : 'Authorization');
     $params['RETURNURL'] = tep_href_link('ext/modules/payment/paypal/express.php', 'osC_Action=retrieve', 'SSL', true, false);
     $params['CANCELURL'] = tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL', true, false);
     $params['PAYMENTREQUEST_0_CURRENCYCODE'] = $order->info['currency']; #AUD, CAD, EUR, GBP, JPY, USD
     if ($order->content_type == 'virtual') {
    	 $params['NOSHIPPING'] = '1';
     }
     $nProd = sizeof($order->products);
     $subtotal = 0;
     for ($i = 0; $i < $nProd; ++$i) {
    	 $subtotal += $paypal_express->format_raw($order->products[$i]['final_price']) * $order->products[$i]['qty'];
     }
     $difst = 0;
     if ($subtotal != $paypal_express->format_raw($order->info['subtotal'])) {
    	 $difst = $paypal_express->format_raw($order->info['subtotal']) - $subtotal;
     }
    
     $order->products[$nProd-1]['final_price'] += $difst;
     for ($i = 0; $i < $nProd; ++$i) {
    	 $params['L_PAYMENTREQUEST_0_NAME' . $i] = $order->products[$i]['name'];
    	 $params['L_PAYMENTREQUEST_0_NUMBER' . $i] = $order->products[$i]['model'];
    	 #$params['L_PAYMENTREQUEST_0_DESC' . $i] = $order->products[$i]['description'];
    	 $params['L_PAYMENTREQUEST_0_AMT' . $i] = $paypal_express->format_raw($order->products[$i]['final_price']);
    	 $params['L_PAYMENTREQUEST_0_QTY' . $i] = $order->products[$i]['qty'];
     }
     require_once(DIR_WS_CLASSES . 'order_total.php');
     $order_total_modules = new order_total;
     $order_totals = $order_total_modules->process();
     $order_details = array();
     $order_details['subtotal'] = 0;
     $order_details['shipping_cost'] = 0;
     $order_details['tax'] = 0;
     $order_details['discount'] = 0;
     $order_details['handling'] = 0;
     $order_details['total'] = 0;
     foreach ($order_totals as $order_total) {
    	 if ($order_total['code'] == 'ot_subtotal') {
    		 $order_details['subtotal'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_shipping') {
    		 $order_details['shipping_cost'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_tax') {
    		 $order_details['tax'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_total') {
    		 $order_details['total'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_redemptions' || $order_total['code'] == 'ot_gv' || $order_total['code'] == 'ot_coupon') {
    		 $order_details['discount'] += $order_total['value'];
    	 } elseif ($order_total['code'] == 'ot_insurance') {
    		 $order_details['handling'] += $order_total['value'];
    	 } else {
    		 if ($order_total['value'] > 0) {
    			 $order_details['handling'] += $order_total['value'];
    		 } else {
    			 $order_details['discount'] += $order_total['value'];
    		 }
    	 }
     }
     $params['PAYMENTREQUEST_0_ITEMAMT'] = $paypal_express->format_raw($order_details['subtotal']);
     $params['PAYMENTREQUEST_0_TAXAMT'] = $paypal_express->format_raw($order_details['tax']);
     $params['PAYMENTREQUEST_0_SHIPPINGAMT'] = $paypal_express->format_raw($order_details['shipping_cost']);
     $params['PAYMENTREQUEST_0_SHIPDISCAMT'] = $paypal_express->format_raw($order_details['discount']);
     $params['PAYMENTREQUEST_0_HANDLINGAMT'] = $paypal_express->format_raw($order_details['handling']);
     $params['PAYMENTREQUEST_0_AMT'] = $paypal_express->format_raw($order_details['total']);
     $post_string = '';
     //print_r($params);
     //die();
     foreach ($params as $key => $value) {
    	 $post_string .= $key . '=' . urlencode(trim($value)) . '&';
     }
     $post_string = substr($post_string, 0, -1);
     $response = $paypal_express->sendTransactionToGateway($api_url, $post_string);
     $response_array = array();
     parse_str($response, $response_array);
    [color=#FF8C00]	 if (($response_array['ACK'] == 'Success') || ($response_array['ACK'] == 'SuccessWithWarning')) {
    	 tep_redirect($paypal_url . '&token=' . $response_array['TOKEN']);
     } else {
    	 tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, 'error_message=' . stripslashes($response_array['L_LONGMESSAGE0']), 'SSL'));
     }[/color]
     break;
    }
    
    [color=#FF9900]tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));[/color]
    

     

     

    Hello Eric,

     

    At the moment I've also some problem with Paypal Express Checkout Module (native payment module on v2.3) which is not work in mobile after page mobile_checkout_payment.php which is not redirecting to paypal website. Seems like I have similar problem you had.

    Kindly ask you step by step the modification you've done to this add-on so the Paypal Express Checkout works also in mobile version?

     

    rgds,

    pit


  11. I had a similar problem with Paypal Website Standard Module... since I use the IDR as my default currency and Paypal still doesn't support IDR.. Do you already got a solution for this situation?.. kindly let me know.. :) ... At the moment I get back to use the Paypal module .. only with this module .. I still have buyer returning problem.. so the order not show at the admin page..

     

    Any idea..?

×