Jump to content
ednique

[Contribution] Ship In Cart

Recommended Posts

Ship 2 Pay v1.1 available for download....

 

Little update that corrects the display of the shipping options

 

Upgrade instructions in the install.txt

Share this post


Link to post
Share on other sites

Hi,

 

I was looking for such a contribution for a long time.

Well I tried it on my november 2.2 snapshot with no success

 

It simply showed no options.

 

Any ideas?

Share this post


Link to post
Share on other sites

I have MS1 ...

 

Can you send me your files:

/catalog/includes/classes/order.php

/catalog/includes/classes/shipping.php

/catalog/includes/classes/shopping_cart.php

 

I can have a look at them, but I assume they don't work the same...

 

Maybe one of the OSC-GURUS (aka Believers) can answer this question.

Share this post


Link to post
Share on other sites

It should normally already set the country....

 

if (!tep_session_is_registered('customer_id')) {

     $order->delivery['country']['id']=STORE_COUNTRY;

}

 

Isn't this enough?

Share this post


Link to post
Share on other sites

Are you working with MS1?

 

What is the value of STORE_COUNTRY ??

 

There's even a second piece of code:

if (!tep_session_is_registered('customer_id')) {

     $sendto = STORE_COUNTRY;

}else{

     $sendto = $customer_default_address_id;

}

 

In my case it seems to work ok ....

 

You are sure the country is set in the admin?

Share this post


Link to post
Share on other sites

Version 1.2 now posted...

 

Zone rates now working....

:oops: sorry for not checking zone rates...

 

Please inform me if certain shipping modules are not working....

 

upgrade instructions in the install.txt

Share this post


Link to post
Share on other sites

In case it's not working please post the following info:

 

* OSC version

* Shipping modules activated in the admin

* output of this piece of code: (put it just before <!-- shipping cost --> in the /catalog/shopping_cart.php file)

<?php

 echo '<b> debug start </b><br>'.

      'Quotes size='.sizeof($quotes).'<br>'.

      'logged in = '.tep_session_is_registered('customer_id').'<br>'.

      'cart contents='.$cart->count_contents().'<br>'.

      'cart content type='.$cart->get_content_type().'<br>'.

      'cart weight='.$cart->show_weight().'<br>'.

      'order country id='.$order->delivery['country']['id'].'<br>'.

      'order iso code 2='.$order->delivery['country']['iso_code_2'].'<br>'.

      'order zone id='.$order->delivery['zone_id'].'<br>'.

      'cust default address='.$customer_default_address_id.'<br>'.

      '<b> debug end </b><br>';

?>

Share this post


Link to post
Share on other sites

Hi burt.

 

My next contribution will be "order totals in cart"

At least I will try to do that....

 

You will get the order totals

* Sub-Total

* shipping cost (cheapest; if more than 1 it should be the the one with the lowest sort order)

* payment cost (cheapest; if more than 1 it should be the the one with the lowest sort order)

* Low order fee

* VAT

* Total

 

The customer would see immediate the total cost of the items in his basket

+ see the other shipping options

 

I don't know when it's gonna be finished, so keep an eye on the contributions forum.

Share this post


Link to post
Share on other sites

I'd love to see a working model of this contribution.

 

Please?


-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Share this post


Link to post
Share on other sites

OK, so how does it calculate shipping for USPS or UPS without a zip code?


-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Share this post


Link to post
Share on other sites

If you are not logged in, it takes the zip code, the zone and the country from the store address fields ...

 

once logged in, it takes the user's info.

Share this post


Link to post
Share on other sites

Hmmn, interesting.

 

What would provide ALOT more useful, is to have a text box to enter the zip code, and then a 'calculate' button that will show the rates.

 

I'm afraid that using the store's zip code to calculate the postage shown just isn't as useful because it will show a lower rate than will be charged during checkout. Even with a visual disclaimer, this could be construed as false advertising.


-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Share this post


Link to post
Share on other sites

Then you should put your company country and zip into the disclaimer...

 

Or you can say shipping prizes "starting from":

 

Or you could hide it if the user isn't logged in...

 

Anyway....

if that is false advertising, than the sub-total of the cart is also false advertising....

It will certainly be more expensive as it needs

+ shipping charges

+ payment charges

+ VAT

+ ...

Share this post


Link to post
Share on other sites

No, those are additional charges. But when you advertise that one of your charges is one thing, and then change it later is completly different.

 

It would also be considered false advertising if the the charge for the game in the cart was 14.99 + shipping + vat, but when they got to the checkout, it was 15.99 + shipping + vat.

 

 

At VERY least, this would be considered a 'Bait and Switch' technique.

 

Listen, I'm not trying to argue with you, and I think your got a terrific start to something here. I just don't think it's a good idea to tell your customers shipping is going to be one price, and then they sign up and shipping is more than you told them it would be. Do you seriously not think this would anger ALOT of customers?


-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Share this post


Link to post
Share on other sites
If you are not logged in, it takes the zip code, the zone and the country from the store address fields ...

 

once logged in, it takes the user's info.

 

Did not look at the contrib yet so forgive me if ignorant but...

 

Couldn't you make a country dropdown that refreshes the page

(and registers the country id in the session, logged in or not so it is accurate on next return)

to display the costs?

You could skip the whole store country id bit and display something like

 

Shipping Costs: [sELECT YOUR COUNTRY]

 

Mattice


"Politics is the art of preventing people from taking part in affairs which properly concern them"

Share this post


Link to post
Share on other sites

Mattice,

 

For US orders, you need the zip code, which is not Country (or even state) dependant. However a small text box asking for a zip code that when given, refreshes as you suggested, would be perfect!

 

Burt,

 

While I guess I'll accept that an estimated shipping cost, worded properly, would be better than not knowing the cost of shipping until signing up, I don't understand why anyone would accept this as being enough.

 

Why only offer an estimate? Why not give them *exactly* what you will charge for shipping?

 

What would you rather offer, an estimate, or the actual shipping cost?


-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Share this post


Link to post
Share on other sites

Maybe It won't be a bad idea to add country and zip code...

 

[country dropdown] [zip code input] [recalculate button]

 

My website stats tell me how many visitors i've had from the us...

How can I grab that info ? from the http header?

 

second:

how do i register session vars?

tep_session_register()?

 

Any idea's?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×