Disable Log in / Shipping options / coupon code

Phoca Cart - complex e-commerce extension
oPhilippeo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 Jan 2017, 22:21

Disable Log in / Shipping options / coupon code

Post by oPhilippeo »

Hey Everyone

I am new here. Some information first:

Phocacart version: 3.0.0 RC4
Joomla version: Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
PHP version: 5.6.19
Database version: 5.6.33
Template: favourite (Favthemes)
I changed the language of phoca cart to de-ch (I adapted the de-de files)

Problem:
I am setting up a wedding website. For that I need a giftlist. I decided to use phoca cart which works fine so far. My problem now is that there are some default functionalities within checkout, which I do not need for the giftlist. These functionalities are:
  1. User login (because all should use Guest Account instead)
  2. Shipping Options
  3. coupon code
I haven't found a way to disable them within the backend. When I disable shipping options within the code I can not continue the checkout process, as the checkout only opens the next section when the previous one was saved.
Last edited by oPhilippeo on 18 Jan 2017, 13:06, edited 1 time in total.

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable Log in / Shipping options / coupon code

Post by Jan »

Hi, the coupon code and user login you can disable for now in override - which means, in your template you can override the component output and just comment the code.

e.g.:
components\com_phocacart\views\checkout\tmpl\default_payment.php

can be overriden by template in:
templates\...\html\layouts\com_phocacart\default_payment.php

I have added it into feature request list - to hide e.g. the coupon code.

When you unpublish all shipping methods, the checkout then works without shipping:

Image

Jan
If you find Phoca extensions useful, please support the project
oPhilippeo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 Jan 2017, 22:21

Re: Disable Log in / Shipping options / coupon code

Post by oPhilippeo »

Thank you for your answer. I used the file
default_payment.php
to get rid off the coupon code.

I used
default_login.php
for the user login.

But I still don't know how to disable the shipping options.


If I open default_shipping.php and change the following:
if ($this->a->shippingnotused == 1) {
to
if ($this->a->shippingnotused == 0) {

shipping is disabled. But then I cannot continue to payment options. (As described in my first post)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable Log in / Shipping options / coupon code

Post by Jan »

Hi, this is something I don't understand? If I disable Shipping method in administration, then no shipping is required (this is purposely e.g. because of selling digital goods), even it is not displayed (like on the screenshot). Then you can just finish your order.

When you disable the shipping, did you then e.g. clean the cache (if enabled) and clean the the browser history, etc. :idea:

Is your site somewhere online to see it?

Jan
If you find Phoca extensions useful, please support the project
oPhilippeo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 Jan 2017, 22:21

Re: Disable Log in / Shipping options / coupon code

Post by oPhilippeo »

Are you serious? I haven't found an option to disable the shipping options in the backend.

Link to the website:
phi*linne.ch
(without the *)
Please do not publish it somewhere else.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable Log in / Shipping options / coupon code

Post by Jan »

Hi, see image:
Image

If there is no active shipping method, then such is not displayed and not checked.

Jan
If you find Phoca extensions useful, please support the project
oPhilippeo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 Jan 2017, 22:21

Re: Disable Log in / Shipping options / coupon code

Post by oPhilippeo »

I simply didn't realise, that it would disappear, when no shipping method is available.

Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable Log in / Shipping options / coupon code

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
play4today
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jan 2018, 16:58

Re: Disable Log in / Shipping options / coupon code

Post by play4today »

Jan wrote: 12 Jan 2017, 19:23 If I disable Shipping method in administration, then no shipping is required (this is purposely e.g. because of selling digital goods), even it is not displayed (like on the screenshot). Then you can just finish your order.

When you disable the shipping, did you then e.g. clean the cache (if enabled) and clean the the browser history, etc. :idea:
I was also looking for the same solution... I applied your solution unpublishing shipping method from backend, but it does not work for me: the checkout confirmation button does not appear at the end of filling form.

I have also perform a fresh new Joomla and PhocaCart installations to test it, but nothing.

What else should I check ?

My system:
Phocacart version: 3.0.3
Joomla version 3.8.3.1 Stable (Cache: File (default), NO URL SEF)
PHP version: 5.6.7
Database version: 5.5.42
Template: Phocacart Cart
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable Log in / Shipping options / coupon code

Post by Jan »

Hi, confirmed, I will fix it in next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply