Hi
is this Magento/Wordpress integration dead?
]]>Hi Richard,
I’m trying to use your plugin, but I’m having trouble. My setup is WP v3.5.1 w/the Genesis Framework and a Child Theme. My child theme does NOT have an index.php and Genesis’s index.php reads “WARNING: This file is part of the core Genesis framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme.”
Where should I insert
if(class_exists('Mage')){
Mage::getSingleton('core/session', array('name' => 'frontend'));
}
????
Thanks! -Pablo
]]>I am loading the Magento shopping cart in wordpress with the Mage Enabler plugin, but unfortunately I can’t get the catalog pricerules to work with the shopping cart.
When I add a product on which discount is applied through a price rule, the original price is used in the cart, after I add the product to this cart.
The catalog pricerule is working of course because I can see the right price in the product detail page.
I am using this code:
—–
$layout = Mage::getSingleton(‘core/layout’);
$cart = $layout->createBlock(‘Checkout/Cart’);
$cart->setTemplate(‘checkout/cart.phtml’);
$cart_content = $cart->toHTML();
echo $cart_content;
—–
Is there something else I need to do to get the catalog price rules to work in the shoppingcart and checkout, with the Mage Enabler plugin?
Thanks in advance.
]]>Aloha Richard and friends!
I initially ran into issues while updating Products and Attribute Sets within Magento 1.5.1.0 and 1.6.0.0. When saving products, I’d receive “Decoding failed: Syntax error.” When saving attribute sets, I’d get “An error occurred while saving the attribute set.”
I traced it back to a JSON decoding issue within app/code/core/Mage/Core/Helper/Data.php
Meanwhile, it seemed as though the POST data looked totally cool.
I beat myself up for a long while debugging themes, modules, database & server configs before realizing that it may be WordPress to blame and that WP functions need not be available within Magento admin.
My solution: I modified Magento’s index.php to conditionally load WordPress:
if ( strpos($_SERVER['REQUEST_URI'], 'index.php/admin') === FALSE )
{
@ini_set('session.auto_start','0');
define('WP_USE_THEMES', false);
require_once('/path/to/wp-load.php');
}
You’ll want to modify the ‘index.php/admin’ portion to match a slice of your Magento Admin URL.
I hope this is useful.
Richard – Perhaps this might deserve a spot in your Install instructions?
Aloha!
John
Is it possible to display a product or products in a post?
thanks
D
Do WordPress and Magento have to use the same database?
I have mage-enabler successfully installed. I add an item to my shopping cart on the Magento site.
When I run this code in WordPress
$cart = Mage::helper('checkout/cart')->getCart()->getItemsCount();
echo "<pre>";
print_r($cart);
echo "<pre>";
It returns 0
Did not see anything in any of the instructions saying it has to use the same database but I am wondering if this is the reason.
]]>Hi Richard,
I was wondering if you knew anything about the checkout/cart variables. I can login, and add items to the cart, and see that they’re there. However, when I logout, the items are still in the cart. Do you know if Magento does something extra during the logout process that is not covered by Mage::getSingleton(“customer/session”)->logout(); ? Or do I need to load specific sessions into the customer/session variable to restore/unload the cart? Thanks for any help. I know this is probably beyond the mage enabler plugin, but it’s the last piece I’d like to plug in to my site.
Thanks,
Chris
I have site like wodpresscms.com (that have subdomain1.wordpresscms.com, subdomain2.wordrpesscms.com – Yes, I use multisite feature) then i have plan to use magento at shop.wordpresscms.com. Mage-enabler plugin can help me for single sign on?
Thanks
]]>Hi Richard,
I’ve installed the plugin, and the directory structure and such looks good. I’ve added the code to say, “Welcome, Guest”, to my index.php page, and that works. However, I cannot get the Mage class to show up for subsequent pages. For instance, when I tried the changes in wp-login.php, it complains that Mage class cannot be found. Printing out all of the classes shows that indeed, it is not there. Any ideas why this might be happening? I turned on E_ALL error reporting for wp-login.php, but it’s not reporting anything.
Thanks,
Chris using version 3.0.4
Hey, I’m trying to get mage-enabler to share topLinks with my wp cms. Im getting some session data showing up no problems, but the cart items data and login/out link data (isLoggedIn) are not coming through.
Here’s my code:
`
<?php
//called at the top of header.php before any output
Mage::getSingleton(‘core/session’, array(‘name’ => ‘frontend’));
$session = Mage::getSingleton(“customer/session”);
$magento_block = Mage::getSingleton(‘core/layout’);
?>
`
<?php magelinks($session,$magento_block); ?>
`
<?php
function magelinks($session,$magento_block){
if(class_exists(‘Mage’)){
# Initiate Blocks
$linksBlock = $magento_block->createBlock(“page/template_links”);
$checkoutLinksBlock = $magento_block->createBlock(“checkout/links”);
$checkoutLinksBlock->setParentBlock($linksBlock);
# Add Links
$linksBlock->addLink($linksBlock->__(‘My Account’), ‘store/customer/account’, $linksBlock->__(‘My Account’), true, array(), 10, ‘class=”first”‘);
$checkoutLinksBlock->addCartLink();
$checkoutLinksBlock->addCheckoutLink();
if ($session->isLoggedIn()) {
$linksBlock->addLink($linksBlock->__(‘Log Out’), ‘store/customer/account/logout’, $linksBlock->__(‘Log Out’), true, array(), 100, ‘class=”last”‘);
} else {
$linksBlock->addLink($linksBlock->__(‘Log In’), ‘store/customer/account/login’, $linksBlock->__(‘Log In’), true, array(), 100, ‘class=”last”‘);
}
echo $magento_message.”.$linksBlock->renderView().”;
}
}?>
`
I can’t get the Mage.php address to accept in the settings/mage enabler page in wp-admin. I have added the app/code/local/Mage/Core/functions.php file and changed the translate block.
My wp install is on the same server as my magento installation, and I have modified the open_basedir restrictions to that the magento installation is accessable: I am trying to use /var/www/vhosts/secure.dialoguebooks.org/httpdocs/app/Mage.php but keep getting an ‘Invalid URL’ message.
My wp installation is at /var/www/vhosts/dialoguebooks.org/subdomains/dev/httpdocs/
]]>I’ve just installed default versions of WordPress 3.0.1 and Magento 1.4.1.1 locally using MAMP. Both are fully functional.
WP is in the root – localhost.localdomain/wordpress/
Magento is in a subdirectory – localhost.localdomain/wordpress/magento/
I followed the instructions – https://www.ads-software.com/extend/plugins/mage-enabler/installation/.
On step 4, I can see the Mage Enabler admin page tab after the plugin is activated, but the page itself is empty.
Has anyone else experienced this?
]]>How would you instantiate the mage newsletter signup in wordpress with this plugin?
Thanks in advance.
]]>Are there any running versions of this plug-in currently working?
]]>I’ve got a totally clean install of wordpress and magento running and am trying to set the plugin up. I’m getting invalid url no matter what url i put in, i’ve tried
https://mydomain.com/public_html/app/Mage.php
/public_html/app/Mage.php
/app/Mage.php
I get Invalid URL message when putting these in. I know this is the location of the file as i’m looking at here on my server settings.
Do I have to change the .htaccess file in the app folder? Are there any settings I should change somewhere else?
]]>Does the plugin enables new wordpress user (Subscriber) to also be register as a new magento user (Customer)?
]]>