VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Digits on April 27, 2015, 22:51:00 PM

Title: select_shipment.php only being used with unregistered users
Post by: Digits on April 27, 2015, 22:51:00 PM
Hello, I am creating a new custom view for selecting shipments in VM. I've got my select_shipment.php file inside my
home/user/public_html/templates/templatename/html/com_virtuemart/cart
folder, as select_shipment.php is supposed to be. Unfortunately it only activates itself for unregistered users.
Right now, I've stripped out all of the code to eliminate any possible php errors and here's what it shows.

Here's the page shown for a registered user.
(http://i.cubeupload.com/Nk4U7b.png)

and here is what it shows an unregistered (logged out) user.
(http://i.cubeupload.com/eER57s.png)

Is there any way for me to show the contents of select_shipment for all users? I've tried editing the default_pricelist.php page to include the code as well which didn't work out well. I have also set the Enable Automatic Selected Shipment to "none" in the VM configuration panel which had no effect. I'm afraid to get my hands dirty and actually edit core vm files which could ruin it in future updates so I didn't try anything in that area.
I think it may be a configuration option but I'm at a loss. Any ideas?
Title: Re: select_shipment.php only being used with unregistered users
Post by: GJC Web Design on April 27, 2015, 23:52:48 PM
if you have any sort of filtering  (e.g. country) on your shipping method it won't show until an address is given.. i.e. logged in or a shipping address filled
Title: Re: select_shipment.php only being used with unregistered users
Post by: Digits on April 28, 2015, 00:02:56 AM
Ok, is there a way to change this behaviour? Are there country or filter-specific files to edit?

I have now un-published the Canada Post shipment method under Shop->Shipment methods in the VM configuration panel and there has been no change.

I now have unpublished all countries, no change, then I published canada only, no change. Still stuck :/