Zen Cart Logo
Forums / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

Views: 629,378

Results 2,101 to 2,120 of 3,077
14 Nov 2021, 2:22 PM
#2101
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

One-Page Checkout [Support Thread]

lat9:

The opc_debug_redirection_error tool's output, when an issue is found, highlights the difference in a different color.

I have used 2 different browsers... this is the screen shot. only black and white

Attachment 19811

14 Nov 2021, 2:54 PM
#2102
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Carbonless:

I have used 2 different browsers... this is the screen shot. only black and white

Attachment 19811
My bad, but I knew there was associated styling. If you look, the order_current_total has strikeout styling associated, indicating that the value's changed from '0' to '9.50'. That indicates (to me) that the site's OPC configuration setting (Order Total: jQuery Selector) doesn't match the layout provided by your site's template.

What's that current setting and what template is in use?

14 Nov 2021, 5:05 PM
#2103
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

My bad, but I knew there was associated styling. If you look, the order_current_total has strikeout styling associated, indicating that the value's changed from '0' to '9.50'. That indicates (to me) that the site's OPC configuration setting (Order Total: jQuery Selector) doesn't match the layout provided by your site's template.

What's that current setting and what template is in use?

here is the configuration setting: #ottotal > div:first-child
Tempate is ZCA Bootstrap 3.0

14 Nov 2021, 7:23 PM
#2104
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Carbonless:

here is the configuration setting: #ottotal > div:first-child
Tempate is ZCA Bootstrap 3.0

the "Payment Methods Requiring Confirmation" was blank. That was issue.

resolved now.

16 Nov 2021, 12:39 AM
#2105
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Carbonless:

Attachment 19806This is the pop up when the SHOPPING CART link is clicked on

Trying to identify whats causing this splash screen? If its clicked thru the OPC allows the user to continue to checkout...

16 Nov 2021, 12:23 PM
#2106
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Carbonless:

Trying to identify whats causing this splash screen? If its clicked thru the OPC allows the user to continue to checkout...
I dunno, but if you view the browser's "Console Logs" (using the browser's developers' tools), you'll be told what was missing.

17 Nov 2021, 9:07 PM
#2107
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

This is the console display when the pop up shows up
Shipping method updated, error: false jquery.checkout_one.js:54:21
GEThttps://psdinnersready.com/includes/templates/template_default/images/icons/success.png[HTTP/1.1 500 Internal Server Error 84ms]

GEThttps://psdinnersready.com/includes/templates/template_default/images/icons/success.png[HTTP/1.1 500 Internal Server Error 72ms]

Missing #ottotal > div:first-child jquery.checkout_one.js:54:21

Missing #otshipping jquery.checkout_one.js:54:21

18 Nov 2021, 1:46 PM
#2108
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Carbonless:

This is the console display when the pop up shows up
Shipping method updated, error: false jquery.checkout_one.js:54:21
GEThttps://psdinnersready.com/includes/templates/template_default/images/icons/success.png[HTTP/1.1 500 Internal Server Error 84ms]

GEThttps://psdinnersready.com/includes/templates/template_default/images/icons/success.png[HTTP/1.1 500 Internal Server Error 72ms]

Missing #ottotal > div:first-child jquery.checkout_one.js:54:21

Missing #otshipping jquery.checkout_one.js:54:21
If you're running the Bootstrap template, the OPC setting for "Order Total, jQuery Selector" should be #ottotal .ot-text. That's what the first message is complaining about.

The missing #otshipping could be due (if it is the same/similar site) to using only the storepickup shipping method without making the change identified in post #77 of this support-thread.

19 Nov 2021, 2:40 PM
#2109
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

If you're running the Bootstrap template, the OPC setting for "Order Total, jQuery Selector" should be #ottotal .ot-text. That's what the first message is complaining about.

The missing #otshipping could be due (if it is the same/similar site) to using only the storepickup shipping method without making the change identified in post #77 of this support-thread.

im not sure why I’m making this more difficult than it probably is… feel like I have writers block.

I don’t recognize a connection with the otshipping from post 77. You were spot on regarding the order total!

19 Nov 2021, 3:07 PM
#2110
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Carbonless:

im not sure why I’m making this more difficult than it probably is… feel like I have writers block.

I don’t recognize a connection with the otshipping from post 77. You were spot on regarding the order total!
For the missing #otshipping, there was a previous issue (change in post 77) in the base Zen Cart shipping class whereby the cheapest selection wasn't being set if the only shipping method was storepickup.

19 Nov 2021, 11:23 PM
#2111
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

For the missing #otshipping, there was a previous issue (change in post 77) in the base Zen Cart shipping class whereby the cheapest selection wasn't being set if the only shipping method was storepickup.

This is the text from post#77: I am not tracking the relevance since the newer version automatically copies that file to the custom template. Is there an edit to that file that has to happen?

Re: One-Page Checkout [Support Thread]

	 				 				 		 			 				
Did you copy the checkout_one.css file to your template's /css folder?

If this isn't a local installation, would you send me a PM with the site's link so that I can see what's going on myself?

20 Nov 2021, 12:28 AM
#2112
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Carbonless:

This is the text from post#77: I am not tracking the relevance since the newer version automatically copies that file to the custom template. Is there an edit to that file that has to happen?
Re: One-Page Checkout [Support Thread]

                                                                              
Did you copy the checkout_one.css file to your template's /css folder?

If this isn't a local installation, would you send me a PM with the site's link so that I can see what's going on myself?

I think you meant PAGE 77 - not post 77, as Design75 had the same issue... but I havent been able to find a resolution on the conversation.

20 Nov 2021, 1:01 PM
#2113
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

[QUOTE=Carbonless;1385006]I think you meant PAGE 77 - not post 77, as Design75 had the same issue... but I havent been able to find a resolution on the conversation.[/QUOTE
This link: https://www.zen-cart.com/showthread.php?220781-One-Page-Checkout-Support-Thread&p=1384427#post1384427

... neither post 77 nor page 77.:blush:

20 Nov 2021, 5:31 PM
#2114
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

I can! It's a core-file issue; you'll need to edit /includes/classes/shipping.php's cheapest method:

function cheapest() {
if (!is_array($this->modules)) return false;
$rates = array();

  foreach($this->modules as $value) {
    $class = substr($value, 0, strrpos($value, '.'));
    if (isset($GLOBALS[$class]) && is_object($GLOBALS[$class]) && $GLOBALS[$class]->enabled) {
      $quotes = isset($GLOBALS[$class]->quotes) ? $GLOBALS[$class]->quotes : null;
      if (empty($quotes['methods'])) {
        continue;
      }
      $size = sizeof($quotes['methods']);
      for ($i=0; $i<$size; $i++) {
        if (isset($quotes['methods'][$i]['cost'])){
          $rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'],
                           'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',
                           'cost' => $quotes['methods'][$i]['cost'],
                           'module' => $quotes['id']
          );
        }
      }
    }
  }

  $cheapest = false;
  $size = sizeof($rates);
  for ($i=0; $i<$size; $i++) {
    if (is_array($cheapest)) {
      // never quote storepickup as lowest - needs to be configured in shipping module
      if ($rates[$i]['cost'] < $cheapest['cost'] and $rates[$i]['module'] != 'storepickup') {
        $cheapest = $rates[$i];
      }
    } else {
      [B]if ($rates[$i]['module'] != 'storepickup') {[/B]
        $cheapest = $rates[$i];
      }
    }
  }
  $this->notify('NOTIFY_SHIPPING_MODULE_CALCULATE_CHEAPEST', $cheapest, $cheapest, $rates);
  return $cheapest;

}

> ... and change the highlighted line to read:
> ```
          if ([B]$size === 1 || [/B]$rates[$i]['module'] != 'storepickup') {

That change enables the storepickup to be selected as the cheapest ... if it's the only shipping method available.

This change has been incorporated, but made no change to the the same error being received. it's with psdinnersready.com - I can email you login credentials and would be willing to pay the assist... I need to wrap this one up.

20 Nov 2021, 5:46 PM
#2115
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

ZC 1.5.7c
ZCAbootstrap
OPC 2.3.9

upon clicking on checkout, I recieve the same error that Designs75 mentions in post:

Design75:

Cindy,

I am trying to use OPC in combination with the new boostrap theme, but get an error popup "Please contact the store owner; some required elements of this page are missing."
Opening the console I can see

Missing #otshipping
setFormSubmitButton, payment-module: null
Showing "confirm"
Setting orderConfirmed (0), submitter (null)

> After clicking ok, I get a checkout screen, but layout is screwed


I made the change to includes/classes/shipping.php per your link above, and the same error persists...  I'm stummped.
20 Nov 2021, 6:54 PM
#2116
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

It doesnt appear to be template specific... I changed it to the responsive classic green and the classic contemporary green and still received the same message.

I've added additional payment methods and additional shipping methods... error still persists.

20 Nov 2021, 7:18 PM
#2117
carbonless avatar

carbonless

Zen Follower

Join Date:
Jan 2007
Location:
Illinois, USA
Posts:
329
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

These are the debug log files that are created when the "Checkout" button is clicked, prompting the popup:

[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant BUTTON_RETURN_TO_PROD_LIST_ALT already defined in /includes/languages/english/extra_definitions/psdinnerZCA/zca_bootstrap_common.php on line 20
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant TABLE_HEADING_PRODUCTS already defined in /includes/languages/english/extra_definitions/psdinnerZCA/zca_bootstrap_common.php on line 63

and then when "OK" is clicked on the pop up this is what is generated:

[TABLE="width: 100%"]

[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant BUTTON_RETURN_TO_PROD_LIST_ALT already defined in /includes/languages/english/extra_definitions/psdinnerZCA/zca_bootstrap_common.php on line 20
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant TABLE_HEADING_PRODUCTS already defined in /includes/languages/english/extra_definitions/psdinnerZCA/zca_bootstrap_common.php on line 63
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant NAVBAR_TITLE_1 already defined in /includes/languages/english/checkout_one_confirmation.php on line 6
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant NAVBAR_TITLE_2 already defined in /includes/languages/english/checkout_one_confirmation.php on line 7
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_TITLE already defined in /includes/languages/english/checkout_one_confirmation.php on line 9
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_BILLING_ADDRESS already defined in /includes/languages/english/checkout_one_confirmation.php on line 11
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_DELIVERY_ADDRESS already defined in /includes/languages/english/checkout_one_confirmation.php on line 12
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_SHIPPING_METHOD already defined in /includes/languages/english/checkout_one_confirmation.php on line 13
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_PAYMENT_METHOD already defined in /includes/languages/english/checkout_one_confirmation.php on line 14
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_PRODUCTS already defined in /includes/languages/english/checkout_one_confirmation.php on line 15
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_TAX already defined in /includes/languages/english/checkout_one_confirmation.php on line 16
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant HEADING_ORDER_COMMENTS already defined in /includes/languages/english/checkout_one_confirmation.php on line 17
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant NO_COMMENTS_TEXT already defined in /includes/languages/english/checkout_one_confirmation.php on line 19
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant ERROR_PLEASE_RESELECT_SHIPPING_METHOD already defined in /includes/languages/english/checkout_one_confirmation.php on line 26
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant MODULE_ORDER_TOTAL_COUPON_HEADER already defined in /includes/languages/english/modules/order_total/psdinnerZCA/ot_coupon.php on line 14
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant SHIPPING_NOT_INCLUDED already defined in /includes/languages/english/modules/order_total/psdinnerZCA/ot_gv.php on line 13
[20-Nov-2021 19:15:31 UTC] PHP Notice: Constant TAX_NOT_INCLUDED already defined in /includes/languages/english/modules/order_total/psdinnerZCA/ot_gv.php on line 14

[/TD]
[/TR]
[TR]
[TD]

[/TD]
[/TR]
[/TABLE]

21 Nov 2021, 6:10 PM
#2118
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Fuzztrip.com
157c

I would like to move New Customers to the top of Account Benefits

Attachment 19832

I would then like to switch the middle and right columns.

I can't seem to find where to make this happen. Thanks!

21 Nov 2021, 6:51 PM
#2119
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Fuzztrip:

Fuzztrip.com
157c

I would like to move New Customers to the top of Account Benefits

Attachment 19832

I would then like to switch the middle and right columns.

I can't seem to find where to make this happen. Thanks!
See your site's admin's Configuration :: One-Page Checkout Settings :: Login-Page Layout. That setting controls the layout of those elements on the login page.

21 Nov 2021, 7:45 PM
#2120
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

See your site's admin's Configuration :: One-Page Checkout Settings :: Login-Page Layout. That setting controls the layout of those elements on the login page.

I didn't even consider that it would be under OPC settings. I was trying to do it the hard way :mellow:

Thank you!