magento-1.7

How to filter product list by custom attribute on category page of Magento?

南楼画角 提交于 2019-12-08 06:22:09
问题 I made 3 tabs on category page, which are All Products, Online Products and Store Only Products. All products display all products under this category. I use {{block type="catalog/product_list" template="catalog/product/list.phtml"}} to do the job. Online Products will display custom attribute (product_type) equals "Online Product" Store Only Products will display custom attribute (product_type) equals "Store Only Product" How can I create a block to display Online Products and Store Only

Link to order from order confirmation email

血红的双手。 提交于 2019-12-08 05:59:52
问题 I`m trying to add link to order review in order confirmation email: <a href="{{store url="sales/order/view/order_id/}}"{{var order.id}}" style="color:#1E7EC8;"> But when customer get the email it links just to http://mysite/sales/order/view/ 回答1: Move your quotes. <a href="{{store url="sales/order/view/order_id/"}}{{var order.id}}" style="color:#1E7EC8;"> 回答2: Hi, <a href="{{store url="sales/order/view/order_id/"}}{{var order.id}}" style="color:#1E7EC8;"> This is okay but it still not shows

Unable to set Shipping Method in Magento order create script

試著忘記壹切 提交于 2019-12-08 03:50:45
问题 I am having trouble getting my Script to create an order on my live site that uses Magento 1.7. The error I am getting is “please specify a shipping method” more detail is blockquote Fatal error: Uncaught exception 'Mage_Core_Exception' with message 'Please specify a shipping method.' in /home/mysite/public_html/app/Mage.php:594 Stack trace: #0 /home/mysite/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(303): Mage::throwException('Please specify ...') #1 /home/mysite/public_html

Magento editor automatic line break issue while adding new product

旧街凉风 提交于 2019-12-07 18:21:16
问题 I'm adding a new product in Magento CE 1.7.0.2. I entered the HTML code in Short Description attribute. MY PROBLEM: I really don't know where these extra <br> coming from. Even the WYSIWYG editor is not showing these <br> but they are appearing on the website's product page. Please help. WHAT I ENTERED: <p>Product Description:</p> <table border="1" cellspacing="0" cellpadding="5px"> <tr> <td>Category</td> <td>Specials</td> </tr> <tr> <td>Texure</td> <td>Digitally Printed on High Quality Matte

Cannot initialize the indexer process

时间秒杀一切 提交于 2019-12-07 17:15:40
问题 Sorry for the question duplication, but I couldn't find the answers to the question, so I am posting it again. I tried re indexing the magento 1.7.0.2 via admin. Since the server is shared server, I cannot run the indexer via shell script; though I tried running it through cron, but it didn't worked either. After running the indexer process, I got the following error logged in the the exception.log file: 2013-07-14T17:03:55+00:00 DEBUG (7): Exception message: Cannot create table without

Removing a custom attribute in Magento via an installer script

大憨熊 提交于 2019-12-07 15:48:56
问题 I have the following code in an installer script & need to now remove the is_school attribute via the installer script, is my code correct? // code within existing installer script (this works fine) $installer->addAttribute("customer", "is_school", array( "type" => "int", "backend" => "", "label" => "Is School?", "input" => "int", "source" => "", "visible" => false, "required" => false, "default" => "", "frontend" => "", "unique" => false, "note" => "" )); My intended approach to remove the

PayPal settings in Magento 1.7.0.2 won't save

回眸只為那壹抹淺笑 提交于 2019-12-07 14:31:34
问题 I am trying to save PayPal Payments Pro settings in Magento 1.7.0.2 without much luck. No matter what I put in the settings, when I save the configuration, it gives me a the “The configuration has been saved.” message, but the PayPal settings will then be empty. This is for any PayPal method, no matter what credentials or options I put in (so long as they pass front-end validation). I have watched every log file I can think of, and there are no errors showing up. Not a peep. I also have tried

How to get SKU of custom options selected for item order programatically in Magento

 ̄綄美尐妖づ 提交于 2019-12-07 11:11:03
问题 I have a product with multiple custom option customers can choose. For examples: Product: Flower Basket of 10 flowers (SKU 100) Custom options: Red roses qty: Drop down with 0 to 10 (each with SKU 200) Purple Roses qty: Drop down with 0 to 10 (each with SKU 300) Pink Tulips qty: Drop down with 0 to 10 (each with SKU 400) This way customer can build their own basket. However, now I have to export my orders for warehouse system and I need to list Custom Option's SKU with value(qty). While I can

Magento - 404 error in public product page

喜欢而已 提交于 2019-12-07 04:56:36
问题 I have a Magento 1.7 web width 2 stores in different languages width a direffent domain for each store. When I enabled products for the second store, the public product pages of the second store stopped functioning. Now are 404 error, but the first store product pages continue to perform well. All other pages work correctly. http://www.bioaigua.es/grower-abono-de-crecimiento.html - OK http://www.bioaigua.net/rooty-enhances-the-formation-of-roots.html - 404 error Any idea? 回答1: Go to your DB

Deleting a large number of Magento coupons (shopping cart price rules) programatically

风格不统一 提交于 2019-12-07 04:54:27
问题 I've been on here before asking about writing code to get Magento to generate a random coupon code for a new e-mail subscriber - Creating a single random Magento coupon This code worked perfectly and to those who helped I am eternally grateful. I am now looking for a way to delete these coupons as they expire in a bulk fashion because deleting them individually through the Magento admin is a huge pain. As you can see from the picture below, in the span of a couple of days we generated over