Post by kingdonk » Fri Jan 07, 2011 6:28 pm

Great mod but is there any way to make some changes, instead of being based on the cart value having it based on the amount of products in the cart.
For example:
1-5 products - £1.95
5-10 products - £3.00
10+ products- £6.00

There seems to be mods for every shipping method besides product amounts.

Newbie

Posts

Joined
Wed Dec 22, 2010 6:03 pm

Post by marc_cole » Sat Jan 08, 2011 12:04 am

Can this mod handle percentages?

Example:

customers spending 0.01 to 99 will have 5 shipping
customers spending 100-199 will have 10 shipping
customers spending 200-299 will have 26% shipping
customers spending 300-399 will have 19% shipping
customers spending 400 or more will have free shipping.

Marc

OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English


Active Member

Posts

Joined
Tue Dec 14, 2010 11:26 am
Location - Seattle, WA

Post by Johnathan » Sat Jan 08, 2011 6:05 am

kingdonk wrote:Great mod but is there any way to make some changes, instead of being based on the cart value having it based on the amount of products in the cart.
For example:
1-5 products - £1.95
5-10 products - £3.00
10+ products- £6.00

There seems to be mods for every shipping method besides product amounts.
I replied to this in your other thread, but just so it's here as well: you can get a quantity-based shipping module here.
Last edited by Johnathan on Fri Oct 07, 2011 9:30 pm, edited 1 time in total.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by bewitching » Fri Feb 04, 2011 11:02 am

Hi.
First off thanks for this great mod. I got spoiled by Zencart, but am learning to love opencart !
I am haveing an issue with the shipping cost not showing up in the cart module total, nor in the main cart page prior to checkout.
Screen shots below:

My set-up
Image

Item added to cart

Image

It does show up on the shipping address confirmation page
Screen shot below: ($5.00 is incorrect typo on my part. Correct shipping fee is shown in last pic.)

Image

And shows on payment page. Image

I thought that shipping showed in the cart module as soon as an item is added to the cart, and adjusted as more items are added to cart.

I only have this mod enabled for shipping, no others. I only ship to the US, and I only have one Geo Tax, and that's for Wisconsin residents only.

Any help would be appreciated.

Considering OpenCart once again :)


User avatar
New member

Posts

Joined
Fri Jan 28, 2011 10:59 pm

Post by Johnathan » Fri Feb 04, 2011 9:47 pm

No, shipping is only set after selecting a shipping method in the checkout process. Once it's there, it will continue to show in the cart module because it's saved to the session. You can't really set the shipping when the customer adds an item to their cart, because there's no address information that can be used.

Theoretically, you could do it for logged-in customers, by adding a routine to automatically add the shipping when adding a product, but I don't know of anything like that out there.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by bewitching » Fri Feb 04, 2011 10:32 pm

But I only have one shipping option and it's based on cart total. And it is automatically checked at checkout, as it is the only shipping I offer. It is this mod that we are talking about here in this discussion. No address needed for a shipping quote, just dollar amount.
It may be my mistake. I saw massey's images back on the first page of this discussion and it showed the cart mod with shipping showing and I thought it automatically added the shipping to the cart mod's total.

If not,is there anyway to eliminate the "total" and just have"sub total" in the cart mod? Subtotal only is fine.
I see it this way:
It seems like a "scam" ya know...... show me a "total" as I fill my basket, and then I go to checkout, see that my total increased due to shipping and taxes. So that "total" that was showing in my basket is actually a SUBtotal. and now halfway thru checking out, after adding the tax and shipping out I have a "total". Guess what... I dump my basket because I think you are deceptive about the total.

To me, total means everything has been added and it is a TOTAL, no other money added or due ( Unless I personally add something more to my basket).. Sub-total means there could be additional fees, taxes etc..... and is not a final "total"

I'm just trying to see it thru a customers eyes.

Considering OpenCart once again :)


User avatar
New member

Posts

Joined
Fri Jan 28, 2011 10:59 pm

Post by Johnathan » Sat Feb 05, 2011 12:20 am

To get rid of the "Total" line in the cart module, perform this edit:

Code: Select all

IN:
/catalog/view/theme/YOURTHEME/template/module/cart.tpl

REPLACE:
<td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?></b></span></td>
<td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>

WITH:
<?php if ($total['title'] != 'Total:') { ?>
<td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?></b></span></td>
<td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>
<?php } ?>
To get rid of the "Total" line on the cart page, perform this edit:

Code: Select all

IN:
/catalog/view/theme/YOURTHEME/template/checkout/cart.tpl

REPLACE:
<td align="right"><b><?php echo $total['title']; ?></b></td>
<td align="right"><?php echo $total['text']; ?></td>

WITH:
<?php if ($total['title'] != 'Total:') { ?>
<td align="right"><b><?php echo $total['title']; ?></b></td>
<td align="right"><?php echo $total['text']; ?></td>
<?php } ?>

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by bewitching » Sat Feb 05, 2011 3:11 am

Thank you SO much !
Did exactly what I wanted.
You rock Johnathan!

Considering OpenCart once again :)


User avatar
New member

Posts

Joined
Fri Jan 28, 2011 10:59 pm

Post by Johnathan » Sun Feb 06, 2011 11:36 pm

No problem ;D

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by mtlhd » Mon Feb 07, 2011 11:07 pm

Wow, sorry I have been absent for so long, the OC site hasn't emailed me when I got hits on here for some reason, Thank you Jonathan for updating things.

For those who inquired about it supporting percentages or product quantities, My Mod does not support those, There are others out there who do.

My mod only checks for how much money they spent, then determines by the numbers you plugged in how much it is going to charge the customer for shipping, then shows them during the check out process.

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by webfeetdesign » Thu Oct 06, 2011 9:20 pm

Hi, i;'ve installed this on my shop version - 1.5.1 and I get this error when I click edit in the admin;
Fatal error: Cannot access private property Document::$title in /homepages/27/d194522123/htdocs/treacle/shop/admin/controller/shipping/bytotal.php on line 9
Any ideas? Is it because I'm running it on version 1.5.1?

Any help would be greatly appreciated. This seems like the perfect mod as I want to be able to do shipping costs by the total spent.

Active Member

Posts

Joined
Fri Feb 05, 2010 1:28 am
Location - Dubai

Post by mtlhd » Thu Oct 06, 2011 9:41 pm

Alex,

That most likely is the reason, I wrote this application during the 1.4.8 release. I will look into upgrading the software soon. As soon as I do I will post it here.
Thank you for you interest, I apologize that it has not been updated in a while.

-Mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by webfeetdesign » Thu Oct 06, 2011 9:56 pm

No probs appreciate the speedy reply. I think i'm just going to buy a mod for it.

Cheers

Active Member

Posts

Joined
Fri Feb 05, 2010 1:28 am
Location - Dubai

Post by newtonad » Fri Oct 07, 2011 9:04 pm

hello.

This mod is great , thank you for the realese and for your time.

One question - is there a way to install the mod twice on same opencart platform - i need to use it twice because i ship with 2 different couriers and for one shiping is free over one value , while for the other shipping is free over another value.

Thank you again.

Regards
Stefan

Newbie

Posts

Joined
Sun Aug 29, 2010 9:39 pm

Post by mtlhd » Fri Oct 07, 2011 11:13 pm

newtonad wrote:hello.

This mod is great , thank you for the realese and for your time.

One question - is there a way to install the mod twice on same opencart platform - i need to use it twice because i ship with 2 different couriers and for one shiping is free over one value , while for the other shipping is free over another value.

Thank you again.

Regards
Stefan
Yes it is possible.
What I did was rename all the files bytotal2.* and renamed the section of the code where necessary.
It will show up on your lists as 'Ship By Total - 2'
I was unable to test it at my current location, if you see any problems let me know and I will fix it asap.

Here is your download - http://deviumrocks.com/download/ShipByT ... nstall.zip

Thank you for using the mod.

-mtlhd

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by newtonad » Fri Oct 07, 2011 11:31 pm

Hello.
Thank you for beeing so fast, and for your time.

Unfortunatly when instaling i get this error : Fatal error: Class 'ControllerShippingbytotal2' not found in /home/jewelsr/public_html/admin/controller/extension/shipping.php on line 124

Newbie

Posts

Joined
Sun Aug 29, 2010 9:39 pm

Post by mtlhd » Sat Oct 08, 2011 12:06 am

looking into it now.
What version of OpenCart are you using?

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by newtonad » Sat Oct 08, 2011 12:30 am

I get same error.
I am using 1.4.9.3 . and the mod runs perfectly .

Newbie

Posts

Joined
Sun Aug 29, 2010 9:39 pm

Post by mtlhd » Sat Oct 08, 2011 12:37 am

I apologize, I forgot to rename the class when I renamed all the functions.
This should work.

download - http://deviumrocks.com/download/ShipByT ... nstall.zip

New member

Posts

Joined
Sat Jul 10, 2010 2:50 am

Post by newtonad » Sun Oct 09, 2011 5:52 am

Hello.
Sry for my late answer , i had limited acces to my computer.
The second link does not work, i tried to use the mod from the first link and now i get another error :
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/jewelsr/public_html/admin/controller/shipping/bytotal2.php on line 84

thanks again, i really apreciate your effort
:

Newbie

Posts

Joined
Sun Aug 29, 2010 9:39 pm
Who is online

Users browsing this forum: No registered users and 14 guests