magento-1.5

How do I get quote totals before saving payment method?

◇◆丶佛笑我妖孽 提交于 2019-12-04 08:36:27
问题 I am trying to create a one step checkout, but in the checkout page I have problem with order review part . When I select a payment method for example "cash on deliver" has 5$ extra, or "checkorder" has %4 discount or "credit card payment" adds extra to the order total. I need a way to calculate the discounts before saving the payment method. Any suggestion? 回答1: Because we are talking about Magento, there are several ways you could do this. The best way to implement that functionality would

Before And After In Local.xml Magento?

喜夏-厌秋 提交于 2019-12-04 07:12:50
I've managed to get to the point where I understand how to move blocks from column to column in my Magento layouts: via specifying a "left" or "right" attribute in the <reference> tag. However, I don't understand how to change the order in which blocks appear. I've noticed that the "before" and "after" attributes of the <block> tag have something to do it with, but I'm not sure how they work. If I want to move a block from the top of its area to anywhere else in our page, what's the proper use and syntax for those attributes? For example, I have a Category page and I have these blocks in it:

Magento - Add Button to Sales Order View Page (Observer/Event)

怎甘沉沦 提交于 2019-12-03 22:59:04
问题 I'm trying to add a custom printing button (like print invoice) on the Sales Order View page ( Sales > Orders > Order #... view ). I've done this successfully with a but now have two modules that that same page. Therefore I'm trying to do the Observer/Event method and am running into trouble. This is what I have for the Mass Action printing and it works great (previous page only (Sales > Orders). $block = $observer->getEvent()->getBlock(); // Mass Action Printing option if(get_class($block) =

magento join table collection

随声附和 提交于 2019-12-03 08:41:46
I'm customizing Magento FAQ extension for sort faq items by category.below collection is used to get all items active faq items. $collection = Mage :: getModel('flagbit_faq/faq')->getCollection() ->addStoreFilter(Mage :: app()->getStore()) ->addIsActiveFilter(); there is relation table " faq_category_item " Table structure:- category_id faq_id 1 1 2 2 1 3 So I decide to join two tables.I unsuccess in that. What i tried is below. $tbl_faq_item = Mage::getSingleton('core/resource')->getTableName('faq_category_item'); $collection = Mage :: getModel('flagbit_faq/faq')->getCollection() ->getSelect(

How do I get quote totals before saving payment method?

偶尔善良 提交于 2019-12-03 00:04:47
I am trying to create a one step checkout, but in the checkout page I have problem with order review part . When I select a payment method for example "cash on deliver" has 5$ extra, or "checkorder" has %4 discount or "credit card payment" adds extra to the order total. I need a way to calculate the discounts before saving the payment method. Any suggestion? Because we are talking about Magento, there are several ways you could do this. The best way to implement that functionality would be to create your own total models for the discounts or additional charges. How to create custom Magento

Magento - AJAX Call Product Page Elements to Category Page. Select Box Not Populated

南笙酒味 提交于 2019-12-02 11:50:38
I'm trying to create an ajax 'quick view' or 'quick cart' type feature on my Magento store. The kind of one where you hover over a product and have the option to 'quick view' it in a lightbox instead of going to the product page. I'm using a very simple jQuery Ajax call like this: $j('#ajaxquickviewcontent').load("http://websiteaddress/category/productname.html .product-view").ajaxComplete(function(){alert ('Done');}); With this method I get all of the content I'm after (i.e. product image, description, the configurable attribute options (size) dropdown, qty selector and add to cart buttons) -

Magento custom module date field saving date to one day before the selected date

旧街凉风 提交于 2019-12-02 10:52:59
问题 i followed steps on this link to add a date field to my custom module : http://magentomechanic.blogspot.com/2010/01/to-add-custom-date-field-in-custom.html Everything went fine, except for the that when i select a date and save configurations, it returns me date one day before the selected one :( For Example : When i select 25 Feb , 2012 and save , it will save and return 24 Feb , 2012. Notice it saved one day before :( i get this when i print_r($model) in admin controller before save: [start

Magento custom module date field saving date to one day before the selected date

纵然是瞬间 提交于 2019-12-02 03:52:46
i followed steps on this link to add a date field to my custom module : http://magentomechanic.blogspot.com/2010/01/to-add-custom-date-field-in-custom.html Everything went fine, except for the that when i select a date and save configurations, it returns me date one day before the selected one :( For Example : When i select 25 Feb , 2012 and save , it will save and return 24 Feb , 2012. Notice it saved one day before :( i get this when i print_r($model) in admin controller before save: [start_date] => 2012-01-24 16:00:00 // i set it to 25 but its saving 24 [end_date] => 2012-01-26 16:00:00 //

conflicting two magento extension

瘦欲@ 提交于 2019-12-01 12:54:23
I have two same extension but both are using for a different-different purpose. Extension A Config.xml <config> <modules> <Mageworks_Fee> <version>0.1.5</version> </Mageworks_Fee> </modules> <global> <sales> <quote> <totals> <fee> <class>fee/sales_quote_address_total_fee</class> <renderer>fee/checkout_totals_fee</renderer> <admin_renderer>fee/adminhtml_sales_order_create_totals_fee</admin_renderer> </fee> </totals> </quote> <order_invoice> <totals> <fee> <class>fee/sales_order_total_invoice_fee</class> </fee> </totals> </order_invoice> <order_creditmemo> <totals> <fee> <class>fee/sales_order

Magento Product Listing by Category ID

心已入冬 提交于 2019-12-01 09:58:23
问题 I have a magento (1.5) store and a wordpress (3.2) blog. The wordpress blogs acts as the main site and the home-page index. Using Mage-Enabler, I have integrated wordpress and magento together and I am able to pull the checkout block, quick links and all the files. My question is that I would like to display the top-sellers categories on the home-page. I would usually do this with the XML in the CMS. e.g. {{block type="catalog/product_list" category_id="your_category_id" template="catalog