magento-1.7

Setting Custom Options while adding a product to cart via SOAP in Magento

为君一笑 提交于 2019-12-02 00:20:41
I am trying to use the shoppingCartProductAdd SOAP API to add a product with Custom Options to cart. Below is the array I am passing for the products parameter. I've a custom option id 1 for which the selected value id in the dropdown is 2. (you can view the product here ) array (size=1) 0 => array (size=3) 'product_id' => int 25 'qty' => int 1 'options' => array (size=1) 1 => int 2 This product gets added to the cart but when I retrieve the cart details / totals, it does not reflect the custom options. I've also manually checked the entry created in the sales_flat_quote_item and the sales

Magento “Forgot Password” email sent in wrong language

限于喜欢 提交于 2019-12-01 21:04:24
问题 I have a Magento site with multiple languages. I have setup the language packs and everything seems to translate properly on the website. Also the transactional e-mails are sent in the correct language EXCEPT for the " Forgot Password " e-mail which is always sent in German. Here's what I did: Installed language packs and made sure all templates and folder structures are correct. Example: /app/locale/nl_NL/template/email/ Under System » Transactional Emails : I applied the template, chose the

Magento SOAP 2 API Fatal error: Procedure 'login' not present

为君一笑 提交于 2019-12-01 19:58:02
问题 I am getting: Fatal error: Procedure 'login' not present in /chroot/home/mystore/mystore.com/html/lib/Zend/Soap/Server.php on line 832 This is where the error is coming from $soap = $this->_getSoap(); ob_start(); if($setRequestException instanceof Exception) { // Send SOAP fault message if we've catched exception $soap->fault("Sender", $setRequestException->getMessage()); } else { try { $soap->handle($request); } catch (Exception $e) { $fault = $this->fault($e); $soap->fault($fault->faultcode

Magento “Forgot Password” email sent in wrong language

耗尽温柔 提交于 2019-12-01 19:27:01
I have a Magento site with multiple languages. I have setup the language packs and everything seems to translate properly on the website. Also the transactional e-mails are sent in the correct language EXCEPT for the " Forgot Password " e-mail which is always sent in German. Here's what I did: Installed language packs and made sure all templates and folder structures are correct. Example: /app/locale/nl_NL/template/email/ Under System » Transactional Emails : I applied the template, chose the locale and saved. Then I went to System » Configuration » Sales Emails , I switched to each language

Magento SOAP 2 API Fatal error: Procedure 'login' not present

半城伤御伤魂 提交于 2019-12-01 18:21:34
I am getting: Fatal error: Procedure 'login' not present in /chroot/home/mystore/mystore.com/html/lib/Zend/Soap/Server.php on line 832 This is where the error is coming from $soap = $this->_getSoap(); ob_start(); if($setRequestException instanceof Exception) { // Send SOAP fault message if we've catched exception $soap->fault("Sender", $setRequestException->getMessage()); } else { try { $soap->handle($request); } catch (Exception $e) { $fault = $this->fault($e); $soap->fault($fault->faultcode, $fault->faultstring); Any Ideas on how to fix the error? I had the same issue, and which I did to fix

NGINX-FPM configuration settings for magento

流过昼夜 提交于 2019-12-01 14:43:17
I am running a ecommerce website developed in magento. I have 512mb RAM and 2.6 core2duo on the server. When I send 50 requests at a time on my website it does not respond except for a few requests. I have installed varnish too. I want to know the optimal settings that i want to do for my website. I have seen that PHP-FPM is taking too much memory and cpu usage. Background We use nginx and php5-fpm on ubuntu 12 on our production machine (VCenter Virtual Machine, 4 cores, 8 GB ram). Our magento installation is heavily themed and extended. Just for kicks the other day I installed everything from

Update price automatically when quantity changed on product page Magento

杀马特。学长 韩版系。学妹 提交于 2019-12-01 14:08:19
I am looking to have the product price automatically updated based on the quantity the customer has chosen. Currently when you choose a custom option in magento the price automatically updates but when choosing quantity this does not. So the scenario would be the product price is £10. User enters 3 quantity and automatically on the product page it updates the price to £30 and so on. Does anybody know of a simple way of updating this? Using jquery you can do this $('#qty').keyup(function(){ if($(this).val() != '' && isNumber($(this).val()) && $(this).val() > 0) { var price = $('#real_price')

Magento 1.7 - getModel in script outside web application fails

大憨熊 提交于 2019-12-01 14:00:34
<global> <models> <starmall_shipment> <class>Starmall_Shipment_Model</class> <resourceModel>starmall_shipment_mysql4</resourceModel> </starmall_shipment> <starmall_shipment_mysql4> <class>Starmall_Shipment_Model_Mysql4</class> <entities> <shipment> <table>starmall_shipment</table> </shipment> </entities> </starmall_shipment_mysql4> </models> </global> My custom grid in the backend is working and I see the grid with data in it. As a debug test I have in my Grid.php in _prepareCollection : $x = Mage::getModel('starmall_shipment/shipment'); $x->load(3); var_dump($x); // WORKS and I get

Magento 1.7 - getModel in script outside web application fails

旧巷老猫 提交于 2019-12-01 13:10:32
问题 <global> <models> <starmall_shipment> <class>Starmall_Shipment_Model</class> <resourceModel>starmall_shipment_mysql4</resourceModel> </starmall_shipment> <starmall_shipment_mysql4> <class>Starmall_Shipment_Model_Mysql4</class> <entities> <shipment> <table>starmall_shipment</table> </shipment> </entities> </starmall_shipment_mysql4> </models> </global> My custom grid in the backend is working and I see the grid with data in it. As a debug test I have in my Grid.php in _prepareCollection : $x =

Magento 1.7 Filter products by multiple categories

青春壹個敷衍的年華 提交于 2019-12-01 12:58:10
I am looking for a way to filter the products being returned on a category page by the current category AND an optional sub-category. Every solution I have seen so far has been 'show products that are in category-a OR category-b'. Which file do I need to edit to filter a product collection by an additional, optional category id passed as a query parameter (e.g. ?catfilter=32 )? look here: http://vibrantdrive.com/how-to-filter-magento-products-using-2-or-more-category-filters/ To get products in Category 4 AND category 5 $_productCollection = Mage::getModel('catalog/product') ->getCollection()