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: 96
Joined: Wed Feb 21, 2007 2:51 pm
Location: Preston, Lancashire, England
Contact:

International Shipping

Post by kevinp » Sun May 03, 2009 8:46 am

Hi
I use the shooping cart on my page at www.aivahealth.co.uk and have had many comments on how professional it looks, nice work.

I generally ship free within the UK but have had quite an interest for international orders so I was wondering how to go about putting in a flat international shipping rate e.g. a tick box which would add the flat international shipping amount to the total when clicked.

I do dabble with php but am certainly not as competent as yourself and am afraid if I mess with such a big project it may never work again.

Any pointers would be appreciated.

Thanks again for the fantastic cart script.

Kevinp

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

Post by Navaldesign » Sun May 03, 2009 7:10 pm

Well, this is rather complicated.
In my commercial cart i have made it this way:

I have in the admin interface a field where the origin country is declared (in Example, United Kingdom)

Then, in the shipping fees tables, i have 4 different areas: National. International Area 1, Intl Area 2, Intl Area 3 where areas 1 2 and 3 usually are the same as defined by most postal services.
The script looks into the Areas tables of countries, and simply applies the correct fees.

Now, regarding this specific cart, I will see what i can do and come back to you shortly.
www.dbtechnosystems.com

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

Post by kevinp » Sun May 03, 2009 10:32 pm

Thankyou. That would be appreciated very much. I played about with putting the tick box on the actual order forms to activate a hidden field and transfer the extra amount when ticked but still working on it.

Thanks again

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

Post by kevinp » Wed May 06, 2009 8:27 pm

Absolute genius. Just uploaded and tested. Everything works fine, the shipping costs update and the emails are sent but when it sends the order to paypal it seems to ignore the shipping cost and just sends the net total e.g.

Net Total £35.94
Shipping £5.00
Total £40.94

This shows on the cart and in the email but only £35.94 is passed to paypal.

I'm sure this is simply the wrong total being passed on the thankyou page but have'nt been able to identify it yet.

A truly professional piice of work

Thanks again

kevinp

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

Post by Navaldesign » Wed May 06, 2009 9:18 pm

I just tested and it transmits the handling and shipping fees ok ????

How can i see the problem you are having ?
www.dbtechnosystems.com

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

Post by kevinp » Thu May 07, 2009 11:55 am

Mmmm. Must be something I'm doing wrong. I'll re set it all up, try again and let you know the results.

Thanks.

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

Post by kevinp » Fri May 08, 2009 6:25 pm

It was my fault. I had my paypal settings all wrong so they didn't allow the cart to overide the default shipping charges.

Thanks for your help, the cart is fantastic.

kevinp :D

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

Post by kevinp » Sat May 09, 2009 8:44 am

Hi

I'm trying to echo the cart total into the header (a master page) using a form that is shown through a IFrame in the header. The form refreshes by targeting cart.php and contains the code:

Code: Select all

<?php 

$cart = isset($_SESSION['cart']) ? $_SESSION['cart'] : '';
$itemcount = isset($_SESSION['itemcount']) ? $_SESSION['itemcount'] : 0;

$strHTML = "";

if ($itemcount == 0)
{
   $strHTML = "Your basket is empty.";
}
else
{
   
   $strHTML .= "<td>Your Cart</td></tr>"."\n";

   $total = 0;
   for ($i=0; $i<$itemcount; $i++)
   {
      
      //$total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]);
        $total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]+$cart[SHIPPING][$i]);

   }

   $strHTML .= "<tr>"."\n";
   $strHTML .= "<td></td><td></td><td></td>"."\n";
   $strHTML .= "<td>Total</td>"."\n";
   $strHTML .= "<td>"."£".number_format($total, 2)."</td>"."\n";
   $strHTML .= "</tr>"."\n";
   $strHTML .= "</table>"."\n";
   $strHTML .= "</div>"."\n";
} 
echo $strHTML;

?>
to show the cart total in the header.

It works with the first (commented) line ( //$total = $total + ($cart[PRICE][$i]*$cart[QUANTITY][$i]);) and updates the total when items are added and taken away but it ignores any tax, discount or shipping charges.

As you can see below the commented line I've tried to add the shipping charges but this just seems to add £4.00 to the total regardless of shipping charges.

I've also tried + $shipping_total but i'm struggling to identify which variable/function carries the shiping and discount totals.

You can see it in action at http://www.aivahealth.co.uk.

Cheers again for the cart, great work.

Kevinp

uniformality

Post by uniformality » Sat May 09, 2009 9:12 am

Hello

Just a quick sanity check here . Have you changed the login details for the admin page. i cant log in at all

Regards

Paul

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

Post by Navaldesign » Sat May 09, 2009 11:32 am

Shiiping per item means that the shipping should ALSO be multiplied by quantity, so it should be:

$total += ($cart[PRICE][$i]+$cart[SHIPPING][$i])*$cart[QUANTITY][$i];
Last edited by Navaldesign on Sat May 09, 2009 11:37 am, edited 1 time in total.
www.dbtechnosystems.com

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

Post by Navaldesign » Sat May 09, 2009 11:37 am

uniformality wrote:Hello

Just a quick sanity check here . Have you changed the login details for the admin page. i cant log in at all

Regards

Paul
Not sure what you mean. Which Admin page ? In the demo ? If its that that you mean, i have disallowed acces because anyone did whatever he liked. Now you can only see the demo, and there is no need to even login. Changes you might want to make will not be saved.
www.dbtechnosystems.com

uniformality

Post by uniformality » Sat May 09, 2009 11:40 am

hi
i download the webshop plus and uploaded the admin folder. The shop works ok but i cant login to the admin page i used admin, admin as user / password but no luck.

could it be a permissions issue?
i can post a link if it helps?

regards

paul

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

Post by Navaldesign » Sat May 09, 2009 12:00 pm

Try admin1 / admin1 .

However, if those work, it means that you don't have the latest version.
That version had a couple of bugs, which have been fixed in the latest version.
www.dbtechnosystems.com

uniformality

Post by uniformality » Sat May 09, 2009 1:11 pm

ty naval,

admin1 worked.
If i download the latest version do i just need to change the admin folder or is there all the page codes as well?

Great piece of work by the way, Thank you for sharing it and your ongoing support.

Regards
Paul

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

Post by Navaldesign » Sun May 10, 2009 6:38 am

You should upload the entire "admin" folder.

Then you MUST replace the code in Start of Page in the cart, customer, checkout and thankyou pages. Actually it only takes a few minutes.

Do NOT use the version you have, as i said there were a few bugs in the code.
www.dbtechnosystems.com

Post Reply