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

One-Page Checkout [Support Thread]

Views: 629,297

Results 2,121 to 2,140 of 3,075
24 Nov 2021, 9:49 PM
#2121
carbonless avatar

carbonless

Zen Follower

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

One-Page Checkout [Support Thread]

Carbonless:

ZC 1.5.7c
ZCAbootstrap
OPC 2.3.9

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

I made the change to includes/classes/shipping.php per your link above, and the same error persists... I'm stummped.

Thanks to the AMAZING insight of Lat9... the issue was resolved by turning on otshipping in the admin>modules>order total>Shipping

It was off as the only "Shipping" method is Store Pickup. Once turned on, issue resolved!

THANK YOU LAT9!

29 Nov 2021, 3:54 PM
#2122
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

@lat9
Hi Cindy,

Problem:
Customer checks out w/o making an account.
When customer wishes to submit a product review then customer needs an account after all. :(
Would it be possible to let the customer to enter her/his email address + one or more of the obligatory fields entered at checkout or perhaps the order number?
Or are there other solutions perhaps?

Just removing the code that prevents submitting reviews w/o account seems a bad idea to me...:smile:

Thanks,

jpda

29 Nov 2021, 4:00 PM
#2123
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

jpda:

@lat9
Hi Cindy,

Problem:
Customer checks out w/o making an account.
When customer wishes to submit a product review then customer needs an account after all. :(
Would it be possible to let the customer to enter her/his email address + one or more of the obligatory fields entered at checkout or perhaps the order number?
Or are there other solutions perhaps?

Just removing the code that prevents submitting reviews w/o account seems a bad idea to me...:smile:

Thanks,

jpda
The Reviews Updated (https://www.zen-cart.com/downloads.php?do=file&id=1442) plugin enables a store to have guests write reviews.

29 Nov 2021, 4:12 PM
#2124
jpda avatar

jpda

Zen Follower

Join Date:
Jun 2014
Posts:
157
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

The Reviews Updated (https://www.zen-cart.com/downloads.php?do=file&id=1442) plugin enables a store to have guests write reviews.

Thanks for your very quick response! :)
I will try it, seems a very reliable autor :smile:

jpda

19 Dec 2021, 10:01 PM
#2125
carbonless avatar

carbonless

Zen Follower

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

Re: One-Page Checkout [Support Thread]

Adding the OPC to my main site... using OPC 2.3.9 , with ZCA Bootstrap 3.2 and bs4OPC 1.02

When entering the OPC on the site, it isn't allowing the credit card fields to be displayed... using Square Payments Module 1.5
Attachment 19858

20 Dec 2021, 1:06 PM
#2126
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Carbonless:

Adding the OPC to my main site... using OPC 2.3.9 , with ZCA Bootstrap 3.2 and bs4OPC 1.02

When entering the OPC on the site, it isn't allowing the credit card fields to be displayed... using Square Payments Module 1.5
Attachment 19858

Did you copy the Square Payments module's jscript_*.js/php file to the checkout_one directory?

20 Dec 2021, 8:58 PM
#2127
carbonless avatar

carbonless

Zen Follower

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

Re: One-Page Checkout [Support Thread]

lat9:

Did you copy the Square Payments module's jscript_*.js/php file to the checkout_one directory?

no I hadn't. I copied it to the checkout_one directory in the same folder... I now can enter the cc fields, however, I'm still getting this warning once I click on shopping cart:
Attachment 19859

20 Dec 2021, 9:03 PM
#2128
carbonless avatar

carbonless

Zen Follower

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

Re: One-Page Checkout [Support Thread]

Carbonless:

no I hadn't. I copied it to the checkout_one directory in the same folder... I now can enter the cc fields, however, I'm still getting this warning once I click on shopping cart:

here is my setup
Attachment 19860

21 Dec 2021, 1:17 PM
#2129
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

Carbonless:

no I hadn't. I copied it to the checkout_one directory in the same folder... I now can enter the cc fields, however, I'm still getting this warning once I click on shopping cart:
Attachment 19859
If you enable your browser's "Developer Tools" (F12 for Windows-based browsers) and then click the Console tab, there will be messages issued by the OPC's jQuery that identify what elements are missing.

21 Dec 2021, 6:47 PM
#2130
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 enable your browser's "Developer Tools" (F12 for Windows-based browsers) and then click the Console tab, there will be messages issued by the OPC's jQuery that identify what elements are missing.

ahhh.. I changed #ottotal> div:first-child to #ottotal > , removing the div tag... that removed the error

22 Dec 2021, 8:12 AM
#2131
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

Sorry, after months of not having time to look into this, yet wishing I had OPC, I've finally got round to looking into it again.

BillJ:

I've come up against another issue with OPC. Whenever I try to confirm an order, I end up back on the checkout page with the message:
"Your order's details have changed. Please review the current values and re-submit."
This is Zen Cart 1.57c with OPC 2.3.9 and using the Responsive Classic template.

Running the opc_debug_redirection_error tool over the log highlights a single, very significant difference:

2021-12-22 00:07:00: Found a redirection back to <code>checkout_one</code>, difference follows.<br><br>  'securityToken' => '00c23d84c0826846b46f1c1500e43b00',
  'customers_host_address' => 'xxxxx',
  'opc' => 
  OnePageCheckout::__set_state(array(
     'isGuestCheckoutEnabled' => true,
     'registeredAccounts' => false,
     'guestIsActive' => true,
     'isEnabled' => true,
     'tempAddressValues' => 
    array (
      'ship' => 
      array (
        'which' => 'bill',
        'company' => 'Saabits Ltd',
        'firstname' => 'Bill',
        'lastname' => 'Jones',
        'street_address' => 'Unit 9, Dainton Manor Estate',
        'suburb' => 'Dainton',
        'city' => 'Newton Abbot',
        'state' => 'Devon',
        'zone_id' => '',
        'postcode' => 'TQ12 5TZ',
        'zone_country_id' => '222',
        'gender' => false,
        'country' => '222',
        'zone_name' => '',
        'error_state_input' => false,
        'country_has_zones' => false,
        'show_pulldown_states' => true,
        'error' => false,
        'validated' => true,
        'selected_country' => '222',
        'state_field_label' => '',
      ),
      'bill' => 
      array (
        'which' => 'bill',
        'company' => 'Saabits Ltd',
        'firstname' => 'Bill',
        'lastname' => 'Jones',
        'street_address' => 'Unit 9, Dainton Manor Estate',
        'suburb' => 'Dainton',
        'city' => 'Newton Abbot',
        'state' => 'Devon',
        'zone_id' => '',
        'postcode' => 'TQ12 5TZ',
        'zone_country_id' => '222',
        'gender' => false,
        'country' => '222',
        'zone_name' => '',
        'error_state_input' => false,
        'country_has_zones' => false,
        'show_pulldown_states' => true,
        'error' => false,
        'validated' => true,
        'selected_country' => '222',
        'state_field_label' => '',
      ),
    ),
     'guestCustomerInfo' => 
    array (
      'firstname' => 'Bill',
      'lastname' => 'Jones',
      'email_address' => '[email protected]',
      'telephone' => '01392 581185',
      'dob' => '',
    ),
     'guestCustomerId' => 9403,
     'tempBilltoAddressBookId' => 11434,
     'tempSendtoAddressBookId' => 11435,
     'dbStringType' => 'stringIgnoreNull',
     'paypalAddressOverride' => NULL,
     'paypalTotalValue' => NULL,
     'paypalTotalValueChanged' => NULL,
     'paypalNoShipping' => NULL,
     'customerInfoOk' => true,
     'billtoTempAddrOk' => true,
     'sendtoTempAddrOk' => true,
     'isVirtualOrder' => false,
     'billtoAddressChangeable' => true,
     'sendtoAddressChangeable' => true,
     'observerAliases' => 
    array (
      'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
    ),
     'label_params' => ' class="inputLabel"',
  )),
  'cartID' => '62612',
  'cart' => 
  shoppingCart::__set_state(array(
     'contents' => 
    array (
      377 => 
      array (
        'qty' => 1.0,
      ),
    ),
     'total' => 78.43000000000000682121026329696178436279296875,
     'weight' => 2.5,
     'cartID' => '62612',
     'content_type' => 'physical',
     'free_shipping_item' => 0,
     'free_shipping_weight' => 0,
     'free_shipping_price' => 0.0,
     'download_count' => 0,
     'total_before_discounts' => 65.3599999999999994315658113919198513031005859375,
     'display_debug_messages' => false,
     'flag_duplicate_msgs_set' => false,
     'flag_duplicate_quantity_msgs_set' => 
    array (
    ),
     'observerAliases' => 
    array (
      'NOTIFIY_ORDER_CART_SUBTOTAL_CALCULATE' => 'NOTIFY_ORDER_CART_SUBTOTAL_CALCULATE',
    ),
  )),
  'language' => 'english',
  'languages_id' => '1',
  'languages_code' => 'en',
  'check_valid_prod' => true,
  'layoutType' => 'legacy',
  'currency' => 'GBP',
  'today_is' => '2021-12-22',
  'updateExpirations' => true,
  'antispam_fieldname' => 'AhD5oDXadE',
  'tass' => 
  taxamo_assure::__set_state(array(
     'token' => 'seller_token_uvHTz3pPyqBsdv38I4lNiZUfKHudCCoaD4YU3d95b6U',
     'url' => 'https://seller-transaction-api.marketplace.taxamo.com',
     'transaction' => NULL,
     'transaction_key' => NULL,
     'stored' => false,
     'ioss' => NULL,
     'enabled' => false,
     'error' => NULL,
     'tass_debug' => false,
  )),
  'session_counter' => true,
  'customers_ip_address' => 'xx.xx.xx.xx',
  'inc_ex_tax' => true,
  'new_products_id_in_cart' => '377',
  'valid_to_checkout' => true,
  'cart_errors' => '',
  'cart_country_id' => '222',
  'country_info' => 
  array (
    'countries_name' => 'United Kingdom',
    'countries_iso_code_2' => 'GB',
    'countries_iso_code_3' => 'GBR',
  ),
  'shipping_weight' => 2.5099999999999997868371792719699442386627197265625,
  'is_guest_checkout' => true,
  'customer_id' => 9403,
  'customer_default_address_id' => 11434,
  'customer_country_id' => '222',
  'customer_zone_id' => '',
  'customers_authorization' => '0',
  'billto' => 11434,
  'sendto' => 11434,
  'customer_first_name' => 'xxxxx',
  'customer_last_name' => 'xxxxx',
  'shipping' => 
  array (
    'id' => 'rmbusinessuk_rm48',
    'title' => 'Royal Mail (2nd Class Tracked (Delivered normally within 2-5 working days of despatch))',
    'cost' => 4.9199999999999999289457264239899814128875732421875,
  ),
  'shipping_tax_amount' => 0.9839999999999997637445403597666881978511810302734375,
  'shipping_tax_description' => 'VAT 20%',
  'order_current_total' => <del>'0',
)
</del> <ins>'£84.34',
)
</ins> <hr><br><br>Report completed.

At some point, order_current_total is seen as 0, which clearly isn't the correct value. I'm not sure where to start looking, to be honest.

Everything else appears fine while going through checkout and it all adds up correctly. If I comment out the check on line 277 of includes/modules/pages/checkout_one_confirmation/header_php.php, then the sale completes successfully and the correct amount is charged.

22 Dec 2021, 2:01 PM
#2132
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

@BillJ, that would imply that OPC can't "find" the order-total value for validation. What template is in use and what's the configured value for the OPC's Order Total, jQuery Selector?

22 Dec 2021, 4:27 PM
#2133
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

@BillJ, that would imply that OPC can't "find" the order-total value for validation. What template is in use and what's the configured value for the OPC's Order Total, jQuery Selector?
Thanks. The template is a clone of Responsive Classic with only stylesheet changes and necessary changes for various plug-ins.
The Order Total, jQuery Selector value is:
#ottotal > div:first-child

22 Dec 2021, 5:15 PM
#2134
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

This is where #ottotal appears in the HTML source:

<div id="otshipping">
    <div class="vatBox larger forward"></div>
    <div class="totalBox larger forward">£4.92</div>
    <div class="lineTitle larger forward">Royal Mail (2nd Class Tracked (Delivered normally within 2-5 working days of despatch)):</div>
</div>
<br class="clearBoth" />
<div id="ottax">
    <div class="vatBox larger forward"></div>
    <div class="totalBox larger forward">£10.98</div>
    <div class="lineTitle larger forward">VAT 20%:</div>
</div>
<br class="clearBoth" />
<div id="ottotal">
    <div class="vatBox larger forward"></div>
    <div class="totalBox larger forward">£65.89</div>
    <div class="lineTitle larger forward">Total:</div>
</div>
22 Dec 2021, 6:49 PM
#2135
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

BillJ:

This is where #ottotal appears in the HTML source:

<div id="otshipping"> <div class="vatBox larger forward"></div> <div class="totalBox larger forward">£4.92</div> <div class="lineTitle larger forward">Royal Mail (2nd Class Tracked (Delivered normally within 2-5 working days of despatch)):</div> </div> <br class="clearBoth" /> <div id="ottax"> <div class="vatBox larger forward"></div> <div class="totalBox larger forward">£10.98</div> <div class="lineTitle larger forward">VAT 20%:</div> </div> <br class="clearBoth" /> <div id="ottotal"> <div class="vatBox larger forward"></div> <div class="totalBox larger forward">£65.89</div> <div class="lineTitle larger forward">Total:</div> </div> ``` That would be the issue, since the vatBox div is the first-child. Try changing that configuration setting to **#ottotal .totalBox**.
23 Dec 2021, 12:21 AM
#2136
billj avatar

billj

New Zenner

Join Date:
Sep 2013
Location:
Devon, UK
Posts:
88
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

lat9:

That would be the issue, since the vatBox div is the first-child. Try changing that configuration setting to #ottotal .totalBox.
Thank you so much :)
Setting Order Total, jQuery Selector to #ottotal .totalBox has fixed the problem.

2 Feb 2022, 5:04 PM
#2137
dbltoe avatar

dbltoe

Totally Zenned

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

Re: One-Page Checkout [Support Thread]

may have been in error

9 Feb 2022, 2:14 PM
#2138
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.3.10 of One-Page Checkout (OPC) for the Zen Cart moderators' review and will post back here when it's available for download.

This release contains changes associated with the following GitHub issues:

#298: Removing duplicate definition from ot_coupon language override.
#302: Correct "Add to Address Book" label, incorrect for=.
#303: Include zc157-added definitions to ot_coupon language override.
#306: Load OPC observer earlier, so it responses to all calls to zen_in_guest_checkout.

Note: This will be the last release supporting Zen Cart versions prior to zc157 (fully patched).

10 Feb 2022, 12:09 PM
#2139
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've just submitted v2.3.10 of One-Page Checkout (OPC) for the Zen Cart moderators' review and will post back here when it's available for download.

This release contains changes associated with the following GitHub issues:

#298: Removing duplicate definition from ot_coupon language override.
#302: Correct "Add to Address Book" label, incorrect for=.
#303: Include zc157-added definitions to ot_coupon language override.
#306: Load OPC observer earlier, so it responses to all calls to zen_in_guest_checkout.

Note: This will be the last release supporting Zen Cart versions prior to zc157 (fully patched).
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095

13 Feb 2022, 12:51 PM
#2140
lat9 avatar

lat9

Administrator

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

Re: One-Page Checkout [Support Thread]

I've just submitted v2.3.11 of One-Page Checkout for the Zen Cart moderators' review. This version corrects a PHP Fatal error introduced in v2.3.10 ... as identified in GitHub issue #308.

I'll post back here when it's available for download.