WebsiteBaker Support (2.8.x) > Bakery Shop

Bakery: Small Shop Module (ORIGINAL TOPIC)

<< < (43/167) > >>

Pam1234:

--- Quote from: freeSbee on August 16, 2008, 08:51:16 PM ---The file you are seeking for is called view.php.

Line 349 et sqq. check for blank fields. You could exclude the zip field by coding something like:
    if ($value == "" AND $field != "zip") {

Line 422 et sqq. check the zip code. Allowed are at least 4 and up to 10 chars a-z, A-Z, space, - (hyphen) and all digits 0-9, so "none" should be ok to enter.

--- End quote ---

Wow, that was fast. It works great. Thanks!

johnp:
I guess I have the same question as geek


--- Quote ---Any good coder able to get Authorize.net payment gateway to work with this? I have looked at it some but not sure how to integrate into this. Here is a link to authorize.net on using the SIM method, its the best one because the user does not have to get SSL
--- End quote ---

Is it possible to add payment gateways like
http://www.authorizenet.com/
https://www.2checkout.com
http://www.chronopay.com/
http://www.ipayment.de/
http://www.paynova.com/
http://www.psigate.com/
http://www.secpay.com/
http://www.trustcommerce.com/


to what I see as a good module going places but using paypal is not my payment gateway of choice!

I would think I am not the only one asking this but a flavor of payment gateways could do justice for this module..

JP

sparkdigital:
Hi Freesbee,

Thanks again for all your hard work!

I'm just wondering if it is possible to send a slightly altered email to the shop owner - my client is a bit confused when it receives a copy of the confirmation / invoice sent to the customer.

How would I do this?

Thanks,

Konrad

freeSbee:
Hi Konrad

Ok, here you go (just a suggestion - not tested):

1.
Write the email body text into a new file you could call shop_email.php using a php var like
$shop_email_body_advance = 'Here goes your email body text.';

2.
If you need a different subject make another var for it
$shop_email_subject_advance

3.
If you need different texts depending on the payment methode make other vars like
$shop_email_body_paypal
$shop_email_subject_paypal
$shop_email_body_invoice
$shop_email_subject_invoice

4.
Upload the file by ftp into the bakery directory.

5.
Include your new file shop_email.php into view.php and replace the appropriate $_SESSION vars in the mail() function (about lines 573, 586, 599) by your new ones:

E.g. replace

@mail($setting_shop_email, $_SESSION['email_subject_advan ce'], $_SESSION['email_body_advance'], $_SESSION['email_headers_shop']);

by ( => step 1 w/o step 2 implemented only)

include('shop_email.php');
@mail($setting_shop_email, $_SESSION['email_subject_advan ce'], $shop_email_body_advance, $_SESSION['email_headers_shop']);

else by ( => step 1 and step 2 implemented)

include('shop_email.php');
@mail($setting_shop_email, $shop_email_subject_advance, $shop_email_body_advance, $_SESSION['email_headers_shop']);

6.
Use the same code again for replacing the 2 lines

@mail($setting_shop_email, $_SESSION['email_subject_paypa l'], $_SESSION['email_body_paypal'], $_SESSION['email_headers_shop']);

@mail($setting_shop_email, $_SESSION['email_subject_invoi ce'], $_SESSION['email_body_invoice'], $_SESSION['email_headers_shop']);

If you have implemented step 3 repeat step 5 using the other vars defined in step 3 and replace the 2 lines above by the appropriate code.

Your done...

7.
Let us know about problems / errors / success!

Regards Christoph

sparkdigital:
Thanks Christoph,

I'll try and let you know how I get on.

Konrad

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version