News:

AbanteCart v1.4.2 is released.

Main Menu

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - iverpectin

#1
Support / Payment Address phone number
October 18, 2023, 10:18:40 PM
Hi all,

I am having issues with the phone number field on the payment address during checkout.

I changed the regex and it works. woo hoo.

still unsure as to why with 'require phone number' OFF in checkout setting, it still on the form.
#2
AbanteCart Charged (Former v2.0) / Age Verification
September 06, 2023, 08:18:22 PM
I see that the last time this came up was 2014, so here we go again.

I asked chatgpt to create some code for this thing and got this: Question is where to put it.. LOL. indexPHP?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Age Verification</title>
    <style>
        /* CSS for the overlay */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            align-items: center;
            justify-content: center;
        }

        /* CSS for the popup */
        .popup {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            text-align: center;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
        }
    </style>
</head>
<body>
    <!-- Age verification overlay -->
    <div class="overlay" id="ageVerification">
        <div class="popup">
            <h2>You must be over 21 to access this content.</h2>
            <button onclick="closePopup()">OK</button>
        </div>
    </div>

    <!-- Your website content goes here -->

    <script>
        // JavaScript function to display the age verification popup
        function showPopup() {
            var overlay = document.getElementById('ageVerification');
            overlay.style.display = 'flex'; // Display the overlay
        }

        // JavaScript function to close the age verification popup
        function closePopup() {
            var overlay = document.getElementById('ageVerification');
            overlay.style.display = 'none'; // Hide the overlay
        }

        // Check the user's age (you should replace this with your own logic)
        function checkAge() {
            var userAge = 21; // Replace with the actual user's age
            if (userAge < 21) {
                showPopup();
            }
        }

        // Call the checkAge function when the page loads
        window.onload = checkAge;
    </script>
</body>
</html>
#3
Support / Re: Buy Now button does not add Shipping
September 05, 2023, 04:55:04 AM
Mnay thanks, I just didnt do it that far.. (lazy) but it makes perfect sense.
#4
Support / Buy Now button does not add Shipping
September 05, 2023, 12:23:30 AM
Shipping is added on add to cart, but not on Buy Now.

Shipping is set as Fixed price on the product page

Can someone guide me here please.

Forum Rules Code of conduct
AbanteCart.com 2010 -