Bakery 1.7: Skip checkout if only one payment option selected

jacobi22

QuoteSo I put invisible the classes .mod_bakery_bt_modi fy_pay_methods_f and .mod_bakery_selecte d_pay_h_f, but there is still appearing the word 'Rechnung'. (View screenshot).
the Word "Rechnung" in step 3 use the CSS-Class mod_bakery_pay_h_f and a h3 for the title
build a new class in your frontend.css with these code to make it unvisible

h3.mod_bakery_pay_h_f {
display:none
}


earlyer bakery versions has problems with the emailfilter in frontend output filter, so its needed to set this filter in Admin tools - frontend output filter - Filter Email addresses in text: to off
please test this before you start with the next work

QuoteIn the step before (Terms & Conditions and Payment Method) this text is not translated into German. Why? Which file generates the checkout? (invoice, Rechnung) It doesn't get the DE-language-file.

the pictures from step 3 shows, that the script get the german language files

my method to check it out
- look into the source code for a unique part, maybe a css-class or (in step2) the Step-image
- search in the bakery-folder for this Word "step_2" - found in bakery / templates / form / title.htm
- found the language variable {TXT_TAC_AND_PAY_METHOD} in line 4  - thats your not-translatet text
- search for TXT_TAC_AND_PAY_METHOD in bakery folder - found this in my language files and in view_payment_methodes.php // line 69 (this file generate the output in step 3)
'TXT_TAC_AND_PAY_METHOD'        =>        $MOD_BAKERY['TXT_TAC_AND_PAY_METHOD'],

do you have the same line there?

if no, change your code to this line
if yes, go to your language files and check this entrys for $MOD_BAKERY['TXT_TAC_AND_PAY_METHOD']


another point
on my systems i have the problem to found the bakery config.php
to check it out, put a simple echo in your config.php like
echo "my Config";
Dont forget to delete this after your test

if your config.php correct includet, you have a output in step2 and some other pages  with the text from the echo like my Config

if you not found this output, go to this thread and follow my instructions there
freeSbee - the bakery autor means, it works, but not so on my bakery 1.7 -shops
i have to change the config call in the files
view_item.php
view_cart.php
save_item.php
save_form.php
modify_page_settings.php
modify_item.php




mcln

Hello
I have the same problems.
So I put invisible the classes .mod_bakery_bt_modify_pay_methods_f and .mod_bakery_selected_pay_h_f, but there is still appearing the word 'Rechnung'. (View screenshot).

In the step before (Terms & Conditions and Payment Method) this text is not translated into German. Why? Which file generates the checkout? (invoice, Rechnung) It doesn't get the DE-language-file.

Thank you so much for help
Marie-Claire

svsanchez

Hello Ruud and Jacobi, thank you for your help, there were a few other files to modify as well but I don't know which ones anymore since I opened so many to search for the bits of code to remove. I don't like the end result but will have to work like this on the 3 sites I had already uploaded the products. I removed version 1.7 from a site which I had started uploading products as I think version 1.6 is better suited for sites with only 1 payment option. Hopefully the author will bring back a way to not have to select a payment method when only 1 payment option is configured on version 1.7.1!

jacobi22

QuoteHello Ruud, thank you for that piece of code, could you please tell me which file to modify?

frontend.css from the bakery-module

svsanchez

Hello Ruud, thank you for that piece of code, could you please tell me which file to modify?

Anyway, I think Bakery shouldn't ask the customer to chose a payment method if there's only one. Hopefully the author will check into that!

Ruud

Quote from: svsanchez on September 09, 2013, 11:17:19 PM
I already did that but unfortunately Step 3 gives you an option to "CHANGE PAYMENT METHOD" and when you are taken back to step 2. This is confusing for stores with only one payment method or none at all (using Bakery just to take quotes from their visitors).

You can hide the button/option by using:

.mod_bakery_bt_modify_pay_methods_f {
    display: none;
}
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

svsanchez

Hello Ruud, I already did that but unfortunately Step 3 gives you an option to "CHANGE PAYMENT METHOD" and when you are taken back to step 2. This is confusing for stores with only one payment method or none at all (using Bakery just to take quotes from their visitors).

Ruud

Quote from: svsanchez on September 09, 2013, 04:52:05 PM
is there a way to manually edit the code so that I skip step 2 in checkout and go directly to step 3?

Step2 also needs the visitor to accept the shop terms and give the (most wanted) possibility to add an extra user message. So I think skipping this step is not an option.
The text of the payment instructions and the button to proceed to the next step can be modified using the (payment method) languagefiles and frontend.css.
I guess it should be doable to change this to a simple "proceed" button (actually accepting the payment method)
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

jacobi22

Quoteis there a way to manually edit the code so that I skip step 2 in checkout and go directly to step 3
i think, its possible, if you send the payment method and other datas from the payment method form as hidden values in the first step
maybe its also possible to rebuild the skip_checkout process, but i'm not sure, why the author removed this feauture

svsanchez

Hello Jacobi, this is a real problem for me as I already uploaded hundreds of products in 3 Bakery 1.7 catalogs, is there a way to manually edit the code so that I skip step 2 in checkout and go directly to step 3?

jacobi22

this option is not available in 1.7
a downgrade is difficult, bakery 1.7 use not the same database strukture like bakery 1.6

svsanchez

Hello, I only use 1 payment option at checkout, in Bakery 1.6 there was an option to "SKIP CHECKOUT IF ONLY ONE PAYMENT OPTION SELECTED" but I can't find it in Bakery 1.7. This is a must for me, if this option is not available in 1.7 can I revert to version 1.6 by just installing the module again with the 'overwrite newer files' option checked?