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

One-Page Checkout [Support Thread]

Views: 629,413

Results 961 to 980 of 3,078
9 Oct 2018, 5:47 AM
#961
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

One-Page Checkout [Support Thread]

1.5.5f PHP7.1 cliponearrings.net.au

Hi - I am getting the following myDEBUG error and am not sure what to do to fix it - I am not experiencing any symptoms on the site, well none that I am aware of anyway.

[09-Oct-2018 00:32:43 Australia/Melbourne] Request URI: /index.php?main_page=checkout_one, IP address: 124.168.54.51
#1  zones->quote() called at [/home/cliponearrings/public_html/includes/classes/shipping.php:171]
#2  shipping->quote() called at [/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php:200]
#3  require(/home/cliponearrings/public_html/includes/modules/pages/checkout_one/header_php.php) called at [/home/cliponearrings/public_html/index.php:36]

[09-Oct-2018 00:32:43 Australia/Melbourne] PHP Warning:  A non-numeric value encountered in /home/cliponearrings/public_html/includes/modules/shipping/zones.php on line 252

this is the line at and around #252 (in blue)

    if ($shipping == -1) {
          $shipping_cost = 0;
          $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE;
        } else {
          switch (MODULE_SHIPPING_ZONES_METHOD) {
        	  case (MODULE_SHIPPING_ZONES_METHOD == 'Weight'):
              // charge per box when done by Weight
              // Handling fee per box or order
              if (constant('MODULE_SHIPPING_ZONES_HANDLING_METHOD_' . $dest_zone) == 'Box') {
                $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone) * $shipping_num_boxes;
              } else {
                $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
              }
              break;
        	  case (MODULE_SHIPPING_ZONES_METHOD == 'Price'):
              // don't charge per box when done by Price
              $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
            break;
        	  case (MODULE_SHIPPING_ZONES_METHOD == 'Item'):
              // don't charge per box when done by Item
              $shipping_cost = ($shipping) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone);
            break;
          }

my admin/shipping settings are 'zone' and 'weight' with no handling fees.

cheers,
Mike

9 Oct 2018, 12:08 PM
#962
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Mike, that's not an issue with OPC, per se, but with the shipping module. Are each of your zone-shipping handling fees set to a numeric value, i.e. 0 and not empty?

9 Oct 2018, 2:23 PM
#963
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Mike, that's not an issue with OPC, per se, but with the shipping module. Are each of your zone-shipping handling fees set to a numeric value, i.e. 0 and not empty?

Hello Cindy - many thanks for your response, again spot on the money - one zone handling fee was in fact blank. Sorry to have troubled you.

I have seen a bit on the news about Michael - I hope it doesn't touch down near where you are.

cheers,
Mike

9 Oct 2018, 5:14 PM
#964
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

shags38:

Hello Cindy - many thanks for your response, again spot on the money - one zone handling fee was in fact blank. Sorry to have troubled you.

I have seen a bit on the news about Michael - I hope it doesn't touch down near where you are.

cheers,
Mike
No problems, Mike. That shipping module (and others, possibly) should be updated to "sanitize" those configurable inputs.

So far, Michael's going to miss South Florida but @swguy is in its path.

10 Oct 2018, 3:34 PM
#965
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

Observation. Responsive_Classic

When using the cart in iPhone 6+ mode and a currencies sidebox turned on.

After adding an item to the cart, the first trip to the shopping cart shows the currencies sidebox underneath the shopping cart thereby allowing the customer to change the currency.

After going to the OPC page, if a customer clicks on Edit in the Shopping Cart Contents Area, they are taken to the Shopping Cart with no currency sidebox option to change the currency.

Desktop and tablets work the same with the Currencies sidebox appearing under each scenario.

Working on this today in spare time.

Thoughts on the matter?

11 Oct 2018, 3:11 AM
#966
getaped avatar

getaped

New Zenner

Join Date:
Jul 2013
Posts:
9
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hello again,

I am trying to get an order total module called "Priority Order Handling" to work with your opc mod. https://www.zen-cart.com/downloads.php?do=file&id=236

It is a module that charges a rush service fee. The customer can choose this option on the normal step 2 of checkout. It is a simple checkbox with apply button. This opc module is not recognizing when the checkbox is checked to add this rush fee.

Is this something you can add to the module or point us to where we can look?

Thanks

11 Oct 2018, 9:23 PM
#967
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

getaped:

Hello again,

I am trying to get an order total module called "Priority Order Handling" to work with your opc mod. https://www.zen-cart.com/downloads.php?do=file&id=236

It is a module that charges a rush service fee. The customer can choose this option on the normal step 2 of checkout. It is a simple checkbox with apply button. This opc module is not recognizing when the checkbox is checked to add this rush fee.

Is this something you can add to the module or point us to where we can look?

Thanks
I'll get that plugin downloaded and report back with my findings.

12 Oct 2018, 2:27 PM
#968
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

lat9:

I'll get that plugin downloaded and report back with my findings.
... and I'm back.

The issue arises due to the*** Priority Order Handling*** order-total's use of a checkbox-type field to gather the customer input.

When OPC processes a credit-class selection via click of an *Apply * button, OPC's confirmation page is activated to cause any posted inputs to be recorded in the customer's session. After that recording, the OPC's main data-gathering page is re-displayed ... which causes that checkbox selection to be lost.

You can see similar behavior in the 3-page checkout process. If you tick the ***Priority Order Handling ***checkbox and navigate to the checkout-confirmation page and then return to the checkout-payment page (like if the customer decided that they wanted to include some comments in the order) ... the checkbox selection is lost.

That order-total module requires an update to be usable under current versions of PHP anyway, so I propose the following actions:

  1. Update the Priority Order Handling plugin to use a radio-button type input for its selection as well as the above update.
  2. Update the OPC's documentation to indicate that order-total modules using a checkbox-type field for their input are not compatible with OPC.
12 Oct 2018, 5:51 PM
#969
getaped avatar

getaped

New Zenner

Join Date:
Jul 2013
Posts:
9
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

... and I'm back.

The issue arises due to the*** Priority Order Handling*** order-total's use of a checkbox-type field to gather the customer input.

When OPC processes a credit-class selection via click of an *Apply * button, OPC's confirmation page is activated to cause any posted inputs to be recorded in the customer's session. After that recording, the OPC's main data-gathering page is re-displayed ... which causes that checkbox selection to be lost.

You can see similar behavior in the 3-page checkout process. If you tick the ***Priority Order Handling ***checkbox and navigate to the checkout-confirmation page and then return to the checkout-payment page (like if the customer decided that they wanted to include some comments in the order) ... the checkbox selection is lost.

That order-total module requires an update to be usable under current versions of PHP anyway, so I propose the following actions:

  1. Update the Priority Order Handling plugin to use a radio-button type input for its selection as well as the above update.
  1. Update the OPC's documentation to indicate that order-total modules using a checkbox-type field for their input are not compatible with OPC.

You make that sound so easy.

12 Oct 2018, 6:08 PM
#970
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Here's a link to the beta version of the updated Priority Handling order-total. @getaped, if you'll download that and validate that the change "works for you", I'll get that updated on the Zen Cart plugins.

12 Oct 2018, 6:44 PM
#971
getaped avatar

getaped

New Zenner

Join Date:
Jul 2013
Posts:
9
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Here's a link to the beta version of the updated Priority Handling order-total. @getaped, if you'll download that and validate that the change "works for you", I'll get that updated on the Zen Cart plugins.

Wow, that works perfectly.

These 2 defines are missing from the language file:

  define('MODULE_ORDER_TOTAL_PRIORITY_HANDLING_NO', 'No');
  define('MODULE_ORDER_TOTAL_PRIORITY_HANDLING_YES', 'Yes');
12 Oct 2018, 7:14 PM
#972
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

getaped:

Wow, that works perfectly.

These 2 defines are missing from the language file:

define('MODULE_ORDER_TOTAL_PRIORITY_HANDLING_NO', 'No');
define('MODULE_ORDER_TOTAL_PRIORITY_HANDLING_YES', 'Yes');

Thanks for the feedback; that change from radio-button to dropdown was made "in flight" and I forgot to upload the updated language file.  I'll get that updated.
12 Oct 2018, 7:49 PM
#974
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

@lat9

Did you see this post above?

Observation. Responsive_Classic

When using the cart in iPhone 6+ mode and a currencies sidebox turned on.

After adding an item to the cart, the first trip to the shopping cart shows the currencies sidebox underneath the shopping cart thereby allowing the customer to change the currency.

After going to the OPC page, if a customer clicks on Edit in the Shopping Cart Contents Area, they are taken to the Shopping Cart with no currency sidebox option to change the currency.

Desktop and tablets work the same with the Currencies sidebox appearing under each scenario.

Working on this today in spare time.

Thoughts on the matter?

12 Oct 2018, 10:13 PM
#975
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I did ... and I was waiting for additional information.

13 Oct 2018, 12:37 AM
#976
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Lol !!!!
Tell John to wake up and get with it.
:)

13 Oct 2018, 1:23 AM
#977
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

Sorry, still dealing with crashing computer.

I believe this is not a OPC problem. I have found evidence elsewhere (other complaints of missing currency sidebox) that this may be a problem with the mobile template. Got me running in circles chasing my tail. Had the thread up and computer dumped again.:frusty:

13 Oct 2018, 1:21 PM
#978
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

dbltoe:

Sorry, still dealing with crashing computer.

I believe this is not a OPC problem. I have found evidence elsewhere (other complaints of missing currency sidebox) that this may be a problem with the mobile template. Got me running in circles chasing my tail. Had the thread up and computer dumped again.:frusty:
Sorry about your computer, @dbltoe. I would tend to agree with you, since using a fairly "virgin" Zen Cart 155f/Responsive Classic/OPC 2.0.4 setup with the currency sidebox enabled on the right side, I can't find that sidebox display ... anywhere!

13 Oct 2018, 11:49 PM
#979
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,765
Plugin Contributions:
9

Re: One-Page Checkout [Support Thread]

Yep, It's there on desktop and tablet landscape displays. No Problem.

In mobile and tablet portrait, it does't want to show up much at all.

The sidebox has to be set for ON in Single Column Status and, even then, only appears after an addition to the shopping cart.

15 Oct 2018, 10:39 PM
#980
linuxguy2 avatar

linuxguy2

Zen Follower

Join Date:
Sep 2013
Location:
Texas
Posts:
315
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

ZC 1.55.5f Responsive_classic
Apache Version 2.4.34
PHP Version 7.0
MySQL Version 10.2.18-MariaDB
Plugins:
ColumnGridLayout_for_155f
CheckBoxTextBoxIconV1.0.3
one_page_checkout-2.0.0

OPC debug setting at "True OR Full"
I'm trying too understand why these entries are showing up in the Debug Log files.
When I "Confirm" the order these entries show up in the "Logs"
Otherwise no PHP errors and works OK,
There are other similar entries from other configurations but I thought this would be a start.
Any guidance would be appreciated.

Thanks,

2018-10-15 17:01:04 checkout_one_observer: checkout_one redirect: array ( 'main_page' => 'checkout_shipping',)

2018-10-15 17:01:04 checkout_one: CHECKOUT_ONE_ENTRY, version (2.0.4 (2018-07-15)), Zen Cart version (1.5.5f), template (responsive_classic)

2018-10-15 17:01:04 OnePageCheckout: startGuestOnePageCheckout, exit: sendto: not set, billto: not setOnePageCheckout::__set_state(array(
'isGuestCheckoutEnabled' => false
'registeredAccounts' => false
'guestIsActive' => false
'isEnabled' => true
'tempAddressValues' =>
array (
'ship' =>
array (
'gender' => ''
'company' => ''
'firstname' => ''
'lastname' => ''
'street_address' => ''
'suburb' => ''
'city' => ''
'postcode' => ''
'state' => ''
'country' => 223
'zone_id' => 57
'zone_name' => 'Texas'
'address_book_id' => 0
'selected_country' => 223
'country_has_zones' => true
'state_field_label' => ''
'show_pulldown_states' => true
'error' => false
'error_state_input' => false
'validated' => false
)
'bill' =>
array (
'gender' => ''
'company' => ''
'firstname' => ''
'lastname' => ''
'street_address' => ''
'suburb' => ''
'city' => ''
'postcode' => ''
'state' => ''
'country' => 223
'zone_id' => 57
'zone_name' => 'Texas'
'address_book_id' => 0
'selected_country' => 223
'country_has_zones' => true
'state_field_label' => ''
'show_pulldown_states' => true
'error' => false
'error_state_input' => false
'validated' => false
)
)
'guestCustomerInfo' => NULL
'guestCustomerId' => 2
'tempBilltoAddressBookId' => 3
'tempSendtoAddressBookId' => 4
'dbStringType' => 'stringIgnoreNull'
'customerInfoOk' => NULL
'billtoTempAddrOk' => NULL
'sendtoTempAddrOk' => NULL
'isVirtualOrder' => NULL
'billtoAddressChangeable' => NULL
'shiptoAddressChangeable' => NULL
))