Bakery: Small Shop Module (ORIGINAL TOPIC)

Ruud

[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

freeSbee


www.bakery-shop.ch

The Bakery Website has a new look by Stefek (thanks a lot!) and its new own domain www.bakery-shop.ch
By the way - the site is a kind of manual where you'll find all about the Bakery features, settings, hacks, snippets and of course a download section.
Go there and check it out!

Regards Christoph

freeSbee


Hi Stefan

No doubt, there is no limit to the wish list of new features... Due to this fact most common e-commerce solutions are overloaded and rather complex. Bakery is a small shop module for WB and one of the main things of WB is its simplicity.
You might be better off with a full featured e-commerce programm!?

Regards Christoph

StefanRSA

Hi FreesBee.....

I was just wondering... Any new developments on how we can easily import bulk shop items or change the prices with an XLS upload???

Thanks,

Stefan
How can the sky be the limit? There is much more behind the sky!!!

StefanRSA

Thanks!!!!

Just to let you know how I am working around receiving a custom payment...
Each Item price is set to one... Then I change the charset for the quintity to amount/price...
So now the user will change the ex-quantity to the price to be paid....

THANKS FOR A WONDERFULL MODULE!!! (And Help!!!)



How can the sky be the limit? There is much more behind the sky!!!

spida

#229
And suddenly another prob. After updating to Bakery 0.94 I am getting the error message
QuoteFatal error: Call to a member function fetchRow() on a non-object in C:\xampplite\htdocs\WebsiteBaker\modules\bakery\view_cart.php on line 67
when I try to put something into the cart or want to see the cart.

EDIT

Solved by deinstalling and reinstalling the module. Thanks again for the wonderful module!

Best regards,
spida

freeSbee

#228
Quote from: spida on September 04, 2008, 01:12:31 PM
Just realised that german Umlaute are not accepted in the order process. If you type a city's name either into the orderers address field or into the delivery address field, Umlaut is denied with the message that this city does not exist (I tried it with Düsseldorf).

@ Spida, @ StefanRSA
It will be fixed in the next Bakery version. Till then please read about customer address form and charset.

For more informations please read or search the Bakery Website or Bakery threads since most of the questions are answered so far.

Ragards Christoph

StefanRSA

Hallo FreeSbee...

Me again! I just want to know... The text on the buttons of the cart is specified by value="<?php echo $MOD_BAKERY['TXT_CONTINUE_SHOPPING'] ?>

If I try to use <input type="image" instead of type="submit" it corupt the value... (It wont work)

How can I replace the buttons with images? If that can not be done, where do I change the text description?

I want for argument sake, want the "update cart" to be "refresh cart" and so on.....

Any sugestions?
How can the sky be the limit? There is much more behind the sky!!!

spida

Hi,

I am just playing around with Bakery and I think it's stunning! Thank your for this great module!

Just realised that german Umlaute are not accepted in the order process. If you type a city's name either into the orderers address field or into the delivery address field, Umlaut is denied with the message that this city does not exist (I tried it with Düsseldorf).

How could this be fixed?

Regards,
spida

seagull

Hello,

Does anyone know if it's possible to use Ideal as payment gateway?

In Holland 7 of 10 webpayments are done with Ideal.

thanks, Jan

StefanRSA

Would this mean I need to change the php all over the site or just in the view.php?
How can the sky be the limit? There is much more behind the sky!!!

freeSbee

Quote from: StefanRSA on September 02, 2008, 09:34:36 AM
If I place the <input type="text" ..../> tag in the Page settings, should it be in the "Product (Footer)" section as well as in the "Page (Product-Loop)" section??? Where exactly should I put it to make sure it is sent to the admin side as well as the payment gateway???

If you want to have it in the item overview page as well, of course you have to replace it in the "Page (Product-Loop)". Then fetch and clean the added $_POST values and save them in the "price" field of the "mod_bakery_order table" and so on...

Regards Christoph

StefanRSA

#222
Hi Christoph.

Sorry if I didn't make myself clear... Let me try from another direction....

What should I do if I want a webuser to enter his own amount he wants to pay for each product...
In other words. If I have captured the product, the price will only be a sugested price to be paid...
If I place the <input type="text" ..../> tag in the Page settings, should it be in the "Product (Footer)" section as well as in the "Page (Product-Loop)" section??? Where exactly should I put it to make sure it is sent to the admin side as well as the payment gateway???

The bakery module is the only module that does the order admin as well...
I am sure I can manipulate the module to work the way I want but need for the web user to be able to enter his own price. If <input type ="text" ..../> tag works I am happy...

Thanks!!!
How can the sky be the limit? There is much more behind the sky!!!

freeSbee

Quote from: StefanRSA on August 28, 2008, 04:32:15 PM
How can I make the Item Price editable for the user....?

Hi Stefan

This does not make sense to me!
I think it would be more reasonable to use a donation service of any payment gateway to aim for it. Do not flog a dead hors using Bakery for this goal.

But if you think you really have to, replace the item price by a <input type="text" ... /> tag in the item footer template which you can modify in the page settings of Bakery.

Regards Christoph


StefanRSA

#220
Hi freeSbee... I must say... I am new to PhP, MySql and dicovered WebsiteBaker... EVERY DAY I am learning more from Website baker than I learnt in PhP/MySql Manuals!!!! YOUR BAKERY BAKES MASSIVE SWEETCAKES!!!!!

I am implementing the Bakery Module but need to make some changes and am not too sure how...

PLEASE be so kind to assist me or to put me into the right direction.....

How can I make the Item Price editable for the user....?
I want, for instance, advertize a service. This service will be billed to a client at an daily rate...The client will then get a total to pay with a ref number.
I want to give them the option to go to the website and make a payment thru PayPal or any other PayGate system... He will then have to go onto the site, go to the specific service page, enter amount and referance number for the specific job.....

Is it possible and if so, what and where should I make changes?

PLEASE HELPPPPPPPPP!
(Found the answer to the PayPal question but the editable prices still outstanding........ :-()
How can the sky be the limit? There is much more behind the sky!!!

freeSbee

Hi Craig

Bakery cart AND Bakery summary page show shipping per item of ONE product only - as you have detected. But it is calculated correctly in the shipping total of all ordered products.

See view_cart.php (line 108):
// Determine shipping sum of all items specified
for($i = 1; $i <= sizeof($items); $i++) {
   $shipping_sum[] = $items[$i]['shipping'];
}
$shipping_sum = array_sum($shipping_sum);


Now, if you want to display the shipping subtotal of an ordered product, modify the view_cart.php AND view_summary.php files in the way you have mentioned in your post above.

Regards Christoph

craighamnett

I fixed the problem... the adding of shipping for individual items seems to be completely missing:

Line 140 of view_cart.php

$total = $items[$i]['quantity'] * $items[$i]['price'];

Change to:

$total = $items[$i]['quantity'] * ($items[$i]['price'] + $items[$i]['shipping']);

Hope this helps people, and if I've missed something completely n00bish please let me know.

Craig :)

craighamnett

#217
Is it just me or does this not calculate the shipping cost of each individual product?

All my settings appear to be correct (I've adjusted the free shipping to over 200.00 too)

[edit] fixed below ;)

freeSbee

Quote from: johnp on August 18, 2008, 08:38:16 PM
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/

@johnp

Hi John
At the moment I am not thinking about including new payment gateways.

I don't know the listed payment gateways. But if there is one accepting payment information by $_POST vars it shouldent be that complicated to modifiy the hidden paypal form in the view_pay.php file to fit other payment gateways than paypal.

Just modify the action url and the names of the hidden input fields which are self-explanatory.

Regards Christoph

sparkdigital

Thanks Christoph,

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

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_advance'], $_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_advance'], $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_paypal'], $_SESSION['email_body_paypal'], $_SESSION['email_headers_shop']);

@mail($setting_shop_email, $_SESSION['email_subject_invoice'], $_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

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

johnp

I guess I have the same question as geek

QuoteAny 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

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

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.

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


freeSbee

Quote from: Pam1234 on August 16, 2008, 07:22:14 PM
I ship to US and international customers but am finding that the zip code field is always "required." A customer can't put anything in the field other than numbers so can't just type in "none" or leave it blank or whatever. I searched the view_form.php file but can't seem to grasp what is generating the error message. Can you steer me in the right direction?

Hi Pam

Thanks for all your encouraging words!

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.

Hope this helps!
Regards Christoph