magento-1.7

How to apply CSS to Magento CMS Page

本小妞迷上赌 提交于 2019-12-13 21:28:37
问题 I have followed every tutorial that came up in Google search to add a simple CSS styling to a Magento CMS page. I simply want to add the following CSS .list-checkmark{ list-style-image: url("../images/Check-Mark-2.png"); margin-left: 3em; } to my page http://demo.txsystems.com/index.php/integration-service This is a CMS page, and I have added the following <reference name="head"> <action method="addItem"> <type>skin_css</type><script>MyCss.css</script> </action> </reference> To the layout

getGalleryImages returning NULL in Magento homepage

强颜欢笑 提交于 2019-12-13 16:27:12
问题 We've extended a homepage slider for a client so that they can feature products in this space. As part of this, there are three image slots where we wish to get the products' main image and then two images from the media gallery (ideally randomly but not the end of the world if by ID). To get a better understanding, please see screenshot of what we have so far:- We're building the collection for this module using the following:- $featured_products = Mage::getModel('catalog/product') -

How to move my Magento mini search form to another spot in my template header?

安稳与你 提交于 2019-12-13 14:13:30
问题 I am building my first custom Magento theme. It's slow going, but it is going. I got rid of the bar that originally held the mini search form on the home page and instead want to put the search form in my new header. Here is the code for my header in header.phtml : <div id="header"> <a href="<?php echo $this->getUrl('') ?>" title="<?php echo $this->getLogoAlt() ?>" class="logo"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a> <div id="header-top"> <

How to create dependent attributes in magento

一世执手 提交于 2019-12-13 11:35:01
问题 As there any way in magento where i can create dependent attributes like color depends on size and size depends on manufacturer ?. 回答1: Let me assume you mean product attributes by saying attributes plainly. To answer your question its not possible to create dependent product attributes directly or straight forwardly under Manage Attributes. But you can make your attributes depend on each other by creating Configurable products. Lets say you have 2 colors (black and blue) and 2 sizes (L,XL)

Magento1.7:Facing issue with shopping cart

南笙酒味 提交于 2019-12-13 07:53:36
问题 I am facing some critical issue in Magento: When I logged in and added some products in cart and logged out, again logged in then those products were still remaining in shopping cart. ----> This should not have happened because I set "Clear Persistence on Log Out". The steps involved in this case are: I logged in. Added 2 products to my cart. Now I logged out. Then without logging in , I browsed the website and added 4 products to cart. After that, at the time of checking out I was requested

Send emails with pdf attachment in Magento Cronjob

十年热恋 提交于 2019-12-13 06:27:08
问题 I have a report.phtml that I render to create a PDF file and send it to some email every month. I am trying to automate the process with Magento Cronjob. I know Magento has built-in feature to handle cronjobs but that solution involves a model. I tried to render the report in model but I get nothing. class MyModule_Model_Report extends Mage_Core_Model_Abstract { public function generateReport() { $content = $this->getLayout()->createBlock( 'Mage_Core_Block_Template', 'mymodule.report', array(

Magento custom module with custom url with add .html extension

做~自己de王妃 提交于 2019-12-13 06:14:13
问题 I have created an module and its front end name is test . Now i want a URL like www.exmpale.com/test/red.html (original structure is like 'test/index/index/valuid/1/'). www.exmpale.com/test/green.html (original URL is like 'test/index/index/valueid/3/'). Wheremy crontroller is indexCrontroller and action is indexAction and where red /green ,will coming dynamic from a table. The Table is structure is like tab_id value 1 red 2 blue 3 green Please help me. 回答1: You need to implement the Router

Magento: create custom Controller

牧云@^-^@ 提交于 2019-12-13 05:16:50
问题 i have created one news module . it is working fine.. http://domain.com/magento/news this page is displaying all the news items. with title, content and date. i want to make view more link for content when user click on view more link it will redirect user to specific newsitem page http://domain.com/magento/news/newsitem-1 i created another controller newsitemController.php with following code : public function infoAction(){ $this->loadLayout(); $this->getLayout()->getBlock('content') -

My custom CMS Layout Template in Magento is not loaded

ε祈祈猫儿з 提交于 2019-12-13 05:10:14
问题 I have created custom CMS layout for Magento according this tutorial. On my localhost(XAMPP on Win7) it is working, but when I have uploaded all 3 files to my web: app/code/local/Lorinc/cmsLayout/etc/config.xml app/design/frontend/sportsfans01/default/template/page/cmsLayout.phtml app/etc/modules/Lorinc_cmsLayout.xml And it is not working there. Here is the code of config.xml <?xml version="1.0"?> <config> <modules> <Lorinc_cmsLayout> <version>0.1.0</version> </Lorinc_cmsLayout> </modules>

Dint find image upload option in newly installed Magento version

蹲街弑〆低调 提交于 2019-12-13 04:27:06
问题 I have installed new version of Magento 1.7.0.2 in my localhost( XAMPP ). I am trying to upload images related to products. But i dint find the upload and Browse Buttons. Is this a problem due to improper installation ? If yes i tried installing the same on another machine. But same result. Here is the screen shot. How to fix this ? 回答1: Install latest version of flash player in your browser. 来源: https://stackoverflow.com/questions/14999385/dint-find-image-upload-option-in-newly-installed