Buy Now With 1 Click

is there a way to add more input fields in the 1 click buy ?

i would be interested in adding, address, region, date and time...

Yes, you can edit the design/themes/responsive/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl file.

To add a field, you this code as an example:

{__("address")}

Then open the app/addons/call_requests/func.php and find the fn_call_requests_placing_order function. Add your data to $cart['user_data']. For example:

    $cart['user_data']['s_address'] = $params['address'];    
    $cart['user_data']['b_address'] = $params['address'];

After the following code:

    foreach (array('b_address', 's_address', 'b_city', 's_city', 'b_country', 's_country', 'b_state', 's_state') as $key) {
        if (!isset($cart['user_data'][$key])) {
            $cart['user_data'][$key] = ' ';
        }
    }

Make sure you use the same fields the standard user_data uses. You can browse the ?:orders DB table structure to find out what columns it includes. Make sure you use one of them in your $cart['user_data']

Note that this solution will work with the default set of profile fields only. If you need to use additional fields, more complex modification is requried

@oleg.gorshkov

Did not quite understand how to use your solution.
How to show the Address info in the backend? Thanks!

How can I add a note "Shipping charges applied" on buy now with 1 click pop up?

How can I add a note "Shipping charges applied" on buy now with 1 click pop up?

What do you mean? Please clarify

What do you mean? Please clarify

Ok I want to add a text on a "buy now with one click" Pop-up window below the e-mail field on the Buy now with 1 click Pop up window

Please see this image so you can understand
http://prntscr.com/k2h6t8

design/themes/THEME/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl

You can add necessary text before the following line of code:

If you are familiar with hooks, please use the call_requests:call_requests_form hook to override buy in 1 click content

design/themes/THEME/templates/addons/call_requests/views/call_requests/components/call_requests_content.tpl

You can add necessary text before the following line of code:

If you are familiar with hooks, please use the call_requests:call_requests_form hook to override buy in 1 click content

Please tell me how can I add text ?

Should I add this line

Shipping Rates Applied

?

Can you please give an example

Please tell me how can I add text ?

Should I add this line

Shipping Rates Applied

?

Can you please give an example

Yes, your example is correct. If you have several languages in your store, use language variables

{__('shipping_rates_applied')}

Then go to Administration -> Languages -> Translations and add shipping_rates_applied language variable with required values for different languages

Yes, your example is correct. If you have several languages in your store, use language variables

{__('shipping_rates_applied'}

Then go to Administration -> Languages -> Translations and add shipping_rates_applied language variable with required values for different languages

I tried this, it is not working, after adding that line and adding language variable from the admin panel, I try to click on buy now with 1 click button and it did not even open the pop-up nothing happened.

I did not do anything related to hooks, please let me know If I am doing something wrong?

Please post here full content of the call_requests_content.tpl file (use Code functionality in the WYSIWYG editor above)

Please post here full content of the call_requests_content.tpl file (use Code functionality in the WYSIWYG editor above)

{if $product}



{include file=“common/image.tpl” images=$product.main_pair image_width=$settings.Thumbnails.product_cart_thumbnail_width image_height=$settings.Thumbnails.product_cart_thumbnail_height}


{$product.product}




{/if}

{__("your_name")}
{__("phone")}

{if $product}

— {__("or")} —

{else}

-

{/if}

{include file=“common/image_verification.tpl” option=“call_request”}

{include file="buttons/button.tpl" but_name="dispatch[call_requests.request]" but_text=__("submit") but_role="submit" but_meta="ty-btn__primary ty-btn__big cm-form-dialog-closer ty-btn"}

Here is the Content of My file

I do not see new code here.

I do not see new code here.

Yes because I have removed the code because it was not working, however here is the code with the new code.

{if $product}



{include file=“common/image.tpl” images=$product.main_pair image_width=$settings.Thumbnails.product_cart_thumbnail_width image_height=$settings.Thumbnails.product_cart_thumbnail_height}


{$product.product}




{/if}

{__("your_name")}
{__("phone")}

{if $product}

— {__("or")} —

{__('shipping_rates_applied'}

{else}

-

{/if}

{include file=“common/image_verification.tpl” option=“call_request”}

{include file="buttons/button.tpl" but_name="dispatch[call_requests.request]" but_text=__("submit") but_role="submit" but_meta="ty-btn__primary ty-btn__big cm-form-dialog-closer ty-btn"}

Please provide me the solution

Sorry, I missed bracket in my code. Correct code is

{__('shipping_rates_applied')}

Sorry, I missed bracket in my code. Correct code is

{__('shipping_rates_applied')}

worked like a charm :-) <3 Can you tell me How can I hide E-mail field from the same pop-up screen?

Just replace

    
— {__("or")} —

with

{*
    
— {__("or")} —

*}

Thanks for your reply eComlabs, Can we add a confirmation step on this pop-up? because a lot of my customers are confused. They order with Buy now with 1 click and they also make the same order by Cash on delivery So I just want to know is there a way that I can add a confirmation step or checkbox that says Confirm order?

Yes, you can the code should be similar to

    
{__("confirm_order")}

(!) Not tested + value will not be saved in database