Billing and shipping Information in same tab
#1
Posted 25 January 2012 - 12:16 PM
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
#2
Posted 25 January 2012 - 03:48 PM
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
#3
Posted 27 January 2012 - 07:10 AM
dardub, on 25 January 2012 - 03:48 PM, said:
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
#4
Posted 27 January 2012 - 09:46 AM
<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();
}
#5
Posted 31 January 2012 - 05:44 AM
dardub, on 27 January 2012 - 09:46 AM, said:
<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
#6
Posted 01 February 2012 - 06:18 PM
Smarter, on 31 January 2012 - 05:44 AM, said:
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?
#8
Posted 02 February 2012 - 06:14 AM
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?
#9
Posted 02 February 2012 - 10:46 AM
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.

Help













