Forums / Templates, Stylesheets, Page Layout / Where is the PHP file for Step 2 of 3 Payment Information

Where is the PHP file for Step 2 of 3 Payment Information

Started by x_bumble on 28 Mar 2013, 5:40 PM · Views: 1,135

Results 1 to 11 of 11
28 Mar 2013, 5:40 PM
#1
x_bumble avatar

x_bumble

New Zenner

Join Date:
Apr 2008
Posts:
45
Plugin Contributions:
0

Where is the PHP file for Step 2 of 3 Payment Information

I would be very grateful if someone could please tell me where to find this php file?

Cheers! :P

Freelance Web Designer - Michael Edwards

28 Mar 2013, 5:54 PM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,779
Plugin Contributions:
2

Re: Where is the PHP file for Step 2 of 3 Payment Information

what is it that you'd like to do?

28 Mar 2013, 11:01 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Where is the PHP file for Step 2 of 3 Payment Information

Exactly. There are probably about a hundred files involved in that page.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Apr 2013, 10:05 AM
#4
x_bumble avatar

x_bumble

New Zenner

Join Date:
Apr 2008
Posts:
45
Plugin Contributions:
0

Re: Where is the PHP file for Step 2 of 3 Payment Information

Sorry for the late reply!!

I have a problem. When a use reached step 2, it asks them to confirm they agree to the terms and conditions by clicking on the checkbox.

For some reason the checkbox is putting a massive space around it's self.

The checkbox has an ID of 'conditions', yet when I try and alter it via CSS, it just ignores it. I can get all elements around the checkbox to style via the CSS, but not the checkbox - even using the !important CSS rule.

As such, I now have a small checkbox taking up a whole screen depth and width of the middle panel and I can't seem to do anything about it.

What is very strange is that if I apply a display:none to #conditions in the CSS, it does indeed hide the checkbox. But if I try to assign ANY other style to it, it just gets ignored -very weird.

I was hoping to go into the code and see if I could either move the box and thus break the style, or give it a class and see if that will then style.

Any help is very much appreciated if you know what I can do.

Cheers in advance :)

The input field has an ID of conditions.

Freelance Web Designer - Michael Edwards

29 Apr 2013, 10:46 AM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Where is the PHP file for Step 2 of 3 Payment Information

Styling questions are much easier to answer if we can see the site.

29 Apr 2013, 11:25 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Where is the PHP file for Step 2 of 3 Payment Information

Yes, providing the URL would allow us to look at the page and test CSS changes.

Also, if you really feel that you want to change the HTML, you can find the PHP files involved by doing a simple search.
The fast way to find out which specific file to edit is by using the Developers Toolkit in your Admin:
http://www.zen-cart.com/content.php?80-how-do-i-find-out-what-files-to-edit
http://www.zen-cart.com/content.php?81-how-do-i-use-the-developers-toolkit

In your case, because you said you're concerned about a CSS ID named "conditions", you could search for:
id="conditions"
and
#conditions

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Apr 2013, 12:47 PM
#7
x_bumble avatar

x_bumble

New Zenner

Join Date:
Apr 2008
Posts:
45
Plugin Contributions:
0

Re: Where is the PHP file for Step 2 of 3 Payment Information

Hi guys,

Thanks for the replies.

The URL is: https://www.whitbypandemonium.co.uk

Once you add to basket and then go through the process you will see where you have to confirm the terms and conditions, and it's there that the checkbox fills out the inner page.

The CSS rules make no difference to #conditions except for display:none; which is very odd.

Really appreciate any help.

Freelance Web Designer - Michael Edwards

29 Apr 2013, 1:54 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Where is the PHP file for Step 2 of 3 Payment Information

Here's the culprit:

#productGeneral, #centerColumn, #indexCategories, #indexProductList, #newProductsDefault, #allProductsDefault, #contactUsDefault, #ezPageDefault, #loginDefault, #shippingInfo, #privacy, #conditions, #siteMap, #gvFaqDefault, #discountcouponInfo, #unsubDefault, #advSearchDefault, #accountDefault, #accountEditDefault, #addressBookDefault, #addressBookProcessDefault, #accountPassword, #acctNewslettersDefault, #tellAFriendDefault, #reviewsWrite, #shoppingCartDefault, #reviewsDefault, #checkoutShipping, #checkoutPayment, #checkoutConfirmDefault, #checkoutSuccess, #checkoutShipAddressDefault, #logoffDefault, #accountHistInfo
{background-color:#fff; margin:0 10px; border:1px solid #cc00cc; min-height:1000px; font-family:Arial, Helvetica, sans-serif; width:545px;}

29 Apr 2013, 2:04 PM
#9
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Where is the PHP file for Step 2 of 3 Payment Information

The other culprit is going to be the width defined in the same place. You have styling for #conditions blanked out at line 889 and defined with other areas in line 386. If you were to set margin, padding, and min-height in 866 that would fix your issues.

29 Apr 2013, 3:43 PM
#10
x_bumble avatar

x_bumble

New Zenner

Join Date:
Apr 2008
Posts:
45
Plugin Contributions:
0

Re: Where is the PHP file for Step 2 of 3 Payment Information

Thanks guys - couldn't see the wood for the trees :)

Freelance Web Designer - Michael Edwards

29 Apr 2013, 8:13 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Where is the PHP file for Step 2 of 3 Payment Information

X-Bumble:

Thanks guys - couldn't see the wood for the trees :)

and the lesson learned here is that there is HARDLY EVER a reason to edit the underlying core files to make a simple appearance change..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.