If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / I want to show shipping costs on product page.

I want to show shipping costs on product page.

Started by ellipsis on 15 Sep 2012, 5:16 PM · Views: 1,884

Results 1 to 12 of 12
15 Sep 2012, 5:16 PM
#1
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

I want to show shipping costs on product page.

Hello. I'm trying to have a delivery cost show next to the price on product pages. I would like to set these on a per-item basis if possible.
So far I have set them to work out price by weight, this way by setting a products weight I am in fact setting the delivery price.
However the delivery price never actually shows on the product pages. £12 + £3 for delivery would be ideal.
We only ship to the UK and it is a flat rate so knowing where the reader is from is not neccesary.
If anyone could help that would be great.
Thank you.

15 Sep 2012, 6:22 PM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: I want to show shipping costs on product page.

You state you use flat rate for shipping, so why not just tell your customers that fact in a side box or even as part of your logo image? Makes life simple and a good selling point for when people land on any of your pages.

"we only charge £3 for delivery to anywhere in the UK, nothing more, nothing less" kind of thing.

15 Sep 2012, 6:26 PM
#3
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Re: I want to show shipping costs on product page.

Thanks but I would really like to have different shipping prices for different items and I think it would look better to have it next to the price tag, so if that's at all possible then I'm going to try do that.
However as you said, if the worst comes to the worst I'll just add prices to the item description.

15 Sep 2012, 6:33 PM
#4
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: I want to show shipping costs on product page.

[QUOTE=ellipsis;1150506]Thanks but I would really like to have different shipping prices for different items and I think it would look better to have it next to the price tag, so if that's at all possible then I'm going to try do that.
However as you said, if the worst comes to the worst I'll just add prices to the item description.[/
QUOTE]

Oh I see, I read it that you had literally one price for shipping, £3 for any product.

15 Sep 2012, 6:35 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I want to show shipping costs on product page.

ellipsis:

Hello. I'm trying to have a delivery cost show next to the price on product pages. I would like to set these on a per-item basis if possible.
So far I have set them to work out price by weight, this way by setting a products weight I am in fact setting the delivery price.
However the delivery price never actually shows on the product pages. £12 + £3 for delivery would be ideal.
We only ship to the UK and it is a flat rate so knowing where the reader is from is not neccesary.
If anyone could help that would be great.
Thank you.

Perhaps, if you explain this a little better, you'll get a better answer. I'm confused as why you need per-item to flat rate ship.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

15 Sep 2012, 9:03 PM
#6
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Re: I want to show shipping costs on product page.

Ah, sorry, I didn't really make that very clear. Sorry, it is a flat rate regardless of where they are in the UK. So location of the buyer does not matter for the shipping cost. Does that make sense? I would still however like different shipping costs for different items if possible. Thanks

15 Sep 2012, 9:23 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I want to show shipping costs on product page.

Flat rate can be set as:

  • $## for each shipment no matter what ships.
  • $## for order total with amounts for 0 to X, X to Y, Y to Z etc.

That is totally different from assigning a per-item cost.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Sep 2012, 12:07 AM
#9
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Re: I want to show shipping costs on product page.

So there's no way to do this without editing the product page and looking up the values in a Mysql table?
Well that sucks. I'll see if I can code something like that tomorrow, although if anyone else knows another way / has already coded it then that would be great.
Thanks picandnix.

dbltoe, you're right. What I said was misleading. But you understand me now right?

16 Sep 2012, 1:46 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: I want to show shipping costs on product page.

ellipsis:

So there's no way to do this without editing the product page and looking up the values in a Mysql table?
Not necessarily, but it would depend on the reason for different shipping costs depending on product. If there's some mathematical relationship between the shipping cost and some other parameter, like weight or price, it might be easier.

16 Sep 2012, 4:43 PM
#11
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: I want to show shipping costs on product page.

The real problem is when someone orders more than just the one item. How would the other item effect the total cost? Will two "priced-individually" items ordered result in a shipping cost that the customer will balk at?

I think you're creating more havoc than help.

Figuring by weight and price is already in ZC BUT, it is based on order_total.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Sep 2012, 6:58 PM
#12
ellipsis avatar

ellipsis

New Zenner

Join Date:
Sep 2012
Posts:
9
Plugin Contributions:
0

Re: I want to show shipping costs on product page.

Well I've solved this now.
into tpl_product_info_display.php find the line that does the price.
Then added:
if ($products_weight != 0)
echo ' <span style="font-size:70%;">Delivery £' . $products_weight . '</span>';
Works OK for what I need.
It's really rather a hack though. I don't use the built in zen cart shopping cart system and instead just link to amazon. But I think this would still work correctly if I did, shipping pricing is worked out by the combined product weight so it would still be correct.
If it's not obvious you just set product's weight to the price of its shipping.