News:

Looking for documentation? Take a look on our wiki

Main Menu

Turn off shipment method in shopping cart

Started by stargazer1682, December 05, 2015, 07:24:28 AM

Previous topic - Next topic

stargazer1682

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.

GJC Web Design

the std. way is 0 shopping method and hide in the cart with css etc
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

stargazer1682

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.

GJC Web Design

which is what "Enable Automatic Selected Shipment" is for!
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

stargazer1682

#4
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

GJC Web Design

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;
}
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

stargazer1682

I couldn't get that to work, however that file did have the code I was looking for; so thank you.