Webshop Plus! v.2.0 for WWB7

This forum is dedicated to discussions about shopping carts/ecommerce.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Fri Feb 04, 2011 3:09 pm

Hi Naval

I've decided to go with sending the Emails as html. Seems to fit clients needs better (he wants simple unlike his last cart) I've started by trying to define a table with the code below. I'm not a php guru but learning. I'll post (hopefully my solution) when I'm done.

Code: Select all

// create mail message to merchant
$subject = $mail_merchant_subject;
$title = $mail_merchant_title;
$footer = $mail_merchant_footer;
SendEmail($dbts_contactemail, $subject, $title, $orderid, $timestamp, false, $mail_merchant_footer);

function SendEmail($mailto, $subject, $title, $orderid, $timestamp, $maskcardno, $footer)

{
require 'admin/config.php';
require 'admin/paypal_settings.php';
   $header  = "From: ".$GLOBALS['dbts_title']."<".$GLOBALS['paypal_email'].">"."\r\n"; 
   $header .= "Reply-To: $paypal_email"."\r\n"; 
   $header .= "MIME-Version: 1.0"."\r\n"; 
   $header .= "Content-Type: text/plain; charset=ISO-8859-1"."\r\n"; 
   $header .= "Content-Transfer-Encoding: 8bit"."\r\n"; 
   $header .= "X-Mailer: PHP v".phpversion(); 


   //New Code--------------------------------------------------------------------------------

// message
$message = '
<html>
<head>
<title>Invioce</title>
</head>
<body>

<table width="642" border="1" cellpadding="1" 
cellspacing="1" bordercolor="#000000">
<tr>
$message = "<td width="210">$title:</td>
</tr>
$message = "<td width="419">$alpha." $orderid " </td>"
$message = "<td width="419">$order_date_label." $timestamp " </td>"
$message = "<td width="419">$customer_info_label."." </td>"
</tr>
etc, etc, etc.

Steve. Its my wifes site but I do most of the marketing etc. If you just send a message through the contact form http://www.aivahealth.co.uk/contact.php.

Cheers

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Fri Feb 04, 2011 3:34 pm

Kevin,

your email header is wrong, as you need to send HTML email (not text/plain)

You can NOT do his in simple HTML, as you need to create a PHP loop, to loop through products and create as many table rows as the products themselves.

If you wish, contact me through my sitecontact form and I will send you the code I used for the html template so you can use it in your own code.
www.dbtechnosystems.com

User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Fri Feb 04, 2011 4:28 pm

Ahh. I had changed the header but the code I posted was not up to date.

I see what you mean about looping. I will contact you Naval. That would be very helpfull. Thank you.

Cheers

Kevinp

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Wed Feb 09, 2011 9:11 pm

Yes, it will show, pls read the documentation, and look at the example product form that is included in the example project.
www.dbtechnosystems.com

Hrankov
 
 
Posts: 48
Joined: Sun Feb 13, 2011 7:15 am

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Hrankov » Sun Feb 13, 2011 8:02 am

Hello friends,

because of usual procedures concerning Credit Carts like VISA, the guys want to see the LOG HISTORY.
It means, we need to establisg a MEMBER AREA, where at a special point of ordering, just after the Schopping Cart and the Customer Area the visitors need to Sign In with Username and Password. Something like this very FORUM Membership form with all option we see here - Register, Login, Logout, Change Password, Forgotten Passsword and so on.

The People fron VISA, Master Cart and all others handling with Credit Carts want to see the Login History, who was in contact with us, what he orders etc. because of security guarantees.

My problem: I nave no idea how to do it. There is no extesion for this case. The WebShop 2 is wonderfull, we used it to establich a Fine Arts Web Shop for very special modern artists from Bulgaria. If you visit http://shop.hrankov.eu you can take a look of the start of this project. Thanks to the creators of this extension, we are very happy with WebShop 2 indeed. I can manage it perfectly, but we really need this option too. Any help?

Best regards from Sofia

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Sun Feb 13, 2011 8:48 am

I'm sorry, what you want is something that goes beyong the Webshop Plus capabilities. If they need also Order details in the Log History, then you need a full Database driven cart with customer registration section, customer login etc. All this is possible but not with the free Webshop Plus.

You need to either use a ready made cart (OSCommerce, Zen Cart etc) or a custom made like my own Webshop Pro (paid)

Please note that these requirements are rather anusual. CC companies usually only require that IF you hold the cc details on your server, you fullfill the security standard requirements they have adopted, but they certainly do NOT ask to have the order details , or have a customer registration area. Maybe you have misunderstood something ?
www.dbtechnosystems.com

Hrankov
 
 
Posts: 48
Joined: Sun Feb 13, 2011 7:15 am

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Hrankov » Sun Feb 13, 2011 9:38 am

It is absolutelly possible, that I have misunderstood something. Most Banks have usulally they own interface for CC payments, we just need to implement it via iFrame in our Web Shop. But anyway I like to see how your WebShop Pro works, and need for all cases your Customized DBTS Logger, but let me first ask it he hold the Log History as a script too? It will be enaugh, I think so. How my I test your WebShop Pro (I do not have any exeriancve wit MySQL, so I preffer the PHP Version) and how may I recieve both products for wich price (via VISA pay service)? You may use my personal email to answer this qustions, if you preffer. - Email address removedPeter Hrankov

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Sun Feb 13, 2011 10:25 am

You have mail.
www.dbtechnosystems.com

User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Mon Mar 07, 2011 7:43 pm

Hi Naval

You kindly showed me how to add Country specific tax to the net cart value using the code below:
This is exactly the same issue as US residents: US sites apply taxes ONLY to residents of the same state where the company is.
Whay you can do:
Set the tax to be 0.

Ad these lines :

if($shiptocountry == $origin_country){
$taxes = $subtotal * 10/ 100;
}

just after


if ($tax_type == "unique") {
$taxes = $subtotal * $unique_tax_percent / 100;
}


where 10 (or whatever else) is the applicable tax percent.
But is it possible for it to be added to the gross value of the cart (including shipping) so that the tax for the specific country would be added to the total cart value.

I've played around with changing the $taxes = $subtotal to $taxes = $total but think I'm missing something as it failed miserably.

Cheers

Kevin

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Mon Mar 07, 2011 9:28 pm

Hi Kevin,

Out of town at the moment, I need to have a look to the code and I'll keep you posted. I'll be back tomorrow eveni ng.
www.dbtechnosystems.com

User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Mon Mar 07, 2011 10:29 pm

Thanks Naval. Much appreciated.

I’m not sure why but it seems common for the tax to be added to the whole cart value (including shipping). This seems to be a big alteration in the cart code from what I can see. Any pointers would be appreciated.

Cheers
Kevin

User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Thu Mar 17, 2011 9:00 pm

Hi Naval

My client has reported a strange problem. On adding a product to the cart all is well, the product is added and the tax is added for Australian orders only with local rate shipping. When the user selects a country all this would change with the GST 10% removed and international postage removed but unless they click the recalculation button the tax and postage remain the same but they are allowed to proceed to the customer page.

Is ther e a way to require the customer to click the recalculate button if they change the country before continuing to the customer page? I tried using events to unhide the 'checkout' button until the recalculate is pressed but this simply disabled the recalculate button.

Or can the recalculate routine be added to the country selection as an onchange event.

Cheers

Kevin

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Thu Mar 17, 2011 9:18 pm

Yes, the best thing is to use a small Javascript and an "onChange" event to recalculate the tax, shipping etc and populate all fields with the correct values.
www.dbtechnosystems.com

User avatar
kevinp
 
 
Posts: 94
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by kevinp » Thu Mar 17, 2011 10:17 pm

Maybe I could call the recalculate function from ajax. I'll see what I can come up with with a visit to Google.

Cheers

kevin

User avatar
Navaldesign
 
 
Posts: 905
Joined: Sat Mar 01, 2008 8:08 pm
Location: Italy
Contact:

Re: Modified version of the WB Webshop!! Webshop_plus

Post by Navaldesign » Fri Mar 18, 2011 6:23 am

Hi Kevin,

Using Ajax you can recalculate all the cart values and then repopulate the fields as necessary. But is it really worth it for a "free", basic level cart ?
www.dbtechnosystems.com

Post Reply