magento-1.7

Magento Session from external page (same domain)

浪子不回头ぞ 提交于 2019-11-30 20:01:50
问题 I need to check that a user is registered and get your information, but all in a file within the same domain but outside the structure of Magento: /mymagento/islogged.php require_once ('app/Mage.php'); Mage::app(); define('ROOT', Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)); $sessionCustomer = Mage::getSingleton("customer/session"); if($sessionCustomer->isLoggedIn()) { $customer = $sessionCustomer->getCustomer(); $telefono = $customer->getTelefonoMovil(); } else { header('Location:

How can i change Magento inventory settings to website scope instead of global?

只谈情不闲聊 提交于 2019-11-30 15:06:38
We have a multi-store setup with magento operating across multiple domains. Some of these websites are wholesale b2b websites and some are retail b2c websites. We have a different price per retail and wholesale websites (which was easy to do in magento config) we do this as we force wholesale customers to purchase in multiples by using the magento minimum allowed in cart and must be bought in multiples inventory features. However we cannot seem to switch this off for the retail stores. We would also like to allow backorders on wholesale website but not on the retail ones and this setting is

Cash On Delivery activated Admin Only ( Not Frontend enabled ) - Magento?

北城余情 提交于 2019-11-30 14:01:25
I am using magento for a time now. I wanted to know is it possible to enable Cash On Delivery option for admin use only. I want to use it as Store Pickup... So this way manual orders can be only created in admin panel for those who want Store Pickup. I dont want this to be shown in Magento Frontend Store. Can you all help me out ??? Joseph at SwiftOtter There are a number of ways to achieve this, but they require a familiarity with the Magento ecosystem. I would discourage using CSS to hide it from the end user, because someone that was slightly knowledgeable about CSS could easily unhide it

Magento - How to add Layered Navigation to Advanced Search?

 ̄綄美尐妖づ 提交于 2019-11-30 13:48:19
How can I add Layered Navigation to the Advanced Search result pages? Magento Version 1.7. The patch below will display the layered navigation in Advanced search result and will work fine with layered navigations. The layered navigation and search result are displayed based on two separate product collections, one created by catalogsearch/Model/Layer.php and the other by catalogsearch/Model/Advanced.php . So we need to override few functions of both these models to make layered nav work in Advanced search. 1- In your local.xml under catalogsearch_advanced_result tag add. <reference name="left"

magento showing wrong product count in category

独自空忆成欢 提交于 2019-11-30 12:47:26
I have a strange issue and seems many are having the same on internet. Below picture will define my issue and also my magento version is 1.7 As I have highlighted, LEFT says the category has 16 products, but in actual the Category Products Tab shows 15 products. All my categories are messed up. Please let me know what's going wrong. I've tried disabling the cache, but it didn't worked. [Edit] I tried removing one-product from the category, then the number on the left went to 15 and total records 14. So I thought may be a product whose is disabled in there in this category. But when I searched

Magento: Add content block at the end of the structual block “content”

不想你离开。 提交于 2019-11-30 09:44:39
I'm trying to add a content block to Magento, which should be visible on every side below the main content. I want to archive this with a custom extension, so I can copy this extension and it workes without touching core design files. My extension includes the following layout update: <default> <reference name="content"> <block type="mymod/blockname" name="myblockname" after="-" template="mymod/block.phtml"/> </reference> </default> My problem is, that the attribute after="-" is not working. The block always showes up at the top of the content block. Seems before and after have no consequence.

Magento - Add custom attribute to order

空扰寡人 提交于 2019-11-30 03:18:49
I'm trying to add a custom field to my orders. At this moment, I found the post bellow that helped me to create such attribute in my database: http://fabrizioballiano.net/2011/11/15/create-a-custom-order-attribute-in-magento/ require_once('app/Mage.php'); Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)); $installer = new Mage_Sales_Model_Mysql4_Setup; $attribute = array( 'type' => 'int', 'backend_type' => 'text', 'frontend_input' => 'text', 'is_user_defined' => true, 'label' => 'My Label', 'visible' => true, 'required' => false, 'user

how to add a 3rd party library to magento?

喜欢而已 提交于 2019-11-30 03:07:59
The library doesn't need to integrate with magento, it's mostly a wrapper that communicates with an API. I would like to be able to use this library and make these API calls from within a controller or model. Where can I put the library? How do I add them to the autoloader? Dmytro Zavalkin Look into /lib folder in your website root directory. From Magento Base Directories : Magento’s library folder is where non-module based Magento code lives. This include a large amount of the system code which allows Magento to run, as well as a number of third party libraries (including the Zend Framework).

Cash On Delivery activated Admin Only ( Not Frontend enabled ) - Magento?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 19:49:01
问题 I am using magento for a time now. I wanted to know is it possible to enable Cash On Delivery option for admin use only. I want to use it as Store Pickup... So this way manual orders can be only created in admin panel for those who want Store Pickup. I dont want this to be shown in Magento Frontend Store. Can you all help me out ??? 回答1: There are a number of ways to achieve this, but they require a familiarity with the Magento ecosystem. I would discourage using CSS to hide it from the end

Magento - How to add Layered Navigation to Advanced Search?

偶尔善良 提交于 2019-11-29 19:12:23
问题 How can I add Layered Navigation to the Advanced Search result pages? Magento Version 1.7. 回答1: The patch below will display the layered navigation in Advanced search result and will work fine with layered navigations. The layered navigation and search result are displayed based on two separate product collections, one created by catalogsearch/Model/Layer.php and the other by catalogsearch/Model/Advanced.php . So we need to override few functions of both these models to make layered nav work