<?php
/**
* Yourcompany.com
*
* PHP Version 5
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @copyright 2012 yourcompany.com
* @license http://www.yourcompany.com/license.txt Your license
* @link N/A
*/
/**
* A description of the controller
*
* @category Namespace
* @package Namespace_Module
* @author Your Name <your.name@yourcompany.com>
* @license http://www.yourcompany.com/license.txt Your license
* @link N/A
*/
class Namespace_Module_SomeController extends Mage_Core_Controller_Front_Action
{
/**
* Index action
*
* @return void
*/
public function indexAction()
{
$this->loadLayout();
$this->renderLayout();
}
}
Paypal Express Flow
The PayPal Express Checkout Integration Guide is a great source of well-written information for anything relating to the Express checkout, including information regarding all of the API calls. Also, the PayPal Express Checkout flow diagram illustrates the process well:
The same information as contained in the diagram above is also in the table below:
Provides much of the base functionality for the two controllers
Mage_Paypal_ExpressController
Standard (US?) express controller
Mage_PaypalUk_ExpressController
UK express controller
Mage_Paypal_Model_Express
Express payment method
Mage_Paypal_Model_Express_Checkout
?
Mage_Paypal_Model_Api_Nvp
PayPal Name-Value Pair API Wrapper
Allowing Import Of Invisible Attributes
By setting a Product Attributeto be invisible via thevisible property, you stop the ability to import that attribute unless you alter the_forcedAttributesCodesproperty of the relevant product type. The class names are:
The best method is probably to subclass the relevant product import class, then overwrite the property. It would be far better to use the constructor to append to the property rather than just overwrite it to make future upgrades as smooth as possible, but Magento, in all their wisdom, have marked the constructor as final so you cannot do this, and we have no events to take advantage of.
These are the core set of route parameters, you can be fairly sure that any call togetUrl() which accepts route parameters will come through this method, so any of these parameters should work.
Param
Type
Does
_store
string, int
Use a stores config, numeric or string code
_type
string
Using the relevant types URL, either link, direct_link, js. media or skin
_secure
bool
Use the secure URL if allowed
_forced_secure
bool
Force using the secure URL
_use_rewrite
bool
Resolves the link to a rewritten SEO URL
_nosid
bool
Prevents the SID query param from being added
_absolute
bool
No effect as URLs are always generated as absolute.
_current
bool
Uses the current module, controller, action and parameters
_direct
string
Appended to the base URL, apparently (really?)
_fragment
string
Sets the fragment (#whatever) component
_escape
bool
Uses & instead of & for querystring parameters
_query
string, array
Sets the query parameters
_store_to_url
bool
Adds ___store to the query parameters
Mage_Catalog_Model_Product_Url::getUrl()
These are extra parameters only noticed by the product URL method.
No comments:
Post a Comment