Пример #1
0
/**
 * @deprecated Use Shopp::raw_request_url()
 **/
function raw_request_url()
{
    return Shopp::raw_request_url();
}
Пример #2
0
 /**
  * Provides the registration form action URL
  *
  * @api `shopp('customer.registration-form')`
  * @since 1.2
  *
  * @param string        $result  The output
  * @param array         $options The options
  * @param ShoppCustomer $O       The working object
  * @return string The registration form URL
  **/
 public static function registration_form($result, $options, $O)
 {
     $regions = Lookup::country_zones();
     add_storefrontjs('var regions = ' . json_encode($regions) . ';', true);
     shopp_enqueue_script('address');
     return Shopp::raw_request_url();
 }
Пример #3
0
 /**
  * Bounce the browser to the secure unlock request
  *
  * The redirect uses HTTP 307 to encourage browsers to resubmit
  * their POST data to the redirected URL.
  *
  * @since 1.3.6
  *
  * @return void
  */
 public function bouncer()
 {
     $this->data = false;
     // Prevent saving the session
     $https = Shopp::url(array('unlock' => Shopp::raw_request_url()), 'checkout', true);
     Shopp::redirect($https, true, 307);
 }