Jump to content
Latest News: (loading..)

steve_s

Members
  • Content count

    1,574
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    steve_s got a reaction from Peper in [Contribution] iOSC - mobile version of OSC on your iPhone   
    To get it to goto mobile shopping cart
     
    catalog/mobile_product_info.php
    find

    echo tep_draw_form('cart_quantity', tep_mobile_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>
    change it to

    echo tep_draw_form('cart_quantity', tep_mobile_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=mobile_add_product')); ?>
     
    catalog/includes/apllication_top.php
    find

    case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break;
    add under it

    case 'mobile_add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_mobile_link($goto, tep_get_all_get_params($parameters))); break;
    You will also need to follow this post
    http://forums.oscommerce.com/topic/327785-contribution-iosc-mobile-version-of-osc-on-your-iphone/page__view__findpost__p__1456042
     
    for ease replace all code in mobile/includes/functions/general.php with code below

    <?php function tep_mobile_link1($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = false) { return tep_href_link($page, $parameters, $connection, $add_session_id,false); } function tep_mobile_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = false) { global $request_type, $session_started, $SID; $module = substr($page,0,-4); // $page = FILENAME_MOBILE; // $parameters = 'module=' . $module . '&' . $parameters; if (substr($page, 0, 6) !== 'mobile' ) { $page = 'mobile_' . $page; } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL</b><br><br>'); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } return $link; } function tep_mobile_button($text, $params = '') { // return '<div id="mobileButton"><table><tr><td width="1px"><img src="images/greybutton/left.gif"/></td><td>' . $text . '</td><td width="1px"><img src="images/greybutton/right.gif"/></td></tr></table></div>'; return '<input type="submit" value="' . $text . '" ' . $params . '/>'; // return '<div id="mobileButton"><table><tr><td width="1px"><img src="images/greybutton/left.gif"/></td><td>' . $text . '</td><td width="1px"><img src="images/greybutton/right.gif"/></td></tr></table></div>'; } function tep_mobile_path_element($path, $element, $alt=null) { return ($path ? '<a href="' . $path .'">' . $element . '</a>' : ($alt ? $alt : $element)) ; } function tep_mobile_selection($path, $elements) { $ret = '<tr class="categories"'; $ret .= ($path ? ' onclick="window.location.href=\'' . $path .'\'"' : '' ); $ret .= '>'; foreach ($elements as $element) { $ret .= '<td class="categories">' . tep_mobile_path_element($path,$element) . '</td>'; } $ret .= '<td class="categories" align="right">'; $ret .= ($path) ? '<a href="' . $path .'">' . tep_image(DIR_MOBILE_IMAGES . 'arrow_select.png') . '</a>' : '<input type="image" src="' .DIR_MOBILE_IMAGES . 'arrow_select.png' . '" border="0" alt="">'; return $ret; } function tep_print($obj) { print ("<pre>"); print_r ($obj); print ("</pre>\n"); } function tep_debug($obj) { if(MOBILE_DEBUG) { tep_print($obj); } } ?>
     
    Steve
  2. Like
    steve_s got a reaction from oscMarket in One Page Checkout Support   
    Hi simpleist solution i have been told is to add the 2 defines in catalog/includes/database_tables.php
    ie
    define(TABLE_COUPON_GV_CUSTOMER,'');
     
    i have not tried this, but is what someone recommended
     
    or simply remove the code for KGT_discount
    Steve
  3. Like
    steve_s got a reaction from oscMarket in One Page Checkout Support   
    Hi it seems i cant get the country code, set in one page chckout admin require login to be try and add account create success skip contribution http://addons.oscommerce.com/info/5690
    ok its 2 page checkout now but must people will be happy with that
     
     
    Steve
  4. Like
    steve_s got a reaction from sky_diver in One Page Checkout Support   
    Hi
     
    catalog/includes/languages/english/modules/payments/
    what ever paypal module you are using
     
    Steve
  5. Like
    steve_s got a reaction from natashome in One Page Checkout Support   
    report the bug to itwebexperts is an email for reporting bugs in the insttal documentation
     
    Steve
×