Page 1 of 2 12 LastLast
Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by linuxguy2 View Post
    Excellent!!! Works after a slight mod. Removed the / after the circumflex and added + before the $ sign to repeat characters.
    What was the purpose of the /
    Also tweaked the "ENTRY_COMPANY_ERROR" Define.
    Thank You for Your Time and Expertise!

    Code:
    if (ACCOUNT_COMPANY == 'true') {
        if (((int)ENTRY_COMPANY_MIN_LENGTH > 0 && strlen($company) < ENTRY_COMPANY_MIN_LENGTH) || !preg_match('/^[A-Za-z0-9]+$/', $company)) {
          $error = true;
          $messageStack->add('create_account', ENTRY_COMPANY_ERROR);
        }
    }
    That extra / was a copy/paste boo-boo. You might want to add a space to the list of characters that can be repeated, though.

  2. #2

    Default Re: One-Page Checkout [Support Thread]

    Hello, again I want to add litle more styling to the checkout_one page but I can't find how to edit the "size value"

    <input type="text" name="firstname[bill]" value="ico" size="33" maxlength="32" id="firstname-bill" placeholder="*" required="">

    Any hint will be good.
    Thank you.
    My most recent work: magprom.net

  3. #3

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by perfumbg View Post
    Hello, again I want to add litle more styling to the checkout_one page but I can't find how to edit the "size value"

    <input type="text" name="firstname[bill]" value="ico" size="33" maxlength="32" id="firstname-bill" placeholder="*" required="">

    Any hint will be good.
    Thank you.
    No need for help I just found it, if somebody needs the same thing here is what you should do:

    In includes/clases/OnePageCheckout.php around line 1204 (in my case)

    You can simply remove $field_len

    from here zen_draw_input_field($field_name, $field_value, "$field_len id=\"$field_id\" placeholder=\"$placeholder\" $field_required") . PHP_EOL .

    This removes the whole size thing from any input fields, now you can make them responsive with css.
    My most recent work: magprom.net

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by perfumbg View Post
    No need for help I just found it, if somebody needs the same thing here is what you should do:

    In includes/clases/OnePageCheckout.php around line 1204 (in my case)

    You can simply remove $field_len

    from here zen_draw_input_field($field_name, $field_value, "$field_len id=\"$field_id\" placeholder=\"$placeholder\" $field_required") . PHP_EOL .

    This removes the whole size thing from any input fields, now you can make them responsive with css.
    Just be sure to add sufficient comments to identify your changes, as the OnePageCheckout.php class is the "heart" of the OPC's processing and could easily be changed on a subsequent update.

  5. #5

    Default Re: One-Page Checkout [Support Thread]

    Has anyone had any luck using z_stripe (Zucando Z Stripe Payment Gateway) with One-Page Checkout?

    I have the latest version of Zen Cart, OPC, and Z Stripe. Without OPC, Z Stripe works properly. With OPC and using another payment method works. With OPC & Z Stripe, I can't get past the main checkout page. I added z_stripe to the list of Payment Methods Requiring Confirmation like the other Stripe module. When I click on Continue Checkout, the cursor spins and nothing happens... In the Network tab of inspect element, /ajax.php?act=ajaxOnePageCheckout&method=updateShipping is called. No unexpected javascript errors.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by JboyJW View Post
    Has anyone had any luck using z_stripe (Zucando Z Stripe Payment Gateway) with One-Page Checkout?

    I have the latest version of Zen Cart, OPC, and Z Stripe. Without OPC, Z Stripe works properly. With OPC and using another payment method works. With OPC & Z Stripe, I can't get past the main checkout page. I added z_stripe to the list of Payment Methods Requiring Confirmation like the other Stripe module. When I click on Continue Checkout, the cursor spins and nothing happens... In the Network tab of inspect element, /ajax.php?act=ajaxOnePageCheckout&method=updateShipping is called. No unexpected javascript errors.
    Does that payment method add any jscript_*.js or .php files to the /includes/modules/pages/checkout_payment directory? If so, those will need to be copied also to /includes/modules/pages/checkout_one.

  7. #7
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    That extra / was a copy/paste boo-boo. You might want to add a space to the list of characters that can be repeated, though.
    Discovered I also need to allow only "A-Za-z0-9 " when customers enter addresses in the address book.
    Couldn't find any exact examples and tried several different ways/tests but can't make it work
    Thanks,

    FILE:
    tpl_modules_address_book_details.php
    Around line 45
    Code:
      
    <?php
    if (ACCOUNT_COMPANY == 'true') {
    ?>
    <label class="inputLabel" for="company"><?php echo ENTRY_COMPANY; ?></label>
    <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company" placeholder="' . ENTRY_COMPANY_TEXT . '"' . (ACCOUNT_COMPANY == 'true' && (int)ENTRY_COMPANY_MIN_LENGTH != 0 ? ' required' : '')); ?>
    <br class="clearBoth" />
    <?php
      }
    ?>

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,531
    Plugin Contributions
    127

    Default Re: One-Page Checkout [Support Thread]

    @linuxguy2 I'm confused - is this related to OPC? Didn't I just create a new thread for this topic?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,531
    Plugin Contributions
    127

    Default Re: One-Page Checkout [Support Thread]

    Cindy, in the latest version, the Billing Address is displayed as form data that can be altered. Can this be changed to just straight display (optionally with an edit button taking the customer to the billing address page)?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,939
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by swguy View Post
    Cindy, in the latest version, the Billing Address is displayed as form data that can be altered. Can this be changed to just straight display (optionally with an edit button taking the customer to the billing address page)?
    That billing-address display essentially replaces the checkout_billing_address page. If a customer has pre-defined addresses, there's a dropdown that contains those addresses from which they can select. That form, for logged-in customers, includes a checkbox to allow the customer to add another address to their address book.

    Having the navigation go 'off-page' (i.e. to the standard checkout_[billing|shipping]_address page) is not in the spirit of a one-page checkout environment.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg