Hi,
One of our customer has risen this issue:
In the checkout, with an unregistered customer, we need to force as first step to put his shipping details, because if not he has difficulties to select shipping service, and tends to leave cart without complete. Infact as a default option it tends to give the more expensive international, because he doesn't know which nation. Do you have an idea about how to fix this confusion?
Yes, we are aware of the "shipping cost" confusion in the Virtuemart.
Unfortunately this is how Virtuemart was developed at the first place. Buyers should provide an address before clicking the "select shipment" button. But %30-%40 of the potential buyers click directly to "shipping" method button to see the shipping costs without telling to system where they are located and where they want the goods to be shipped. This doesn't make any sense, but some people do that. So it would be better to hide the "select shipment" button until the user provide a shipping address (country and state) OR tell them something like
"Provide shipping address first to see the shipping cost"
We didn't include this patch to our VM Template, because it was the way the Virtuemart works and some people still love the way it works (mostly they don't offer different shipping rates based on the destination)
But here is patch to stop this confusion:
Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/cart/default_pricelist.php
In the 510th line, include these lines:
<?php
@$checkIfEmpty == "none";
foreach($this->cart->BTaddress['fields'] as $item){
@$checkIfEmpty .= $this->escape($item['value']);
}
if ($checkIfEmpty == "") { ?>
<td colspan="4" style="text-align:right;">Please provide shipping address to estimate the shipping cost.</td>
<? } else { ?>
(you can rewrite/translate the "Please provide shipping address to estimate the shipping cost." to whatever you want in above lines. You can style it with <span>, <div> TAGs or include an image next to it. It is an ordinary HTML line.
Now Look at the 543th line (it will be 543th after you added the above lines to 510th)
and add this
to close the If...END condition.
That's it.
To make sure you are copy-pasting them to correct locations, See the screenshots below:
Attachment Pasted_Image_2_6_13_7_40_AM-2.gif not found
Attachment Pasted_Image_2_6_13_7_41_AM-2.gif not found
Then the result in the shopping cart will be:
Attachment Pasted_Image_2_6_13_7_46_AM-2.gif not found
Attachment Pasted_Image_2_6_13_7_48_AM-2.gif not found
Forum Support.
Regards.