WebsiteBaker Support (2.8.x) > Bakery Shop

Bakery: Small Shop Module (ORIGINAL TOPIC)

<< < (44/167) > >>

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/

--- End quote ---

@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

craighamnett:
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 ;)

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

Line 140 of view_cart.php


--- Code: ---$total = $items[$i]['quantity'] * $items[$i]['price'];
--- End code ---

Change to:


--- Code: ---$total = $items[$i]['quantity'] * ($items[$i]['price'] + $items[$i]['shipping']);
--- End code ---

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

Craig :)

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):

--- Code: ---// 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);
--- End code ---

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

StefanRSA:
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........ :-()

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version