Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Remove Billing info and Terms of Service

Remove Billing info and Terms of Service 4 years 4 months ago #3840

  • shonnpiersol
  • shonnpiersol's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Since we use paypal, we do not need any billing info from the client. Unfortunately as designed billing info is required to proceed. All we prefer to have is sender name. We also do not use a terms of service.

Can you show me how to disable the Billing and Terms of service to be hidden and not required. I am comfortable adding code as needed. Thank you.

I am greatful for your amazing customer support.

Shonn
The administrator has disabled public write access.

Remove Billing info and Terms of Service 4 years 4 months ago #3841

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1638
  • Thank you received: 245
  • Karma: 27
Hi Shonn,

In components/com_cmgiftcard/models/forms/cart.xml you remove the fieldsets for "tos" and "billing", only keep "payment_method" fieldset to let buyer select payment gateway.

Regards,
Hung
The administrator has disabled public write access.

Remove Billing info and Terms of Service 4 years 4 months ago #3842

  • shonnpiersol
  • shonnpiersol's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Karma: 0
When billing and tos are removed it also removes the payment type option. The paypal radio button is replaced by an empty text box. I dont understand the correlation with the billing info and paypal integration, but it seems somehow connected. Ideas?
The administrator has disabled public write access.

Remove Billing info and Terms of Service 4 years 4 months ago #3843

  • shonnpiersol
  • shonnpiersol's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Ok now it does work, but its still in field input instead of chosen radio type.

Since i only use paypal, can i just hide all that and make it just say checkout?
The administrator has disabled public write access.

Remove Billing info and Terms of Service 4 years 4 months ago #3844

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1638
  • Thank you received: 245
  • Karma: 27
Hi,

If your payment method field has this line:

addfieldpath="components/com_cmgiftcard/models/fields/"

change it to this

addfieldpath="administrator/components/com_cmgiftcard/models/fields/"

To remove payment gateway section, I think the most simple solution is using CSS to hide it, if you are ok with this solution you can change the line 79 in components/com_cmgiftcard/views/cart/tmpl/default.php from
			<fieldset>

to
			<?php if ($fieldset->name != 'payment_method') : ?>
			<fieldset>
			<?php else : ?>
			<fieldset style="display: none";>
			<?php endif; ?>

Regards,
Hung
Last Edit: 4 years 4 months ago by hungtran.
The administrator has disabled public write access.

Remove Billing info and Terms of Service 4 years 4 months ago #3845

  • shonnpiersol
  • shonnpiersol's Avatar
  • Offline
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Thank you so much! Ok here is what happens. Billing fieldset breaks the default payment option and it doesnt work. So i cant delete the billing fieldset.

I did remove the "true" and change to "false" for requirement so that helps.

But now i need to css HIDE the billing since i cant delete it without it breaking the flow. Ideas?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2