Author |
Topic  |
|
kierantravel
Advanced Member
United Kingdom
110 Posts Pre-sales questions only (More Details...)
|
Posted - 11/03/2017 : 12:09:42
|
remove pick up from store on checkout
I do not want this option available. How can I disable it please
|
|
Sinbad
Administrator
65857 Posts |
|
kierantravel
Advanced Member
United Kingdom
110 Posts Pre-sales questions only (More Details...)
|
Posted - 11/04/2017 : 17:01:07
|
I did look but this is all I found in the includes file $GLOBALS['willpickuptext']="Pick up from store"; $GLOBALS['willpickupcost']=0.00; $GLOBALS['willpickupnohandling']=TRUE;
Setting the last one to false, does not remove pick up from store
|
 |
|
Sinbad
Administrator
65857 Posts |
|
Andy
ECT Moderator
95440 Posts |
|
kierantravel
Advanced Member
United Kingdom
110 Posts Pre-sales questions only (More Details...)
|
Posted - 11/06/2017 : 00:35:38
|
Thanks Andy, It appears its part of a larger function in the vsadmin/inc/inccart.php file. Which lines should I caomment out (Im not a php guy)
function writeshippingflags($costage){ global $willpickuptext,$willpickupcost,$willpickup_,$commercialloc,$saturdaydelivery,$addshippinginsurance,$allowsignaturerelease,$signatureoption,$insidedelivery,$ordComLoc,$redstar,$holdatlocation,$homedelivery,$tleft,$tright,$ordName,$ordPayProvider; $hasshipflag=FALSE; if($willpickup_ || @$commercialloc || @$saturdaydelivery || abs(@$addshippinginsurance)==2 || (@$allowsignaturerelease && @$signatureoption!='') || @$insidedelivery || @$holdatlocation || @$homedelivery) $hasshipflag=TRUE; if($hasshipflag) print '<div class="coshipflagscontainer">'; if(@$willpickuptext!=''){ ?> <div class="billformrow"><div class="cobhl cobhl<?php print $costage?> cdshipftflag cdformtwillpickup"><input type="checkbox" name="willpickup" value="Y" <?php if($willpickup_) print 'checked="checked" '; if($costage==3) print 'onchange="setchangeflag(this.checked,\'w\')" '?>/></div> <div class="cobll cobll<?php print $costage?> cdshipflag cdformwillpickup"><?php print $willpickuptext . (@$willpickupcost!=''?' (' .FormatEuroCurrency($willpickupcost) . ')' : '')?></div></div> <?php } if(!$willpickup_){ if(@$commercialloc==TRUE){ ?> <div class="billformrow"><div class="cobhl cobhl<?php print $costage?> cdshipftflag"><input type="checkbox" name="commercialloc" value="Y" <?php if(($ordComLoc & 1)==1 || ($ordName=='' && @$commercialloc===2)) print 'checked="checked" '; if($costage==3) print 'onchange="setchangeflag(this.checked,0)" '?>/></div> <div class="cobll cobll<?php print $costage?> cdshipflag"><?php print $GLOBALS['xxComLoc']?></div></div> <?php } |
 |
|
Andy
ECT Moderator
95440 Posts |
Posted - 11/06/2017 : 00:40:34
|
Sorry, I wasn't clear you need to remove these lines from includes.php
$GLOBALS['willpickuptext']="Pick up from store"; $GLOBALS['willpickupcost']=0.00; $GLOBALS['willpickupnohandling']=TRUE;
Andy
Please feel free to review / rate our software |
 |
|
kierantravel
Advanced Member
United Kingdom
110 Posts Pre-sales questions only (More Details...)
|
Posted - 11/06/2017 : 01:28:57
|
Thats it - thanks |
 |
|
|
Topic  |
|