Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

zzman44

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • December 15, 2009 at 9:13 pm in reply to: Automatically require users to be logged in? #16742
    zzman44
    Member

    I’m sorry, I really have almost no idea how to do this. Everywhere I try and add code it is telling me I’ve made a fatal error and it deactivates the plugin on me. Would it be too much trouble if you could add it to my code? I’m fairly certain this is the if block, correct? It’s not that big of a deal, it’s just a personal pet peeve I would have with orders from unregistered users. Thank you very much so if you can!

    if ($_POST)

    {

    $count = 1;

    $products = $_SESSION;

    if (is_array($products))

    {

    foreach ($products as $key => $item)

    {

    if ($item == $_POST)

    {

    $count += $item;

    $item++;

    unset($products[$key]);

    array_push($products, $item);

    }

    }

    }

    else

    {

    $products = array();

    }

    if ($count == 1)

    {

    if (!empty($_POST[$_POST]))

    $price = $_POST[$_POST];

    else

    $price = $_POST;

    $product = array(‘name’ => stripslashes($_POST), ‘price’ => $price, ‘quantity’ => $count, ‘shipping’ => $_POST, ‘cartLink’ => $_POST, ‘item_number’ => $_POST);

    array_push($products, $product);

    }

    sort($products);

    $_SESSION = $products;

    $checkout_url = “http://www.mydomain.com/checkout”;

    $redirection_parameter = ‘Location: ‘.$checkout_url;

    header($redirection_parameter);

    exit;

    }

  • Author
    Posts
Viewing 1 post (of 1 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ