{"id":27281,"date":"2013-02-01T09:22:07","date_gmt":"2013-02-01T14:22:07","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=27281"},"modified":"2013-02-01T09:22:07","modified_gmt":"2013-02-01T14:22:07","slug":"virtuemart-2-x-how-to-make-shipping-cost-display-on-checkout-2","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/virtuemart-2-x-how-to-make-shipping-cost-display-on-checkout-2.html","title":{"rendered":"VirtueMart 2.x. How to make shipping cost display on checkout"},"content":{"rendered":"<p> This tutorial will show you the way to fix the missing cost for shipping  on checkout page.<\/p>\r\n\r\n<p><strong>1.<\/strong> Check your delivery option: it may be free;<\/p>\r\n<p><strong>2.<\/strong> Open the following file on your server: <strong>&quot;components\\com_virtuemart\\views\\cart\\tmpl\\default.php&quot;<\/strong>;<\/p>\r\n<p><strong>3.<\/strong> Locate the block, that starts with the following condition:<\/p>\r\n\r\n<pre class=\"brush:php\"> \r\n&lt;?php if (!$this-&gt;cart-&gt;automaticSelectedShipment) { ?&gt;\r\n<\/pre>\r\n\r\n<p>Further you should see:<\/p>\r\n\r\n<pre class=\"brush:php\"> \r\n&lt;?php if ( !empty($this-&gt;cart-&gt;pricesUnformatted[$pkey]['shipmentTax']) )\r\n<\/pre>\r\n\r\n\r\n<p>and<\/p>\r\n\r\n<pre class=\"brush:php\"> \r\n&lt;?php if ( !empty($this-&gt;cart-&gt;pricesUnformatted[$pkey]['salesPriceShipment']) )\r\n<\/pre>\r\n\r\n<p>Change both lines to:<\/p>\r\n\r\n<pre class=\"brush:php\">  &lt;?php if ( true) <\/pre>\r\n\r\n\r\n<p>Shipping cost should now appear on the checkout page. <\/p>\r\n\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=9MicRRAasIo?width=1280&amp;height=720\" rel=\"prettyPhoto\">VirtueMart 2.x. How to make shipping cost display on checkout<\/a>","protected":false},"excerpt":{"rendered":"<p> This tutorial will show you the way to fix the missing cost for shipping  on checkout page.<\/p>\n","protected":false},"author":37,"featured_media":27285,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[733],"tags":[777,579,2404],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/27281"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=27281"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/27281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/27285"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=27281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=27281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=27281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}