VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: brooklynbase on March 04, 2016, 19:58:37 PM

Title: Show shipment option on product page, only works when product is added to cart
Post by: brooklynbase on March 04, 2016, 19:58:37 PM
Hi guys,

Apologies if this is in the wrong area of forum, I wasn't sure.

Title pretty much says my problem. I have 5 shipping options set with the default Virtuemart shipping, each one is set to a certain category. I have set them all to display on product page.

But on the product page it does not show me the shipping method. I add the product to cart and view my cart, and then it shows the correct shipping in my cart. If I then click back to the product I can now see the shipping method on the product.

I would like to see the shipping method before adding to cart first. Can someone help me please?

VM3 and Joomla 3.

Thanks.
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: jenkinhill on March 05, 2016, 00:16:33 AM
Are you using the default VirtueMart templates?  URL?

http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: brooklynbase on March 05, 2016, 21:34:28 PM
Hiya,

Thanks for the reply.

Yeah I just installed the VM3 default template and edited the CSS, that's about it.

URL is - http://purves.stagetest.co.uk/
Product specific link - http://purves.stagetest.co.uk/furniture/armchairs/voido-rocking-chair-detail
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: GJC Web Design on March 05, 2016, 22:58:48 PM
have u got the shipping method set to UK only?

If so I doubt it will show until a an address is given because how would it know its in the UK? ...   ;)
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: brooklynbase on March 05, 2016, 23:28:58 PM
I have to tried to set no country so it's available to all countries. I have also tried to set it to specific countries.

I just noticed also there seems to be a  bug with the blocking categories. When I set a shipping method to a certain category, that same category also gets added to the blocking categories list.

It doesn't seem to have an effect on the cart since it still works on checkout, but it doesn't seem to work to show on the product page.
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: brooklynbase on March 06, 2016, 00:09:30 AM
I've played around with it a little more and found some interesting things.

I created a new test shipping method and this time I didn't limit it to any category, just set the name and price, and the test shipping shows on all my products.

When I try to limit the test shipping method to one of my categories, it doesn't show anymore even though it does show as a shipping option when checked out. So it seems limiting shipping to a category causes it to not show on the frontend?

Any ideas?
Title: Re: Show shipment option on product page, only works when product is added to cart
Post by: Milbo on March 09, 2016, 12:43:59 PM
You can take a look on the layout in /plugins/vmshipment/weight_countries/tmpl

You can override it http://docs.virtuemart.net/tutorials/templating-layouts/101-how-to-overwrite-plugins.html