Richard Feraro
Forum Replies Created
-
Forum: Plugins
In reply to: [Mage Enabler] [Plugin: Mage Enabler] Customer session variableThen query again all cart/quote IDs related to the customer and get the most recent. It only deletes the session, not those stored in the database.
Forum: Plugins
In reply to: [Mage Enabler] [Plugin: Mage Enabler] Customer session variableI think the login doesn’t delete the cookie where the Magento session is tied up. You have to truncate the cart also when you call the logout method.
See http://mysillypointofview.richardferaro.com/2009/04/13/how-to-delete-a-quote-in-magento/
If you know how to handle Mage object, yes it can.
Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler – Any Sample SitesThank you gabeshaughnessy for sharing your site 🙂
Nice implementation of the plugin!Forum: Plugins
In reply to: [Mage Enabler] [Plugin: Mage Enabler] Mage class not foundIt shouldn’t cause any problem if you’re gonna use a different hook as long as you double check your scripts if they’re doing well with the changes. I’ll see what could be the cause of this and make an update if necessary.
Forum: Plugins
In reply to: [Mage Enabler] [Plugin: Mage Enabler] Mage class not foundHi, may I ask where did you place the code that generates the
frontendcookie?if(class_exists('Mage')){ Mage::getSingleton('core/session', array('name' => 'frontend')); }If its in your
header.php, remove it a place it in your theme’sindex.phpright before theget_header()call.Forum: Plugins
In reply to: Mage Enabler and MAMP@phantomdentist
Create a PHP file in your public_html and add the code below:
<?php echo $_SERVER['DOCUMENT_ROOT']; ?>
If your Magento directory is namedmagentoin the public_html folder, then just append themagento\app\Mage.phpat the end of the script’s output.Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler – Any Sample Sitesthis might be related to your problem.
click hereYeah, that’s the instruction found in item no. 1 in the Installation tab of the plugin. Follow it, there’s a better way of extending the core files by moving it to
localdirectory.what exactly is the error? can you copy paste here the whole error?
Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler – Any Sample SitesNice greggh3! Love the layout too 🙂
Did you use WP as front-end?Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler customer session data not showing in wpOf course yes 🙂 Use an active Magento customer credentials.
If the username/email and password is wrong, a fatal error will occur with invalid login message.Forum: Plugins
In reply to: [Mage Enabler] Mage Enabler customer session data not showing in wpAdd the code below right after
$session = Mage::getSingleton("customer/session");$session->login('<customer-email>','<customer-password>');Forum: Plugins
In reply to: [Mage Enabler] [Plugin: Mage Enabler] Invalid URLPlace the code below in
index.phpof your theme just before theget_header();call and don’t repeat it anywhere.if(class_exists('Mage')){ Mage::getSingleton('core/session', array('name' => 'frontend')); }