magento-1.6

Magento changes layout dynamically via system variable

假装没事ソ 提交于 2020-01-13 02:23:51
问题 Is there a way we could changes the layout of a Magento page (let's say a product category page) dynamically by using system variable which have been set on our own module? I want to be able to set my category page's default layout via my own module admin config panel. So that I don't have to deal with those confusing XML layout file each time I want to change my default layout for a certain magento page. I know, on a phtml file, we could simply call our own module's system variable by

Magento Module SQL does not run

半城伤御伤魂 提交于 2020-01-04 01:53:05
问题 My module will setup correctly and all the relavant files are installed correctly. But the database tables are not being created. I have followed this tutorial. My config xml is as below. <?xml version="1.0"?> <config> <modules> <Myname_Mygateway> <version>1.0.0</version> </Myname_Mygateway> </modules> <global> <resources> <Mygateway_setup> <setup> <module>Myname_Mygateway</module> </setup> <connection> <use>core_setup</use> </connection> </Mygateway_setup> <Mygateway_write> <connection> <use

Get magento product feed using Mangento rest api but OAuth error [closed]

有些话、适合烂在心里 提交于 2019-12-25 03:07:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have a core php website where client create a different type of widgets to get reporting in the form of charts. I want to develop widget for that purpose to show Magento orders reporting , sales reporting etc on php site using Magento store API. Anyone know about magento Api to

how to add state wise tax charge without adding customer and product class

醉酒当歌 提交于 2019-12-24 03:50:27
问题 my question is bit technical. i want to ask if i belong to state named NJ, and i want apply tax rule only on this state, means if user selects NJ on checkout as its billing state it should charge him 7% extra in checkout. i have made the tax rule as well but unable to implement on front end. i want this without influence of product and customer class. if i am wrong please give me proper direction with step by step guide. i am using magento 1.8.0. please help........................ what sort

Why is state not transitioning to “payment_pending” for orders cancelled at gateway?

岁酱吖の 提交于 2019-12-24 03:24:56
问题 I am using Magento community ver1.6.1.0. I found this state diagram on Magento wiki http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/order_management My problem is the state switching as shown by bold red lines. When a user goes away from my (merchant) site, the state is new (status=pending). But if the customer does not completes payment (at payment gateway), the status is still "pending", whereas it should be "pending_payment". In "pending_payment" state, staff will

Magento customize catalogsearch result html

こ雲淡風輕ζ 提交于 2019-12-23 02:36:44
问题 I'd like to customize the layout for the result page of CatalogSearch. I'd like to remove the pagination and all other tools on the page and show a much simpler page since we only have few products. Then I need to change how results are displayed to customize the size of images and add a rollover on images. How can I do that? By looking at the source code it calls $this->getProductListHtml() . 回答1: The easiest way to determine which template files to edit, is to enable the "Template Path

Magento Exception Error: Invalid method Mage_Catalog_Block_Product_View_Type_Simple::displayProductStockStatus()

会有一股神秘感。 提交于 2019-12-22 10:38:27
问题 i tried to install a theme to my magento system and when i try to open a product page its shows me an error: Exception printing is disabled by default for security reasons. please help me the error: Invalid method Mage_Catalog_Block_Product_View_Type_Simple::displayProductStockStatus(Array ( ) ) Trace: #0 /home/embxsto1/domains/emb1.xstore.co.il/public_html/app/design/frontend/default/ma_erida/template/catalog/product/view/type/default.phtml(30): Varien_Object->__call('displayProductS...',

How to deal with image quality in magento? [closed]

风格不统一 提交于 2019-12-21 03:01:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 months ago . I've noticed that on my website Many of the images are overoptimized and have artifacting (blurry edges). They look really bad. So i've been looking into what how magento (1.6) handles those conversions but I don't know id it does. So you can give a look here to get an idea: HERE It depends on your monitor.

Magento - Set product attribute to use default values

廉价感情. 提交于 2019-12-18 13:30:31
问题 This has been asked many times before but with no working answer. I have multiple stores and some attributes have been overridden. I want to change these attributes to 'use default value' with a script. Here is an image showing store views and 'use default value' checkboxes http://dl.dropbox.com/u/3209649/storeviews-and-defaultvalues.png (not allowed to post images yet) In app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php setData() is used with false for the second

How to change the order state programmatically inside a cron job?

和自甴很熟 提交于 2019-12-14 02:07:22
问题 I am using a cron job to change all "pending" net-banking orders to "payment-pending" (this is to solve my problem : Why is state not transitioning to "payment_pending" for orders cancelled at gateway?) This is my code- [EDITED] const MINUTES_DELAY = 15; //Orders younger than this are not changed public function run() { // date_default_timezone_set('Asia/Kolkata'); $old_time = time() - (self::MINUTES_DELAY*60); $out = date('d.m.y h:i:s A', $old_time)."\n"; $out .= date('d.m.y h:i:s A')."\n";