Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] iOSC - mobile version of OSC on your iPhone


bumbarash

Recommended Posts

@@parduotuve,

 

The constant "CSS" is defined in the mobile application_top.php lines 45-64.

Of course hardcoded works, but the theme switcher will not work then. There must be something wrong with your set up.

Nobody else reported this problem until now.

 

regards

Rainer

Link to comment
Share on other sites

@@parduotuve,

 

The constant "CSS" is defined in the mobile application_top.php lines 45-64.

Of course hardcoded works, but the theme switcher will not work then. There must be something wrong with your set up.

Nobody else reported this problem until now.

 

regards

Rainer

yeah.. It seems that I got happy too soon. Products doesn't add to shopping cart.

When I add it in classic version and then switch to mobile products remain in the basket but adding in mobile version doesn't work for some reason.

Edited by parduotuve
Link to comment
Share on other sites

@@parduotuve,

 

check again all installation steps. Verify in particular all modifications in configure.php and application_top.php.

 

Then it can also happen if you are using an add-on which alters the add to cart/buy now action like for example qtpro. Any modification of that kind you are using on the  classic store side needs to be applied also on the mobile pages.

 

regards

Rainer

Edited by raiwa
Link to comment
Share on other sites

@@parduotuve,

 

check again all installation steps. Verify in particular all modifications in configure.php and application_top.php.

 

Then it can also happen if you are using an add-on which alters the add to cart/buy now action like for example qtpro. Any modification of that kind you are using on the  classic store side needs to be applied also on the mobile pages.

 

regards

Rainer

Did everything from scratch but I still having issues with cart. It adds products when I press to cart in catalog_mb.php but when I click it in product_info.php pages refreshes and nothing happens.

Link to comment
Share on other sites

@@parduotuve,

 

did you check this:

 

Then it can also happen if you are using an add-on which alters the add to cart/buy now action like for example qtpro. Any modification of that kind you are using on the  classic store side needs to be applied also on the mobile pages.

 

what you describe is typical for QTPRO add-on which controls stock for options and requires code change in product_info.php

 

Please give it also a try with the ajax page load option switched to false in configuration.

Edited by raiwa
Link to comment
Share on other sites

@@parduotuve,

 

did you check this:

 

 

what you describe is typical for QTPRO add-on which controls stock for options and requires code change in product_info.php

 

Please give it also a try with the ajax page load option switched to false in configuration.

Dunno can't see such module in the list.

 

Disabling ajax was first thing I tried.

post-339549-0-72366000-1466512096_thumb.png

post-339549-0-38139400-1466512835_thumb.png

post-339549-0-35560200-1466512839.png

Edited by parduotuve
Link to comment
Share on other sites

@@parduotuve,

 

QTPRO is used to control stock for each individual product option.

It is not possible to see it in the module list, it's not a module.

It's this:
http://addons.oscommerce.com/info/7786
 
If you have it added, you should find this part of code in your (classic) product_info.php:

  //++++ QT Pro: End Changed Code
    $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
    $products_attributes = tep_db_fetch_array($products_attributes_query);
    if ($products_attributes['total'] > 0) {
    	//++++ QT Pro: Begin Changed code
      $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); 
      require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
      $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
      $pad = new $class($products_id);
      echo $pad->draw();
    	echo '<br><br>';
    }

    //Display a table with which attributecombinations is on stock to the customer?
    if(PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST == 'True') {
    	require(DIR_WS_MODULES . "qtpro_stock_table.php");
    }	

    //++++ QT Pro: End Changed Code

Look for comments: //++++ QT Pro
 
 
In general check your classic product_info.php for any modification
and also your (classic) application_top.php withing the shopping cart action code about line 349:

case 'add_product............

Otherwise I can not give more specific advice without having a look on your store installation.

 

regards

Rainer
 

Link to comment
Share on other sites

@@parduotuve,

 

I had again a look on your store and found that you have a modification in your classic product_info.php which allows to define the quantity to add to the shopping cart. You may need to apply this mod to the mobile product info page. It may be the reason that it is not added to shopping cart. The quantity parameter is missing on mobile.

Link to comment
Share on other sites

@@parduotuve,

 

I had again a look on your store and found that you have a modification in your classic product_info.php which allows to define the quantity to add to the shopping cart. You may need to apply this mod to the mobile product info page. It may be the reason that it is not added to shopping cart. The quantity parameter is missing on mobile.

Oh thanks a lot! I thought that guy before me hardcoded it so I just used catalog_mb.php code for adding to cart. But I'll do it in a right way then. :) Thanks again.

 

And sorry to bother you again but there's some issues with charset. Russian cyrilic to be exact. It outputs something like this: 

ŠŠ´ŠµŠ»Š°Š¹Ń‚Šµ Š·Š°ŠŗŠ°Š· Š²Ń‹ŃŠµ 50 ā‚¬ Šø ŠæŠ¾Š»ŃчŠøŃ‚Šµ -50% Š´Š»Ń¸ Š´Š¾ŃŃ‚Š°Š²ŠŗŃ! Š’ Š•Š²Ń€Š¾ŠæŠµ.

Same thing from database and from language files. For lithuanian we're using characters like à, è and it outputs ą, č as it should. Now for russian we are using normal russian characters like Главная and it outputs the above example.

 

If its isn't related to IOSC ignore me. Because there's so much hardcoded code without any comments....

 

ŠŠ´ŠµŠ»Š°Š¹Ńss‚Šµ Š·Š°ŠŗŠ°Š· Š²Ń‹ŃŠµ 50 ā‚¬ Šø ŠæŠ¾Š»ŃчŠøŃ‚Šµ -50% Š´Š»Ń¸ Š´Š¾ŃŃ‚Š°Š²ŠŗŃ! Š’ Š•Š²Ń€Š¾ŠæŠµ.

Link to comment
Share on other sites

@@parduotuve,

 

You have to define the correct character set in each mobile language file. Use the same like in your main language files.

Link to comment
Share on other sites

Hi

I forgot to try it on a test store first and don't have a most recent backup of my store, thus this error is problematic...

 

http://store.davidandjess.com.au/

 

1146 - Table 'david410_osco626.TABLE_SPECIFICATION' doesn't exist

SELECT s.specifications_id, s.filter_class, s.products_column_name, sd.specification_name FROM TABLE_SPECIFICATION AS s INNER JOIN TABLE_SPECIFICATION_GROUPS AS sg ON s.specification_group_id = sg.specification_group_id INNER JOIN TABLE_SPECIFICATIONS_TO_CATEGORIES AS s2c ON sg.specification_group_id = s2c.specification_group_id INNER JOIN TABLE_SPECIFICATION_DESCRIPTION sd ON sd.specifications_id = s.specifications_id WHERE s.show_filter = 'True' AND sg.show_filter = 'True' 

[TEP STOP]

 

No pages work, all I get is this error

 

Using mobile_db_setup_v4r2 to install gave no problems, so after this error, I tried using the sql via php, no problems, and after a few edits, I get this error.

 

I tried reverting back all of the changes I've made, but nothing, still the same problem.

 

Looking in php, everything relating to Specifications is empty inside, no data. There's columns when I look at them, but it in itself has no data or such.

 

The mobile site will load, but can't do anything - no links work.

 

Is there a way to uninstall, undo, the php import?

 

Any advice?

Edited by David Tran
Link to comment
Share on other sites

@@David Tran,

 

I'm sorry, this table has nothing to do with mobile installation and it is not part of a standard oscommerce store. If you do not have made backups, try to find out which add-on/modification uses that table and try to install it again.

Otherwise ask your hosting provider if they can do a complete restore for you.

 

Anyway it is very clear advised in the INSTRUCTIONS:

Installation for OsCommerce 2.2rc2a

0a.) Backup your store files

0b.) Backup your database

 

Installation for OsCommerce 2.3. to 2.3.4.

0a.) Backup your store files

0b.) Backup your database

 

:-

 

You could try to recover the last working includes/configure.php and application_top.php to revert the mobile modifications there.

Maybe it's just that the paths are not corrrect defined and it doesn't load the database.php file with the table name definitions.

 

If it's this, then there is something wrong with the modifications in the configure file.

Edited by raiwa
Link to comment
Share on other sites

Yeah, I definitely realised my fault, just a matter of trying to fix it now. :/

 

I'll keep looking through the files.

 

We'll see how it goes

 

Thank you

Link to comment
Share on other sites

@@parduotuve,

 

You have to define the correct character set in each mobile language file. Use the same like in your main language files.

Yes! Should have been obvious.. but.. :D Thanks.

Umm.. And last question I'm trying to move files from test to main page and everything is working fine but strange thing is that when I try to access categories it sends to www.wesite.com/FILENAME_CATALOG_MB?....

everything works great on test version. Checked configure.php, disabled ajax. Anything else?

Link to comment
Share on other sites

Link to comment
Share on other sites

  • 4 weeks later...

Hello @@Stephan Gebbers,

 

It may take some time until Google gets the mobile URLs indexed. However as mobile users will be redirected to the mobile URLs it is not so important.

 

in the "/mobile/header.php" the whole catalog got not indexed because of noindex and nofollow metatags via

<?php
if (strpos($PHP_SELF,'checkout') || strpos($PHP_SELF,'shopping_cart') || strpos($PHP_SELF,'account') || strpos($PHP_SELF,'log') ) {
?> 
<meta name="googlebot"
   content="noindex, nofollow">
<meta name="robots"
   content="noindex, nofollow">
<?php
}
?>

i removed the part

 

|| strpos($PHP_SELF,'log')

 

and hopefully get into the google index with my mobile pages now.

was it intended to noindex and nofollow catalog_mb.php that way?

 

Regards,

Stephan

Edited by Stephan Gebbers

 

 

Link to comment
Share on other sites

Hello @@Stephan Gebbers,

 

It seems this is left from an old, wrong coded version.

I would say this should be:

<?php
if (strpos($PHP_SELF,'checkout') || strpos($PHP_SELF,'shopping_cart') || strpos($PHP_SELF,'account') || strpos($PHP_SELF,'log') ) {
echo '
<meta name="googlebot"
   content="noindex, nofollow">
<meta name="robots"
   content="noindex, nofollow">
';
}
?>

Otherwise you can just remove all of this and exclude what you wish nt to be indexed in robots.txt

 

Don't know from which old version this came through, sorry o:) :wacko:

 

rgds

Rainer

Link to comment
Share on other sites

Link to comment
Share on other sites

I think I'm close to doing it, but I got stopped with an error in Mobile/checkout_shipping.php.

Here is the modified code so far..

<?php
require_once('includes/application_top.php');
require(DIR_WS_CLASSES.'http_client.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_mobile_link(FILENAME_LOGIN, '', 'SSL'));
  }

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_mobile_link(FILENAME_SHOPPING_CART));
  }

// if no shipping destination address was selected, use the customers own address as default
  if (!tep_session_is_registered('sendto')) {
    tep_session_register('sendto');
    $sendto = $customer_default_address_id;
  } else {
// verify the selected shipping address
    if ( (is_array($sendto) && empty($sendto)) || is_numeric($sendto) ) {
      $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
      $check_address = tep_db_fetch_array($check_address_query);

      if ($check_address['total'] != '1') {
        $sendto = $customer_default_address_id;
        if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
      }
    }
  }

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

// register a random ID in the session to check throughout the checkout procedure
// against alterations in the shopping cart contents
  if (!tep_session_is_registered('cartID')) {
        tep_session_register('cartID');
  } elseif (($cartID != $cart->cartID) && tep_session_is_registered('shipping')) {
        tep_session_unregister('shipping');
  }

  $cartID = $cart->cartID = $cart->generate_cart_id();

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
  if ($order->content_type == 'virtual') {
    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
    $shipping = false;
    $sendto = false;
    tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
  }

//MVS Start
  if (SELECT_VENDOR_SHIPPING == 'true') {
    include(DIR_WS_CLASSES . 'vendor_shipping.php');
    $shipping_modules = new shipping;
  } else {
// MVS End
    $total_weight = $cart->show_weight();
    $total_count = $cart->count_contents();

// load all enabled shipping modules
  require(DIR_WS_CLASSES . 'shipping.php');
  $shipping_modules = new shipping;

  if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
    $pass = false;

    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
      case 'national':
        if ($order->delivery['country_id'] == STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'international':
        if ($order->delivery['country_id'] != STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'both':
        $pass = true;
        break;
    }

    $free_shipping = false;
    if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
      $free_shipping = true;

      include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
    }
  } else {
    $free_shipping = false;
  }

  // process the selected shipping method
  if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {
    if (!tep_session_is_registered('comments')) tep_session_register('comments');
    if (tep_not_null($HTTP_POST_VARS['comments'])) {
      $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
    }

    if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

// MVS Start
      if (SELECT_VENDOR_SHIPPING == 'true') {

        $total_shipping_cost = 0;
        $shipping_title = MULTIPLE_SHIP_METHODS_TITLE;
        $vendor_shipping = $cart->vendor_shipping;
        $shipping = array();
        foreach ($vendor_shipping as $vendor_id => $vendor_data) {
          $products_shipped = $_POST['products_' . $vendor_id];
          $products_array = explode ("_", $products_shipped);

          $shipping_data = $_POST['shipping_' . $vendor_id];
          $shipping_array = explode ("_", $shipping_data);
          $module = $shipping_array[0];
          $method = $shipping_array[1];
          $ship_tax = $shipping_array[2];

          if ( is_object($$module) || ($module == 'free') ) {
            if ($module == 'free') {
              $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
              $quote[0]['methods'][0]['cost'] = '0';
            } else {
              $total_weight = $vendor_shipping[$vendor_id]['weight'];
              $shipping_weight = $total_weight;
              $cost = $vendor_shipping[$vendor_id]['cost'];
              $total_count = $vendor_shipping[$vendor_id]['qty'];
              $quote = $shipping_modules->quote($method, $module, $vendor_id);

            }
            if (isset($quote['error'])) {
              tep_session_unregister('shipping');
            } else {
              if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
                $output[$vendor_id] = array('id' => $module . '_' . $method,
                                            'title' => $quote[0]['methods'][0]['title'],
                                            'ship_tax' => $ship_tax,
                                            'products' => $products_array,
                                            'cost' => $quote[0]['methods'][0]['cost']
                                           );
                $total_ship_tax += $ship_tax;
                $total_shipping_cost += $quote[0]['methods'][0]['cost'];
              }//if isset
            }//if isset
          }//if is_object
        }//foreach
        if ($free_shipping == true) {
          $shipping_title = $quote[0]['module'];
        } elseif (count($output) <2) {
          $shipping_title = $quote[0]['methods'][0]['title'];
        }
        $shipping = array('id' => $shipping,
                          'title' => $shipping_title,
                          'cost' => $total_shipping_cost,
                          'shipping_tax_total' => $total_ship_tax,
                          'vendor' => $output
                         );

tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

      } else {
// MVS End
      if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
        if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
          $shipping = $HTTP_POST_VARS['shipping'];

          list($module, $method) = explode('_', $shipping);
          if ( is_object($$module) || ($shipping == 'free_free') ) {
            if ($shipping == 'free_free') {
              $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
              $quote[0]['methods'][0]['cost'] = '0';
            } else {
              $quote = $shipping_modules->quote($method, $module);
            }
            if (isset ($quote['error']) ) {
              tep_session_unregister('shipping');
            } else {
              if ( (isset($quote[0]['methods'][0]['title']) ) && (isset($quote[0]['methods'][0]['cost'])) ) {
                $shipping = array('id' => $shipping,
                                  'title' => ( ($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
                                  'cost' => $quote[0]['methods'][0]['cost']);

tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
              }
            }
          } else {
            tep_session_unregister ('shipping');
          }
        }

    } else {
      $shipping = false;

      tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
// MVS
      }
  }

// get all available shipping quotes
  $quotes = $shipping_modules->quote();

// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
  if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SHIPPING);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2, tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
?>
require(DIR_MOBILE_INCLUDES . 'header.php');
$headerTitle->write();



<script language="javascript"><!--
<?php
// MVS Start
  if (SELECT_VENDOR_SHIPPING == 'true') {
?>

function selectRowEffect(object, buttonSelect, vendor) {

  var test='defaultSelected_' + vendor;//set aside defaultSelected_' . $vendor_id . '
  var el=document.getElementsByTagName('tr');//all the tr elements
  for(var i=0;i<el.length;i++){
    var p=el[i].id.replace(test,'').replace(/\d/g,'');//strip the $radio_buttons value
    if(p=='_'){//the only thing left is an underscore
      el[i].className = "moduleRow";//make the matching elements normal
    }
  }

  object.className = "moduleRowSelected";//override el[i].className and highlight the clicked row

  var field = document.getElementById('shipping_radio_' + buttonSelect + '_' + vendor);
  if (document.getElementById) {
    var field = document.getElementById('shipping_radio_' + buttonSelect + '_' + vendor);
  } else {
    var field = document.all['shipping_radio_' + buttonSelect + '_' + vendor];
  }
}

<?php 
  } else { 
// MVS End
?>

var selected;

function selectRowEffect(object, buttonSelect) {
  if (!selected) {
    if (document.getElementById) {
      selected = document.getElementById('defaultSelected');
    } else {
      selected = document.all['defaultSelected'];
    }
  }

  if (selected) selected.className = 'moduleRow';
  object.className = 'moduleRowSelected';
  selected = object;

// one button is not an array
  if (document.checkout_address.shipping[0]) {
    document.checkout_address.shipping[buttonSelect].checked=true;
  } else {
    document.checkout_address.shipping.checked=true;
  }
}
<?php
// MVS
  } 
?>

function rowOverEffect(object) {
  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>
<div id="iphone_content">
<?php echo tep_draw_form('checkout_address', tep_mobile_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'post', '', true) . tep_draw_hidden_field('action', 'process'); ?>
<div id="checkout_shipping">
//MVS
  if (tep_count_shipping_modules() > 0 || SELECT_VENDOR_SHIPPING == 'true') {
?>
  <h1><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></h1>
<br />
<?php
// MVS Start
  if (SELECT_VENDOR_SHIPPING == 'true') {
    require(DIR_WS_MODULES . 'vendor_shipping.php');
  } else {
    $quotes = $shipping_modules->quote();

  if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
    $pass = false;

    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
      case 'national':
        if ($order->delivery['country_id'] == STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'international':
        if ($order->delivery['country_id'] != STORE_COUNTRY) {
          $pass = true;
        }
        break;
      case 'both':
        $pass = true;
        break;
    }

    $free_shipping = false;
    if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
      $free_shipping = true;

      include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
    }
  } else {
    $free_shipping = false;
  }

// if no shipping method has been selected, automatically select the cheapest method.
// if the modules status was changed when none were available, to save on implementing
// a javascript force-selection method, also automatically select the cheapest shipping
// method if more than one module is now enabled
    if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();
//MVS End
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
    if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
?>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></td>
                <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
  <div class="ship_add">
    <?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?>

<?php
    } elseif ($free_shipping == false) {
?>

  <div class="ship_add">
    <?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?>

<?php
    }

    echo '<fieldset data-role="controlgroup" data-theme="a" id ="custom-fieldset" >';

    if ($free_shipping == true) {
?>
  <div class="ship_add">
        <strong><?php echo FREE_SHIPPING_TITLE; ?></strong></br> <?php echo $quotes[$i]['icon'];
        	      echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?>
  </div>
<?php
    } else {
?>

    <?php
      $radio_buttons = 0;

      for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
        if (isset($quotes[$i]['error'])) {
        	echo $quotes[$i]['error'];
        } else {
          for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen or only method
            $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id'] || $n == 1) ? true : false);
            echo tep_radio_jquery('shipping',$checked,'a',$quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'],'id="'.$quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'].'"') ;
?>
	<label for="<?php echo $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']?>"><?php echo $quotes[$i]['module'];?> - <?php echo $quotes[$i]['methods'][$j]['title'].' '; ?>
<?php
            if ( ($n > 1) || ($n2 > 1) ) {
            	    echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))). '</label>'; ?>
<?php
            } else {
?>
        <?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))) . '</label>'. tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?>
<?php
            }
?>

<?php
            $radio_buttons++;
          }
        }
      }
echo '</fieldset>';
    }
?>
  </div>
<?php
  }
?>
  <hr />
   <h1><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></h1>
      <div class="ship_add">
	 <?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br />');
	       echo tep_button_jquery(IMAGE_BUTTON_CHANGE_ADDRESS , tep_mobile_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'), 'b' , 'button' , 'data-icon="check" data-inline="false"' );
	?>
     </div>
<?php

 ?>
 <hr />
      <div class="bill_add">
      <?php echo tep_label_textarea_jquery('comments', TABLE_HEADING_COMMENTS, '', '100px'); ?>
      </div>
      <div id="bouton">
      <?php echo  tep_button_jquery(IMAGE_BUTTON_BACK , tep_mobile_link(FILENAME_SHOPPING_CART, '', 'SSL'), 'b' , 'button' , 'data-icon="back" data-inline="true"' );
      	    echo  tep_button_jquery(IMAGE_BUTTON_CONTINUE , '', 'b' , 'submit' , ' data-icon="arrow-r" data-iconpos="right" data-inline="true"' ); ?>
      </div>
</div>

</form>

<?php require(DIR_MOBILE_INCLUDES . 'footer.php');
?>

Any ideas where I went wrong?

Link to comment
Share on other sites

Hello Matt @@lyonsperf,

 

It would be helpful to tell us the error message you get or describe the error.

However, I had a look and the problem should be the javascript:

      var test='defaultSelected_' + vendor;//set aside defaultSelected_' . $vendor_id . '
      var el=document.getElementsByTagName('tr');//all the tr elements
      for(var i=0;i<el.length;i++){
        var p=el[i].id.replace(test,'').replace(/\d/g,'');//strip the $radio_buttons value
        if(p=='_'){//the only thing left is an underscore
          el[i].className = "moduleRow";//make the matching elements normal
        }
      }
     
      object.className = "moduleRowSelected";//override el[i].className and highlight the clicked row
     
      var field = document.getElementById('shipping_radio_' + buttonSelect + '_' + vendor);
      if (document.getElementById) {
        var field = document.getElementById('shipping_radio_' + buttonSelect + '_' + vendor);
      } else {
        var field = document.all['shipping_radio_' + buttonSelect + '_' + vendor];
      }
    }

it uses "tr" tag and "shipping_radio_" id as references and this is not used in mobile version.

Try to modify the script using the tags used in the mobile version.

 

 

rgds

Rainer

Link to comment
Share on other sites

I understand that the javascript needs to be in jquery form, but I do not know how to do this.

When I modify the code for checkout_shipping.php I can view the page on my phone, but it has a bunch of code from the php page at the top. The radio buttons and shipping quote show but it will not allow me to select them or select the continue button.

 

If anyone could help out with a conversion I would appreciate it.

Link to comment
Share on other sites

Hello Matt @@lyonsperf,

 

I doubt that someone will develop this for free.

It requires a develop store with the iosc mobile add-on and the MSV add-on installed.

If you do not find someone who has this already done and is willing to share it with you, the most efficient way would be to post in the commercial support forum.

 

rgds

Rainer

Link to comment
Share on other sites

OK, I got the MVS to work on m mobile site after some help from Surfalot.

My next issue is with the Purchase Without Account Mod.

I have got it to show on the account page, then it opens the account information form without password request.

When a customer completes the info on the form and clicks the button to continue, the page hangs and does not continue on to checkout_shipping.

The customers info is added to the database so I know that part is working.

This is on a 2.2ra site

Can someone tell me why the page will not forward to the next step, checkout shipping?

Here is my Create_account.php code:

<?php
require_once('includes/application_top.php');

// PWA for IosC BOF
  if (isset($HTTP_GET_VARS['guest']) && $cart->count_contents() < 1) tep_redirect(tep_mobile_link(FILENAME_SHOPPING_CART));
// PWA for IosC EOF
// Country-State Selector
  if (isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] == 'getStates' && isset($HTTP_POST_VARS['country'])) {
    tep_ajax_get_zones_html(tep_db_prepare_input($HTTP_POST_VARS['country']), '', true);
  } else {

// needs to be included earlier to set the success message in the messageStack
  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT);

  if ( isset($HTTP_POST_VARS['dob_ind']) && isset($HTTP_POST_VARS['dob_inm']) && isset($HTTP_POST_VARS['dob_inY']) ) {
  	$HTTP_POST_VARS['dob'] = $HTTP_POST_VARS['dob_ind'].'/'.$HTTP_POST_VARS['dob_inm'].'/'.$HTTP_POST_VARS['dob_inY'];
  }

  $process = false;
  if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {
    $process = true;

    if (ACCOUNT_GENDER == 'true') {
      if (isset($HTTP_POST_VARS['gender'])) {
        $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
      } else {
        $gender = false;
      }
    }
    $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
    $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
    if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);
    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
    $confirm_email_address = tep_db_prepare_input($_POST['confirm_email_address']);
    if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
    $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
    if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
    $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
    $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
    if (ACCOUNT_STATE == 'true') {
      $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
      if (isset($HTTP_POST_VARS['zone_id'])) {
        $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
      } else {
        $zone_id = false;
      }
    }
    $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
    $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);
    $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);
    if (isset($HTTP_POST_VARS['newsletter'])) {
      $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);
    } else {
      $newsletter = false;
    }
    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
    $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

    $error = false;

    if (ACCOUNT_GENDER == 'true') {
      if ( ($gender != 'm') && ($gender != 'f') ) {
        $error = true;

        $messageStack->add('create_account', ENTRY_GENDER_ERROR);
      }
    }

    if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
    }

    if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);
    }

    if (ACCOUNT_DOB == 'true') {
      if ((is_numeric(tep_date_raw($dob)) == false) || (@checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false)) {
        $error = true;

        $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
      }
    }

    if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);
    } elseif (tep_validate_email($email_address) == false) {
      $error = true;

      $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    } else {
      // PWA for IosC BOF
      $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "' and guest_account != '1'");
      // PWA for IosC EOF
      $check_email = tep_db_fetch_array($check_email_query);
      if ($check_email['total'] > 0) {
        $error = true;

        $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
      }
    }

    if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);
    }

    if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_POST_CODE_ERROR);
    }

    if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_CITY_ERROR);
    }

    if (is_numeric($country) == false) {
      $error = true;

      $messageStack->add('create_account', ENTRY_COUNTRY_ERROR);
    }

    if (ACCOUNT_STATE == 'true') {
// Country-State Selector
      if ($zone_id == 0) {
        if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {
          $error = true;

          $messageStack->add('create_account', ENTRY_STATE_ERROR);
        }
      }
    }

    if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
    }


// PWA for IosC BOF
    if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) {
// PWA  for IosC EOF

    if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) {
      $error = true;

      $messageStack->add('create_account', ENTRY_PASSWORD_ERROR);
    } elseif ($password != $confirmation) {
      $error = true;

      $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);
    }
// PWA for IosC BOF
} 
// PWA for IosC EOF

    if ($error == false) {
	// PWA for IosC BOF
	if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest']))
	{
		$dbPass = tep_encrypt_password($password);
		$guestaccount = '0';
	}else{
		$dbPass = 'null';
		$guestaccount = '1';
	}
	// PWA for IosC EOF
      $sql_data_array = array('customers_firstname' => $firstname,
                              'customers_lastname' => $lastname,
                              'customers_email_address' => $email_address,
                              'customers_telephone' => $telephone,
                              'customers_fax' => $fax,
                              'customers_newsletter' => $newsletter,
                              // PWA for IosC BOF
                              'customers_password' => $dbPass,
                              'guest_account' => $guestaccount);
                              // PWA for IosC EOF

      if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender;
      if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob);

      tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);

      $customer_id = tep_db_insert_id();

      $sql_data_array = array('customers_id' => $customer_id,
                              'entry_firstname' => $firstname,
                              'entry_lastname' => $lastname,
                              'entry_street_address' => $street_address,
                              'entry_postcode' => $postcode,
                              'entry_city' => $city,
                              'entry_country_id' => $country);

      if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
      if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;
      if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;
      if (ACCOUNT_STATE == 'true') {
        if ($zone_id > 0) {
          $sql_data_array['entry_zone_id'] = $zone_id;
          $sql_data_array['entry_state'] = '';
        } else {
          $sql_data_array['entry_zone_id'] = '0';
          $sql_data_array['entry_state'] = $state;
        }
      }

// PWA for IosC BOF
     if (isset($HTTP_GET_VARS['guest']) or isset($HTTP_POST_VARS['guest']))
       tep_session_register('customer_is_guest');
// PWA for IosC EOF

      tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

      $address_id = tep_db_insert_id();

      tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");

      tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");

      if (SESSION_RECREATE == 'True') {
        tep_session_recreate();
      }

      $customer_first_name = $firstname;
      $customer_default_address_id = $address_id;
      $customer_country_id = $country;
      $customer_zone_id = $zone_id;
      tep_session_register('customer_id');
      tep_session_register('customer_first_name');
      tep_session_register('customer_default_address_id');
      tep_session_register('customer_country_id');
      tep_session_register('customer_zone_id');

// PWA for IosC BOF
      if (isset($HTTP_GET_VARS['guest']) or isset($HTTP_POST_VARS['guest'])) tep_redirect(tep_mobile_link(FILENAME_CHECKOUT_SHIPPING));
// PWA for IosC EOF
// reset session token
      $sessiontoken = md5(tep_rand() . tep_rand() . tep_rand() . tep_rand());

// restore cart contents
      $cart->restore_contents();

// build the message content
      $name = $firstname . ' ' . $lastname;

      if (ACCOUNT_GENDER == 'true') {
         if ($gender == 'm') {
           $email_text = sprintf(EMAIL_GREET_MR, $lastname);
         } else {
           $email_text = sprintf(EMAIL_GREET_MS, $lastname);
         }
      } else {
        $email_text = sprintf(EMAIL_GREET_NONE, $firstname);
      }

      $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;
      tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

      tep_redirect(tep_mobile_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));
    }
  }

 // PWA for IosC BOF
 if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])){
   $breadcrumb->add(HEADING_TITLE, tep_mobile_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
 }else{
   $breadcrumb->add(HEADING_TITLE_PWA, tep_mobile_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'));


 }
// PWA for IosC EOF
// Country-State Selector 
  if (!isset($country)) $country = STORE_COUNTRY;
  
  $breadcrumb->add(NAVBAR_TITLE, tep_mobile_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

require(DIR_MOBILE_INCLUDES . 'header.php');
$headerTitle->write();
?>
<div id="iphone_content">
<!-- PWA for IosC BOF -->
<?php echo tep_draw_form('create_account', tep_mobile_link(FILENAME_CREATE_ACCOUNT, (isset($HTTP_GET_VARS['guest'])? 'guest=guest':''), 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'); ?>
<!-- PWA for IosC EOF -->
            <?php
            // PWA BOF
            if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])){
            ?>
              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <?php }else{ ?>
              <td class="pageHeading"><?php echo HEADING_TITLE_PWA; ?></td>
            <?php }
            // PWA EOF
            ?> 
<!-- Country-State Selector -->
<div id="indicator"></div>

<div id="messageStack">
<?php
  if ($messageStack->size('create_account') > 0) {
  echo $messageStack->output('create_account');
  }
?>
</div>
	<div id="inscription">

      <h1><?php echo CATEGORY_PERSONAL; ?></h1>
	  <div class="obligatoire"><?php echo FORM_REQUIRED_INFORMATION; ?></div><br />
	  
<?php
  if (ACCOUNT_GENDER == 'true') {
    echo tep_radio_select_gender_jquery('gender', ENTRY_GENDER . (tep_not_null(ENTRY_GENDER_TEXT) ? ' ' . ENTRY_GENDER_TEXT : ''), 'a', '', 'data-mini="true"' );
  }
  
  echo tep_label_input_jquery('firstname','',ENTRY_FIRST_NAME . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_FIRST_NAME_TEXT . '</span>': ''));
  echo tep_label_input_jquery('lastname', '', ENTRY_LAST_NAME . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_LAST_NAME_TEXT . '</span>': ''));
			
  if (ACCOUNT_DOB == 'true') { 
    echo tep_draw_pull_down_date_jquery('dob_in', '0', '0', '1980', ENTRY_DATE_OF_BIRTH, '', 'a', 'data-inline="true" data-mini="true"', false, false, true, 1900, false); 
  } 
  
  echo tep_label_input_jquery('email_address','', ENTRY_EMAIL_ADDRESS . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''), 'a', '','email');
			
  if (ACCOUNT_COMPANY == 'true') {
    echo '<h1>' . CATEGORY_COMPANY . '</h1>';
    echo tep_label_input_jquery('company', '', ENTRY_COMPANY . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_COMPANY_TEXT . '</span>': ''));
  }
			
  echo '<h1>' . CATEGORY_ADDRESS . '</h1>';
  echo tep_label_input_jquery('street_address', '', ENTRY_STREET_ADDRESS . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''));
			 
  if (ACCOUNT_SUBURB == 'true') {
    echo tep_label_input_jquery('suburb', '', ENTRY_SUBURB . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_SUBURB_TEXT . '</span>': ''));
  }

  echo tep_label_input_jquery('postcode', '', ENTRY_POST_CODE . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_POST_CODE_TEXT . '</span>': ''));
  echo tep_label_input_jquery('city', '', ENTRY_CITY . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_CITY_TEXT . '</span>': ''));
  
  echo tep_label_get_country_list_jquery('country', $country, ENTRY_COUNTRY . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_COUNTRY_TEXT . '</span>': ''), '', 'a', 'onChange="getStates(this.value, \'states\');" data-mini="true"');
	
  if (ACCOUNT_STATE == 'true') {
// Country-State Selector 
    echo '<div id="states">' . tep_ajax_get_zones_html($country,'',false) . '</div>';
  }
  
  echo tep_label_input_jquery('telephone', '', ENTRY_TELEPHONE_NUMBER . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''), 'a', '', 'tel');
  echo tep_label_input_jquery('fax', '', ENTRY_FAX_NUMBER . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''), 'a', '', 'tel');?>
<?php
// PWA for IosC BOF
  if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) {
// PWA for IosC EOF
?>
<?php
  echo '<h1>' . CATEGORY_PASSWORD . '</h1>';
  echo tep_label_password_jquery('password','', ENTRY_PASSWORD . (tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_PASSWORD_TEXT . '</span>': ''));
  echo tep_label_password_jquery('confirmation','', ENTRY_PASSWORD_CONFIRMATION . (tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement"> ' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''));

  echo '<h1>' . CATEGORY_OPTIONS . '</h1>';
  echo '<fieldset data-role="controlgroup">
       '  . tep_checkbox_jquery('newsletter', false, 'a', 1, $option = '' ) . 
       '  <label for="newsletter">' . ENTRY_NEWSLETTER . '</label>
	</fieldset>';
  ?>
  <div id="bouton"><?php
  // PWA for IosC BOF
  }
  else {
  echo tep_draw_hidden_field('guest', 'guest'); 
  } 
// PWA for IosC EOF
?>
  <?php 
    echo  tep_button_jquery( IMAGE_BUTTON_CREATE_ACCOUNT , '', 'b' , 'submit' , 'data-iconpos="right" data-icon="check" data-inline="true"' );
  ?> 
  </div>
</div>
</form>

<?php
if( JQUERY_MOBILE_VALIDATE == 'True') {
  require(DIR_MOBILE_INCLUDES. 'form_check.js.php');
} else {
  require(DIR_WS_INCLUDES . 'form_check.js.php');
}

// Country-State Selector 
require(DIR_MOBILE_INCLUDES . 'country_state_ajax.js.php'); 

require(DIR_MOBILE_INCLUDES . 'footer.php');
// Country-State Selector 
}
?>


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...