LemonStand Forum: Billing and shipping Information in same tab - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Billing and shipping Information in same tab

#1 User is offline   Smarter 

  • Member
  • Group: Members
  • Posts: 21
  • Joined: 09-January 12

Posted 25 January 2012 - 12:16 PM

how to set Billing and Shipping information in a same tab, i want to set Payment Method and Shipping method in a same tab

My scenario for checkout process page is like

1) Billing and Shipping Information
2) Shipping and Payment Method
3) Order Review
4) Pay

fail to implement the step which is described in the documentation: http://lemonstandapp...istration_page/

i worked a lot on this but no luck, please help me from this whole


Thanks in advance
0

#2 User is offline   dardub 

  • Lemonholic
  • PipPipPip
  • Group: Members
  • Posts: 483
  • Joined: 30-August 10

Posted 25 January 2012 - 03:48 PM

Hi,

The idea in getting this to work is to put the billing and shipping in separate forms. Then when they click submit, you first execute the billing info action, then onsuccess you execute the shipping info action. I can get some code samples for you later today to explain it better.

Darren
0

#3 User is offline   Smarter 

  • Member
  • Group: Members
  • Posts: 21
  • Joined: 09-January 12

Posted 27 January 2012 - 07:10 AM

View Postdardub, on 25 January 2012 - 03:48 PM, said:

Hi,

The idea in getting this to work is to put the billing and shipping in separate forms. Then when they click submit, you first execute the billing info action, then onsuccess you execute the shipping info action. I can get some code samples for you later today to explain it better.

Darren




is there any method to setup the sequence in lemonstand in which i can show First page for checkout of

1) Billing and Shipping Information
2) Shipping and Payment Method
3) Order Review
4) Pay


i am still waiting for solution :(

Thanks
0

#4 User is offline   dardub 

  • Lemonholic
  • PipPipPip
  • Group: Members
  • Posts: 483
  • Joined: 30-August 10

Posted 27 January 2012 - 09:46 AM

This is what I have modified from the simplicity theme.

      <div class="grid_8 alpha padder">
      <?
        
        if ($checkout_step == 'billing_info' || $checkout_step == 'shipping_info'):
       ?>
       
        <?= open_form(array('id'=>'billing_info')) ?>
        <div id="billing_partial">
          <? $this->render_partial('shop:checkout_billing_info'); ?>
        </div>
      </form>

        <?= open_form(array('id'=>'shipping_info')) ?>
        <div id="shipping_partial">
          <? $this->render_partial('shop:checkout_shipping_info'); ?>
        </div>
      </form>
      <input class="button_control" type="submit" value="Next" onclick="return $('#billing_info').sendRequest('on_updateBilling', {
              onSuccess: function() {
        $('#shipping_info').sendRequest('on_updateShipping', {
          update: {'cart_page'  : 'shop:checkout_partial'}
        });
            }
        })">
        <? elseif ($checkout_step == 'shipping_method'): ?>
          <?= open_form() ?>
          <? $this->render_partial('shop:checkout_shipping_method'); ?>
          <? endif ?>
      </form>       
      </div>
  </div>


I have this in the Ajax code:

function on_updateBilling($controller) {
  
  $controller->exec_action_handler('shop:on_checkoutSetBillingInfo');

}

function on_updateShipping($controller) {


  $controller->exec_action_handler('shop:on_checkoutSetShippingInfo');
  
   // Call the default action handler
    $_POST['checkout_step'] = 'shipping_info';
  $controller->action();

}

0

#5 User is offline   Smarter 

  • Member
  • Group: Members
  • Posts: 21
  • Joined: 09-January 12

Posted 31 January 2012 - 05:44 AM

View Postdardub, on 27 January 2012 - 09:46 AM, said:

This is what I have modified from the simplicity theme.

      <div class="grid_8 alpha padder">
      <?
        
        if ($checkout_step == 'billing_info' || $checkout_step == 'shipping_info'):
       ?>
       
        <?= open_form(array('id'=>'billing_info')) ?>
        <div id="billing_partial">
          <? $this->render_partial('shop:checkout_billing_info'); ?>
        </div>
      </form>




        <?= open_form(array('id'=>'shipping_info')) ?>
        <div id="shipping_partial">
          <? $this->render_partial('shop:checkout_shipping_info'); ?>
        </div>
      </form>
      <input class="button_control" type="submit" value="Next" onclick="return $('#billing_info').sendRequest('on_updateBilling', {
              onSuccess: function() {
        $('#shipping_info').sendRequest('on_updateShipping', {
          update: {'cart_page'  : 'shop:checkout_partial'}
        });
            }
        })">
        <? elseif ($checkout_step == 'shipping_method'): ?>
          <?= open_form() ?>
          <? $this->render_partial('shop:checkout_shipping_method'); ?>
          <? endif ?>
      </form>       
      </div>
  </div>




I have this in the Ajax code:

function on_updateBilling($controller) {
  
  $controller->exec_action_handler('shop:on_checkoutSetBillingInfo');

}

function on_updateShipping($controller) {


  $controller->exec_action_handler('shop:on_checkoutSetShippingInfo');
  
   // Call the default action handler
    $_POST['checkout_step'] = 'shipping_info';
  $controller->action();

}





This should be the checkout sequence.

My scenario for checkout process page is like

1) Billing and Shipping Information
2) Shipping and Payment Method
3) Order Review
4) Pay



I am still waiting for any solution, i need to know that which files has to edit and from where i can find there files to edit.

I am having lot of problem with this

Thanks
0

#6 User is offline   EHLOVader 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 247
  • Joined: 05-May 11

Posted 01 February 2012 - 06:18 PM

View PostSmarter, on 31 January 2012 - 05:44 AM, said:

This should be the checkout sequence.

My scenario for checkout process page is like

1) Billing and Shipping Information
2) Shipping and Payment Method
3) Order Review
4) Pay



I am still waiting for any solution, i need to know that which files has to edit and from where i can find there files to edit.

I am having lot of problem with this

Thanks



Smarter were you still looking for a solution to this?
0

#7 User is offline   Smarter 

  • Member
  • Group: Members
  • Posts: 21
  • Joined: 09-January 12

Posted 02 February 2012 - 01:48 AM

View PostEHLOVader, on 01 February 2012 - 06:18 PM, said:

Smarter were you still looking for a solution to this?



Yes i a still looking for solution :(
0

#8 User is offline   XXII 

  • Member
  • Group: Members
  • Posts: 20
  • Joined: 29-June 11

Posted 02 February 2012 - 06:14 AM

I'm also tackling a similar problem.

I need to customise the checkout process to:

1) Measurements (I've extended the customer to support this data)
2) Delivery info
3) Billing and payment info

... then a confirmation page

Initially I have tried to add a 'measurements' partial and modify the switch/case statement in 'checkout_partial.php'
<? switch ($checkout_step) {
     case 'measurements': $this->render_partial('measurements'); break;
     case 'billing_info': $this->render_partial('shop:checkout_billing_info'); break;
     case 'shipping_info': $this->render_partial('shop:checkout_shipping_info'); break;
} ?>

Then I modified the $steps array in 'shop;checkout_progress.php'
<? $steps = array(
	'measurements' => 'Measurement profile',
	'delivery_info' => 'Delivery information',
	'payment_info' => 'Payment information',
); ?>


But I think I'm missing some AJAX/php dependencies...

What else do I need to modify to get this working? I think I might need some insight as to how the AJAX checkout works.

Also... ideally I'd like the 'measurements' page to have a 'domain.com/measurements' URL. Is it possible to have a page that collects customer data outside of the checkout? I'm yet to try this.. even if the customer is logged in?
0

#9 User is offline   Beats 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 193
  • Joined: 18-January 11

Posted 02 February 2012 - 10:46 AM

Smarter,

Have you searched the forums? I believe a solution was provided a while back. Just type in the right keyword via google search -> advance search lemonstand forum.

I recall a solution but am unsure of the topic title.
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users