magento

Magento: Integrity constraint violation: 1062 Duplicate entry '100002112' for key 2

主宰稳场 提交于 2020-01-25 10:29:20
问题 Hey I'm a complete magento noob, but we upgraded our version to the latest and now when you finish checking out and finish payment, you are presented with this error. I've truncated the log tables like everyone seems to suggest, I've checked for duplicate skus. I've looked into reindexing our product prices as it says it needs to be reindexed, but when I do, i'm presented with this: 'There was a problem with reindexing process.'. Here's the error from the checkout. Any help or direction would

How can i remove mandatory required for the review fields (nickname, summary of your review and review)

自作多情 提交于 2020-01-25 10:14:54
问题 how can in Magento remove mandatory required for the review fields (nickname, summary of your review and review). I found one answer but it is just for admin panel: Magento Admin Add/Edit Review -> removing Summary of Review Field required validation Would like to remove it in store view, so that customers can just click on rating and send it. Thx 回答1: (I'm using Magento2) Two places code must be changed: /var/www/magento2/app/code/Magento/Review/Model/Review.php As soon as you open this file

Magento remove Incl Tax from configurable dropdown

对着背影说爱祢 提交于 2020-01-25 08:33:24
问题 I am using configurable products and I have set the option in the backend of Magento to show prices Incl TAX and Excl Tax. My problem is that with this inside the dropdown for the configurable products options it also shows both Incl TAX and Excl TAX. I need it to show both options in the price area on the product page but only Excl Tax in the dropdown so it removes the Incl TAX I have attahced a screenshot the areas in red need to be removed. 回答1: I've had some external help with this and

Magento remove Incl Tax from configurable dropdown

喜夏-厌秋 提交于 2020-01-25 08:33:07
问题 I am using configurable products and I have set the option in the backend of Magento to show prices Incl TAX and Excl Tax. My problem is that with this inside the dropdown for the configurable products options it also shows both Incl TAX and Excl TAX. I need it to show both options in the price area on the product page but only Excl Tax in the dropdown so it removes the Incl TAX I have attahced a screenshot the areas in red need to be removed. 回答1: I've had some external help with this and

Manually Cancel An Order

╄→гoц情女王★ 提交于 2020-01-25 05:51:26
问题 I have some orders that need to be cancelled but because they originally were pre-authorized through auth.net, they will not cancel. I get a "no transaction found" message when trying to cancel/void. Because of this I simply want to cancel the orders manually in the database and skip the standard void process. Does anyone know the specific tables in the Magento database that need to be modified to simply cancel an order? 回答1: Be careful with this. The Table in 1.7 is sales_flat_order .

Magento export categories -> import with magmi

筅森魡賤 提交于 2020-01-25 02:48:08
问题 we need to change the categories of some products and it is easier for us to do this with a csv file. Is there a way to export the categories in magmi format? sku,categories "abc","cat1/cat2;;cat5/cat6/cat1" "bgb","cat1/cat2" or is there maybe a small tool to manage the products in categories? Edit: this is the current code which is displaying the category names. But I am trying to display the category path like this: FirstCat/Tools/Screwdriver But it is displaying like this: FirstCat

magmi with multiple csv and category with references

旧巷老猫 提交于 2020-01-25 00:35:08
问题 I need to automatically update the products from one vendor to magento. I am using magmi. This provider makes me 3 .csv: products, categories and images How I can do to automatically upgrade these products? In addition I have another problem with the categories .csv, I copy an example: categories.csv ID_CATEGORY | CATEGORY_NAME | CATEGORY_FATHER_ID 4 | JARDINERIA | 0 100 | Mobiliario jardin | 4 1085 | Conjuntos de jardin | 100 102 | Conjuntos de jardin | 100 109 | Mobiliario de jardin | 100

Observer for Magent product after save

主宰稳场 提交于 2020-01-24 21:45:08
问题 I am trying to add Observer to the Product status update event on backend. But it does not triggering the event. <?xml version="1.0"?> <config> <modules> <Mage4u_Customredirect> <version>0.1.0</version> </Mage4u_Customredirect> </modules> <global> <events> <catalog_product_status_update> <observers> <Mage4u_Customredirect_Catalog_product> <type>singleton</type> <class>mage4u_customredirect/observer</class> <method>on_catalog_product_status_update</method> </Mage4u_Customredirect_Catalog

Magento 1.7 - Overwrite system.xml

[亡魂溺海] 提交于 2020-01-24 20:58:06
问题 I want to show a payment method only to specific customer groups, and therefore i want to add a config field in backend payment methods. I tried to overwrite the Mage_Payment system.xml in my custom module: MyNamespace_OverwriteCfg.xml <config> <modules> <MyNamespace_OverwriteCfg> <active>true</active> <codePool>local</codePool> </MyNamespace_OverwriteCfg> </modules> </config> system.xml: <config> <sections> <payment> <groups> <invoice> <fields> <specificgroup translate="label"> <label

Magento: where is the trigger of the custom cache?

陌路散爱 提交于 2020-01-24 19:34:06
问题 In this Stackoverflow question the answer shows how to add a custom cache status: Magento Custom Caching with admin switch Now my question is: Where is this triggered? UPDATE: I've followed the steps as mentioned above. Now I have this code in Abstract/Service.php final class COMP_NAME_Abstract_Service { static private $_instance; private $_licenseHelpers = array(); public function clearCache( $custom = false ) { //DO SOMETHING } public function getCache() { //DO SOMETHING } } But I have to