Jump to content

Remove shipping and address in Checkout in Prestashop V1.4


Recommended Posts

Hi,

My company uses educational classes, similar to only downloadable products. Shipping and address are just a nuisance to my website.

I recently upgraded my prestashop to V1.4 but you can't use the same way to remove shipping and address requirements from the checkout. I really need this ASAP! Before we would remove address on Order.php, and change some more things on order-steps.tpl. With the upgrade, I can't make those changes in the same way. Please let me know if you find something that works. thank you!

Anyone do this yet, or have any clues?
Thanks.



PrestaShop™ 1.4.0.17

Link to comment
Share on other sites

If I just change this in order-opc.tpl


[removed]
{if $productNumber}
<!-- Shopping Cart -->
{include file="$tpl_dir./shopping-cart.tpl"}
<!-- Shopping Cart -->
{if $isLogged AND !$isGuest}
{include file="$tpl_dir./order-address.tpl"}
{else}
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account.tpl"}
<!-- END Create account / Guest account / Login block -->
{/if}
<!-- Carrier -->
{include file="$tpl_dir./order-carrier.tpl"}
<!-- END Carrier -->

<!-- Payment -->
{include file="$tpl_dir./order-payment.tpl"}
<!-- END Payment -->
{else}

{l s='Your shopping cart'}


{l s='Your shopping cart is empty.'}


{/if}
{/if}




Change it into this:

[removed]
{if $productNumber}
<!-- Shopping Cart -->
{include file="$tpl_dir./shopping-cart.tpl"}
<!-- Shopping Cart -->
{if $isLogged AND !$isGuest}
{include file="$tpl_dir./order-address.tpl"}
{else}
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account.tpl"}
<!-- END Create account / Guest account / Login block -->
{/if}
//<!-- Carrier -->
//{include file="$tpl_dir./order-carrier.tpl"}
//<!-- END Carrier -->

<!-- Payment -->
{include file="$tpl_dir./order-payment.tpl"}
<!-- END Payment -->
{else}

{l s='Your shopping cart'}


{l s='Your shopping cart is empty.'}


{/if}
{/if}
Link to comment
Share on other sites

hi, i too only deal in downloads so i have no need for the address bit, what you have in your second reply, is this a solution or are you asking if it is ?
seems that anywhere i have looked on prestashop there is a remarkable silence to most answers regarding downloads only requests
surely it must be doable that all the site needs is an email and password and then their account is valid

Link to comment
Share on other sites

  • 1 year later...

In order-address.tpl comment this:

 

{*

 

<p class="checkbox" {if $cart->isVirtualCart()}style="display:none;"{/if}>

<input type="checkbox" name="same" id="addressesAreEquals" value="1" onclick="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}" {if $cart->id_address_invoice == $cart->id_address_delivery || $addresses|@count == 1}checked="checked"{/if} />

<label for="addressesAreEquals">{l s='Use the same address for billing.'}</label>

</p>

 

<p id="address_invoice_form" class="select" {if $cart->id_address_invoice == $cart->id_address_delivery}style="display: none;"{/if}>

 

 

{if $addresses|@count > 1}

 

<label for="id_address_invoice" class="strong">{l s='Choose a billing address:'}</label>

<select name="id_address_invoice" id="id_address_invoice" class="address_select" onchange="updateAddressesDisplay();{if $opc}updateAddressSelection();{/if}">

{section loop=$addresses step=-1 name=address}

<option value="{$addresses[address].id_address|intval}" {if $addresses[address].id_address == $cart->id_address_invoice && $cart->id_address_delivery != $cart->id_address_invoice}selected="selected"{/if}>{$addresses[address].alias|escape:'htmlall':'UTF-8'}</option>

{/section}

</select>

{else}

<a style="margin-left: 221px;" href="{$link->getPageLink('address.php', true)}?back={$back_order_page}?step=1&select_address=1{if $back}&mod={$back}{/if}" title="{l s='Add'}" class="button_large">{l s='Add a new address'}</a>

{/if}

 

*}

 

 

 

and this:

 

 

{* <ul class="address alternate_item {if $cart->isVirtualCart()}full_width{/if}" id="address_invoice"> *}

 

 

 

 

In order-detail.tpl comment this:

 

 

{*

 

<ul class="address alternate_item {if $order->isVirtual()}full_width{/if}">

<li class="address_title">{l s='Delivery'}</li>

{foreach from=$dlv_adr_fields name=dlv_loop item=field_item}

{if $field_item eq "company" && isset($address_delivery->company)}<li class="address_company">{$address_delivery->company|escape:'htmlall':'UTF-8'}</li>

{elseif $field_item eq "address2" && $address_delivery->address2}<li class="address_address2">{$address_delivery->address2|escape:'htmlall':'UTF-8'}</li>

{elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}<li class="address_phone_mobile">{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}</li>

{else}

{assign var=address_words value=" "|explode:$field_item}

<li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item}">{$deliveryAddressFormatedValues[$word_item]|escape:'htmlall':'UTF-8'}</span>{/foreach}</li>

{/if}

{/foreach}

</ul>

 

 

}*

 

 

 

In order-opc-new-account.tpl comment:

 

 

{*

<p class="checkbox is_customer_param">

<input type="checkbox" name="invoice_address" id="invoice_address" />

<label for="invoice_address"><b>{l s='Please use another address for invoice'}</b></label>

</p>

 

 

*}

Edited by emagiero (see edit history)
  • Like 2
Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I too sell virtual products that need not to be shipped physically. I want to remove registration with address and shipping process. I am using Prestashop V1.5.2.0.

 

Can anyone help ?

 

Thanks and regards,

Frederic

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
  • 2 months later...

Hello, I'm using PS 1.4.9 and I have commented the 3 files .tpl as told by emagiero, but it still shows me the shipping options. Does anyone know why?

I'm not using the Default theme, but don't think it depends on that.

 

(I also think there are 2 little mistakes in the code posted by emagiero: a </ul> missing and a *} inverted. Am I right?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...