Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 WordPress for Ecommerce Templates
 remove "pick up from store" on checkout
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
ECT Moderator

USA
65936 Posts

Posted - 11/03/2017 :  13:02:34  
HI Kierantravel, all enable and disable switches are in the vsadmin/includes.php you can either remove the parameter from the file or change it to FALSE;

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

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
ECT Moderator

USA
65936 Posts

Posted - 11/05/2017 :  07:36:54  
Hi check that the parameter is not listed twice in the file, You can just remove those lines from the file.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

Andy
ECT Moderator

95440 Posts

Posted - 11/05/2017 :  09:06:34  
Hi

You actually need to remove those lines rather than setting anything to FALSE

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 :  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 »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.01 seconds. Snitz Forums 2000