magento-1.4

Rewrite dynamic Magento URL

最后都变了- 提交于 2019-12-23 05:10:51
问题 I have a Magento v1.4.1.1 installation on Nginx web server. I'm trying to rewrite the following dynamic URL: #5028 is the dynamic id passed in the URL $baseUrl/design/index/index/design_id/5028 To: $baseUrl/my/design/5028 I have used the Magento's "URL Rewrite Management" to rewrite static URLs, without a problem. But it seems I cannot use dynamic parameters. I've also tried to do the following on Nginx configuration inside my server{} location rewrite ^/my/designs/([0-9]+)$ /design/index

Shipping not transferring to Paypal Express with Magento 1.4.2

时光总嘲笑我的痴心妄想 提交于 2019-12-23 05:01:53
问题 I have a site in development that I cannot get the shipping to transfer with using Google Checkout or Paypal Express. I believe the error with Google Checkout is the fact it needs an HTTPS callback url and since I am just developing currently I do not have one. As for the Paypal Express setup, I have followed every possible help guide out there and I seem to be hitting a road block. Why is shipping not showing up on the paypal site? Here is a link to the development site. http://38.98.53.62/

Magento: Setting a custom attribute on the sales/order_shipment model

本秂侑毒 提交于 2019-12-23 03:33:09
问题 I'm trying to add an EAV attribute called "vendorping" to the sales/order_shipment model. To accomplish this, I created the following file in my module: // app\code\local\Jb\Vendorping\sql\vendorping_setup\mysql4-install-0.1.0.php $this->startSetup(); $sql = 'SELECT entity_type_id FROM `'.$this->getTable('eav_entity_type').'` WHERE entity_type_code = \'shipment\''; $row = Mage::getSingleton('core/resource') ->getConnection('core_read') ->fetchRow($sql); $entityTypeId = $row['entity_type_id'];

Magento - Load Product Collection with Pagination

為{幸葍}努か 提交于 2019-12-22 17:17:32
问题 I've been trying to load a product collection and then filter it by calling in the review ids into array and then applying that filter to it. I've enclosed the code below which is in the top of the List.phtml that I'm running it through a custom copy of the list.phtml like so <block type="catalog/product_list" name="sale" template="reviewsList/index.phtml"> Good news is that the collection will load, but it breaks the pagination. If anyone has any ideas that would be great. Full code below.

magento - retrieve all children categories given a category id

狂风中的少年 提交于 2019-12-22 13:11:06
问题 As said in the title, i'm trying to do this stuff through my custom function: public function retrieveAllChilds($id = null, $childs = null){ $childIdsArray = is_null($childs) ? array() : $childs; $category = is_null($id) ? $this->getCurrentCategory() : $this->getCategoryFromId($id); if (count($this->getChildrenCategories($id)) > 0) { $c = count($this->getChildrenCategories($id)); $tmp_array = array(); foreach ($this->getChildrenCategories($id) as $category) { array_push($tmp_array, $category-

additional parameters in magento's customer.xml layout file

陌路散爱 提交于 2019-12-22 10:08:38
问题 i'm trying to add some explanatory text to the top customer links (my account, my cart etc) via the customer.xml file from the blank theme (this is in Magento 1.4.1.1) i think that magento has the capability out of the box by issuing afterText or beforeText parameters, but when i use them it only seems to shove things before the link (not after, which is what I'm after). here's an extract from customer.xml that includes the additional < afterText > parameter: <default> <!-- Mage_Customer -->

magento add custom input field to customer account form in admin

走远了吗. 提交于 2019-12-21 19:36:22
问题 I am trying to add a custom input field to the account information tab of a customer in admin. i have successfully been able to create a custom attribute in the eav table for my input, but have been unsuccessful in finding how to make my input show up. curious of anyone has any good resources on how to do this? 回答1: The above link doesn't work anymore. I found a better explanation at http://www.excellencemagentoblog.com/customer-registration-fields-magento1-6 . If you just do the first steps

magento - delete extension?

China☆狼群 提交于 2019-12-21 18:39:28
问题 I bought a magento extension and copied the files into the magento directory. Everything worked great. Then I wanted to re-install it. So I deleted all relevant files in app/code/local and i deleted the relevant database tables. When I re-copied the extension files back into the magento directory and tried to test the extension out, i get this error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.swam_list' doesn't exist I looked in the database and it seems magento did not

magento - delete extension?

早过忘川 提交于 2019-12-21 18:39:04
问题 I bought a magento extension and copied the files into the magento directory. Everything worked great. Then I wanted to re-install it. So I deleted all relevant files in app/code/local and i deleted the relevant database tables. When I re-copied the extension files back into the magento directory and tried to test the extension out, i get this error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.swam_list' doesn't exist I looked in the database and it seems magento did not

Magento payment : additional_information or payment attribute?

只谈情不闲聊 提交于 2019-12-21 14:32:13
问题 I'm wondering which is the better way to add some information to a payment in magento (1.4.1.1). Let's say I want to add an information called "payment_duedate" which would be the date the customer has to pay his invoice. Actually, there is a field in the sales_flat_order_payment called "additional_information" which contain serialized data set by the method setAdditionalInformation($arg1,$arg2); available in the 'sales/payment' model. So I could save my date by : $payment-