Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Simple checkout without options  (Read 7014 times)

Offline CarloG

  • Newbie
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Simple checkout without options
« on: June 30, 2017, 01:18:27 PM »
Hello everyone !

I have a simple question but I cannot find solutions about.
I need to setup a simple e-commerce, very simple one,
where the owner will have a frontend and then :

1. Never allow registration, always Guest as buyer
2. Never shipping options
3. Never payment options

So what I need is to go, as the visitor click on a checkout button, to the Guest form ( with all the forms to be filled ),
then jump over payment and shipping options.
The payment will be always 'CASH ON DELIVERY' on the order confirmation emails
The shipping will always be nothing as the product must be taken directly in the shop.

In abantecart pages, I think the most correct thing is :

Checkout takes me to the : /index.php?rt=checkout/cart
Then I will go to : index.php?rt=checkout/guest_step_1
Then I will go to : index.php?rt=checkout/success

With the variables SHIPPING and PAYMENT set as constant.

Is there a way to achieve that ?

Thank you for any suggestion.

Carlo

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Simple checkout without options
« Reply #1 on: July 01, 2017, 08:35:57 PM »
There is a Pickup from store option.

http://docs.abantecart.com/pages/ship_and_pay/shippings/pickup.html

If you need to have payment in store option, you can use bank transfer extension and rename to what eve you like, and add instructions.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Geoffrey

  • Full Member
  • ***
  • Posts: 153
  • Karma: +28/-3
    • View Profile
Re: Simple checkout without options
« Reply #2 on: July 02, 2017, 12:24:53 AM »
1. Never allow registration, always Guest as buyer

The Checkout Process starts on an Account Login page where visitors choose between Guest Checkout and Registering.  We want to skip this step, and also eliminate all aspects of registration and membership on the site. 
Method: redirect checkout links to Guest Checkout process, remove "Guest" titles from guest checkout process so that it looks like a standard checkout.

Redirect all Checkout buttons to point directly at the 1st step of "Guest Checkout".
Cart Page:  Go to /template/pages/checkout/cart.tpl, change both instances of  '<?php echo $checkout_rt; ?>'  to  'checkout/guest_step_1'.  Lines 71 & 183. 

Cart-Top:  Go to id_1/template/blocks/cart_top.tpl, change line 29 instance of href="<?php echo $checkout; ?>"   to
href="/index.php?rt=checkout/guest_step_1".   Note: If the cart_top modification breaks when site is uploaded, it's probably a root directory reference issue.

Remove the "Guest Checkout" titles from the two GC pages. 
/pages/checkout/guest_step_1.tpl and also ...guest_step_2.tpl
Comment out line 2  <span class="maintext"><?php echo $heading_title; ?></span>  in both files.

The checkout pages have a potentially un-needed sub-total.  IF you don't charge shipping or taxes, there is no need to display a redundant sub-total. 
You can't hack the sub-total out of the code because it is a required element in computing the total.
You also cannot turn-off Subtotal in the Order Totals extension because this results in a zero-balance Total for any order.
So the solution is to "not display" the sub-total.
The sub-total on the guest pages is called by a loop in the order_summary block. 
You can remove the sub-total from the loop output with a single php line that says "only echo totals for which title not equal 'Sub-Total:' ". 
Method:
Open /blocks/order_summary.tpl
Insert <?php if($total['title'] != 'Sub-Total:') { ?> at line 30
Also insert <?php } ?> at line 36.

2. Never shipping options

Remove Shipping Selection element from guest_step_2:
Insert a new style in style.css: ~~line 272 - #active_shippings {display: none;} 

3. Never payment options

There is a default_cod payment extension included with AbanteCart. 

I have never used COD or attempted your 3rd goal, but that is where I would start. 

Good luck.  Hope this helps. 
« Last Edit: July 02, 2017, 12:28:04 AM by Geoffrey »

 

Powered by SMFPacks Social Login Mod