LemonStand Forum: Custom Checkout Steps - LemonStand Forum

Jump to content

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

Custom Checkout Steps

#1 User is offline   caddoo 

  • Member
  • Group: Members
  • Posts: 10
  • Joined: 01-September 11

Posted 15 September 2011 - 07:26 AM

I'm struggling to determine how to structure my checkout code wise.

It has the following steps:

  • Select Delivery type (home/fixed location)
  • If home selected then shipping info, if not shipping info is auto added from data in database for fixed locations.
  • Select a delivery date
  • Order Extras (opportunity to add options to order as well as extra small products)
  • Payment Method
  • Billing Info
  • Review
  • Pay


I'm struggling with getting this working with shop:Checkout, maybe I need to create my own action?

Any advice on how I should approach this is appreciated.
0

#2 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,631
  • Joined: 31-October 09

Posted 18 September 2011 - 04:01 PM

Hi!

Steps 1-4 require custom pages. You can style them so that they would look like other Checkout pages.

1. Is Delivery types are just shipping options? If so, you can save the selected option to the internal checkout data storage:

Shop_CheckoutData::set_shipping_method(post('shipping_method')); // Supposing that your shipping method drop-down list have name "shipping_method" 

After setting the shipping method you should redirect either to page for step 2 or page for step 3.
2. Display the regular shipping location form partial here. Save the entered data by calling Shop_CheckoutData::set_shipping_info() in the form submit handler.
3. It should be a custom page with the delivery date field. You can save the field value to a custom order field.
4. Another custom page with a product list.

5-8 - regular checkout page without some regular steps. Skipping checkout page has been discussed on this forum many times. Let us know if you need help with it.

I hope this helps. Thank you

#3 User is offline   XXII 

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

Posted 02 February 2012 - 10:43 PM

If using custom pages outside of the checkout, is it still possible to update customer data? I read somewhere in the documentation that you can only update customer data in the checkout.. ?
0

#4 User is online   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,631
  • Joined: 31-October 09

Posted 03 February 2012 - 12:53 AM

Hi,

You can update the checkout information at any time using the Shop_CheckoutData class. Try searching this forum for information about this class. For example:

http://forum.lemonst...t-billing-info/

Use Google for the forum search: shop_checkoutdata site:forum.lemonstandapp.com

Thank you

Share this topic:


Page 1 of 1

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