Author Topic: Remove Bill to in Cart  (Read 2882 times)

splite

  • Beginner
  • *
  • Posts: 8
Remove Bill to in Cart
« on: October 15, 2012, 01:40:20 am »
Hi there i have tried many topics around here on removing the Bill to Information in Cart but still cant get it away
Here is screen of what exactly i want to get removed

http://imageshack.us/f/20/examplefh.jpg

100iko

  • Beginner
  • *
  • Posts: 3
Re: Remove Bill to in Cart
« Reply #1 on: October 15, 2012, 04:26:57 am »
u can remove ship to address from: components/com_virtuemart/views/cart/tmpl/default_pricelist.php
after that, here: components/com_virtuemart/views/user/tmps/edit_address u need to delete 2 more rows
but i can`t tell u which are the rows numbers couz i don`t have them anymore

and after that in languages change "bill to" whit "ship to" and ur good to go , but i don`t know where that file is couze i translate it in my language before instaling it


Eugen S.

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 255
  • Hire me for individual customization work => info
    • Virtuemart Themes
Re: Remove Bill to in Cart
« Reply #2 on: October 17, 2012, 11:07:08 am »
Hello splite,

please open the following file:
/components/com_virtuemart/views/cart/tmpl/shopper_adresses.php

remove the code block which looks like this:

Code: [Select]
<td width="50%">

<?php  foreach($this->BTaddress['fields'] as $item){
if(!empty($item['value'])){
echo $item['title'].': '.$this->escape($item['value']).'<br/>';
}
?>


</td>



Sincerely,

Eugen Stranz
Send me a pm ;-)

splite

  • Beginner
  • *
  • Posts: 8
Re: Remove Bill to in Cart
« Reply #3 on: October 17, 2012, 20:00:46 pm »
Hi guy sorry had no time to reply, But neither methods worked for me I have tried to delete all of the coding from default_pricelist.php and try to access the cart it still works so it not the file i am looking for. And the second method is the same had give me no result. Thank you any way for the reply if you have more suggestion please advise

And by the way I run  2.0.8c Virtuemart and 2.5.6 Joomla.


Eugen S.

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 255
  • Hire me for individual customization work => info
    • Virtuemart Themes
Re: Remove Bill to in Cart
« Reply #4 on: October 17, 2012, 22:02:38 pm »
well then its the following code:

Code: [Select]
<div class="width50 floatleft">

<span><span class="vmicon vm2-billto-icon"></span>
<?php echo JText::('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-billto">
<?php

foreach ($this->cart->BTaddress['fields'] as $item) {
if (!empty($item['value'])) {
if ($item['name'] === 'agreed') {
$item['value'] = ($item['value'] === 0) ? JText::('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO') : JText::('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES');
}
?>
<!-- span class="titles"><?php echo $item['title'?></span -->
<span class="values vm2<?php echo '-' $item['name'?>"><?php echo $this->escape ($item['value']) ?></span>
<?php if ($item['name'] != 'title' and $item['name'] != 'first_name' and $item['name'] != 'middle_name' and $item['name'] != 'zip') { ?>
<br class="clear"/>
<?php
}
}
?>

<div class="clear"></div>
</div>

<a class="details" href="<?php echo JRoute::('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=BT'$this->useXHTML$this->useSSL?>">
<?php echo JText::('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_LBL'); ?>
</a>

<input type="hidden" name="billto" value="<?php echo $this->cart->lists['billTo']; ?>"/>
</div>


in:
/components/com_virtuemart/views/cart/tmpl/default_pricelist.php
Send me a pm ;-)

splite

  • Beginner
  • *
  • Posts: 8
Re: Remove Bill to in Cart
« Reply #5 on: October 18, 2012, 22:11:30 pm »
Eugen thanks for another reply, but that has not removed the bill to field in cart. I have tried many files but had no success =// If you have any more suggestions please advise

splite

  • Beginner
  • *
  • Posts: 8
Re: Remove Bill to in Cart
« Reply #6 on: October 18, 2012, 22:20:18 pm »
Alright finally i got it sorted i am using a template which was designed for Virtuemart and in actual template folder there was path like this "html\com_virtuemart\cart" where I have found default_prices.php file and removed the last recomended line which has finally worked Thanks for the reply's [[=

Eugen S.

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 255
  • Hire me for individual customization work => info
    • Virtuemart Themes
Re: Remove Bill to in Cart
« Reply #7 on: October 21, 2012, 17:00:48 pm »
Exactly - this would be my next post. A question if you use template overrides ;-)
Send me a pm ;-)

Flowcito

  • Beginner
  • *
  • Posts: 8
  • A beginner
  • Skype Name: Mrdon.flow
Re: Remove Bill to in Cart
« Reply #8 on: May 02, 2018, 19:20:04 pm »
Hello everyone I have done what yall posted but I still have the Ship to option....any help

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26809
  • Always on vacation
    • Jenkin Hill Internet
Re: Remove Bill to in Cart
« Reply #9 on: May 02, 2018, 23:34:57 pm »
Well back then the VM version was 2.0.x - very different from the current VM3.2.14
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.14.9808 on Joomla 3.8.8 PHP 7.0.30

Testing VM3.2.15.9840 on J3.8.8