VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stargazer1682 on December 05, 2015, 07:24:28 AM

Title: Turn off shipment method in shopping cart
Post by: stargazer1682 on December 05, 2015, 07:24:28 AM
I'm working on a VM 3 upgrade, and I worked out a work around, to provide flat rate, per product shipping using a Tax rule; and changing the Tax column name to S&H in the shopping cart.  So now I need to remove the line(s) in the shopping cart related to the original shipment method - just take it out of the checkout process entire and basically "turn it off".  What's the best way to do that?  It's looking like it's probably a hack in some code, but I'm not sure where.  All I can find in a similar vein is past versions of VM.
Title: Re: Turn off shipment method in shopping cart
Post by: GJC Web Design on December 05, 2015, 11:45:25 AM
the std. way is 0 shopping method and hide in the cart with css etc
Title: Re: Turn off shipment method in shopping cart
Post by: stargazer1682 on December 05, 2015, 15:29:10 PM
When I created a $0 shipping method, it still appeared to need to be selected in the checkout; however I didn't test the next step, to see if clicking checkout would select it automatically.
Title: Re: Turn off shipment method in shopping cart
Post by: GJC Web Design on December 05, 2015, 15:34:28 PM
which is what "Enable Automatic Selected Shipment" is for!
Title: Re: Turn off shipment method in shopping cart
Post by: stargazer1682 on December 06, 2015, 07:22:53 AM
Can anyone help me identify which CSS file and line to alter??  I have spent hours trying different files related to shipping and style the cart; and nothing seems to have any effect.  The closest I've come is the font color settings, and that controls more than just the font for the Selected Shipment/no shipping text.  I have tried Firebug, I have tried Chrome's element inspection tool and probably searched through each file related to the checkout and shipping twice at this point.  The class it's in, is the same class as the payment info, which I don't want to get rid of, but even then; when I've tried making any changes there, I get nothing.

Joomla 3.4.5, VirtueMart 3.0.12,  PHP 5.3.24

This is the page it appears on: http://simuride.com/jupgrade/component/virtuemart/cart?Itemid=0
Title: Re: Turn off shipment method in shopping cart
Post by: GJC Web Design on December 06, 2015, 12:25:55 PM
just make an over ride for components\com_virtuemart\views\cart\tmpl\default_pricelist.php

and add an id to the tr

<tr class="sectiontableentry1" style="vertical-align:top;" id="shipping_row">

#shipping_row{
display:none;
}
Title: Re: Turn off shipment method in shopping cart
Post by: stargazer1682 on December 06, 2015, 19:26:17 PM
I couldn't get that to work, however that file did have the code I was looking for; so thank you.