Page 1 of 2

Disable Log in / Shipping options / coupon code

Posted: 10 Jan 2017, 22:58
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.

Re: Disable Log in / Shipping options / coupon code

Posted: 12 Jan 2017, 01:50
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

Re: Disable Log in / Shipping options / coupon code

Posted: 12 Jan 2017, 16:27
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)

Re: Disable Log in / Shipping options / coupon code

Posted: 12 Jan 2017, 19:23
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

Re: Disable Log in / Shipping options / coupon code

Posted: 12 Jan 2017, 21:40
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.

Re: Disable Log in / Shipping options / coupon code

Posted: 17 Jan 2017, 11:50
by Jan
Hi, see image:
Image

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

Jan

Re: Disable Log in / Shipping options / coupon code

Posted: 18 Jan 2017, 13:06
by oPhilippeo
I simply didn't realise, that it would disappear, when no shipping method is available.

Thank you

Re: Disable Log in / Shipping options / coupon code

Posted: 21 Jan 2017, 00:28
by Jan
Ok

Re: Disable Log in / Shipping options / coupon code

Posted: 03 Feb 2018, 13:56
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

Re: Disable Log in / Shipping options / coupon code

Posted: 04 Feb 2018, 20:05
by Jan
Hi, confirmed, I will fix it in next version.

Jan